curl --request POST \
--url https://nini.monieswitch.com/subaccount/deactivate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"subaccountId": "5a17ee4f-e846-41d8-af13-b3a99ab4f27e"
}'
{
"data": {
"subaccount": {
"balance": 640,
"createdAt": "2024-02-28T15:07:26.889Z",
"id": "5a17ee4f-e846-41d8-af13-b3a99ab4f27e",
"name": "Testing",
"status": "INACTIVE",
"updatedAt": "2024-03-06T17:27:22.211Z"
}
},
"message": "Account successfully deactivated",
"status": true
}
Deactivate
curl --request POST \
--url https://nini.monieswitch.com/subaccount/deactivate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"subaccountId": "5a17ee4f-e846-41d8-af13-b3a99ab4f27e"
}'
{
"data": {
"subaccount": {
"balance": 640,
"createdAt": "2024-02-28T15:07:26.889Z",
"id": "5a17ee4f-e846-41d8-af13-b3a99ab4f27e",
"name": "Testing",
"status": "INACTIVE",
"updatedAt": "2024-03-06T17:27:22.211Z"
}
},
"message": "Account successfully deactivated",
"status": true
}
Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'
Deactivate Subaccount
The response is of type object
.