Simulate account status
curl --request POST \
--url https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"status": "ACTIVE"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({status: 'ACTIVE'})
};
fetch('https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status"
payload = { "status": "ACTIVE" }
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "SIMULATION_INVALID_STATE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "ACCOUNT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Simulation
Simulate account status
Simulates an account status change between ACTIVE and RESTRICTED. RESTRICTED restricts the account and its deposit addresses, and declines every authorization on its cards; the cards themselves keep the status they held. ACTIVE lifts the restriction and leaves card statuses untouched.
POST
/
simulation
/
accounts
/
{id}
/
status
Simulate account status
curl --request POST \
--url https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"status": "ACTIVE"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({status: 'ACTIVE'})
};
fetch('https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/simulation/accounts/{id}/status"
payload = { "status": "ACTIVE" }
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "SIMULATION_INVALID_STATE",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "ACCOUNT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
Available options:
2025-02-14 Example:
"2025-02-14"
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Simulate an account status change
Target account status
Available options:
ACTIVE, RESTRICTED Example:
"ACTIVE"
Response
Response for status 204