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

HeaderValueRequired
AuthorizationBearer <Bearer_Token> generated during authenticate request in step 1.YES
Content-Typeapplication/jsonYES

Request Parameters

Parameter NameTypeDescription
accountNumberstringThis is the virtual account given for the customer by the merchant
statusstringStatus to indicate the action to take i.e activate or deactivate

Example

{
  "accountNumber": "<ACCOUNT_NUMBER>",
  "status": "deactivate"
}

Response Parameters

Parameter NameTypeDescription
statusCodestringRequest status code. See full status code details below
statusDescriptionstringDescription of the transaction status
accountNumberstringStatic account the customer can pay into
statusstringStatus 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
}