Activate/Deactivate Static Account
Allows merchants to be able to activate( to allow a deactivated account to start collecting again) or deactivate a virtual accounts (to prevent a customer initiating a payment with the static account)
POST https://developer.tingg.africa/checkout/v2/custom/requests/activatedeactivatestaticacc
Header Parameters
Header | Value | Required |
---|---|---|
Authorization | Bearer <Bearer_Token> generated during authenticate request in step 1. | YES |
Content-Type | application/json | YES |
Request Parameters
Parameter Name | Type | Description |
---|---|---|
accountNumber | string | This is the virtual account given for the customer by the merchant |
status | string | Status to indicate the action to take i.e activate or deactivate |
Example
{
"accountNumber": "<ACCOUNT_NUMBER>",
"status": "deactivate"
}
Response Parameters
Parameter Name | Type | Description |
---|---|---|
statusCode | string | Request status code. See full status code details below |
statusDescription | string | Description of the transaction status |
accountNumber | string | Static account the customer can pay into |
status | string | Status to indicate action taken on the account i.e activate or deactivate |
Example
Successful Response
{
"status":{
"statusCode": 200,
"statusDescription": "Request processed successfully"
},
"results": {
"accountNumber":43623992,
"status": "deactivate"
}
}
Failure Response
{
"status": {
"statusCode": 422,
"statusDescription": ""
},
"results": null
}
Updated 12 months ago