Sign UpLog In

The Disbursement callback will return the transaction information with updated status information.

{
  "data": {
    "id": "asdasd123123asdasdasd",
    "type": "disbursement",
    "attributes": {
      "referenceId": "test-disbursement-1",
      "description": "test-disbursement-1",
      "amount": "29999",
      "status": "completed",
      "settlementStatus":null,
      "createdAt": "2022-07-21T13:49:39.752+07:00",
      "disbursementMethod": {
        "type": "bank_transfer",
        "bankAccountNo": "5245039024",
        "bankShortCode": "BCA",
        "bankAccountHolderName": "PROD ONLY",
        "bankName" : "Bank Central Asia"
      }
    }
  }
}
{
  "data": {
    "id": "9cb8ba6c8aa644ff9a433ace9",
    "type": "disbursement",
    "attributes": {
      "referenceId": "sc-MAR-5437",
      "description": "Good Luck",
      "amount": "10000",
      "status": "failed",
      "settlementStatus": null,
      "createdAt": "2025-02-12T16:25:11.000+07:00",
      "errorCode": "5000100",
      "errorReason": "General Error",
      "errorDetail": {
        "code": "general_error",
        "message": "General Error",
        "action": "Please try again later or contact support if the issue persists.",
        "reason": "A general error occurred while processing the request. This may be due to a temporary issue on our end."
      },
      "disbursementMethod": {
        "type": "bank_transfer",
        "bankAccountNo": "010800041187",
        "bankShortCode": "BCA",
        "bankAccountHolderName": "JOHN CENA",
        "bankName": "BCA"
      }
    }
  }
}

Please note when you setup your callback endpoint :

  • Callback method : POST
  • Content type : app/json
  • Add whitelist to Brick server for secure connection

Response Parameters

Key ParametersData typeDescription
idStringUnique identifier
typeStringType of transaction
statusStringThe status of disbursement
createdAtTimeStampTime at which the response was created.
amountIntegerAmount of money to be disbursed
referenceIdStringA unique reference ID as a unique identifier
descriptionStringAn arbitrary string attached to the object. Often useful for displaying to users what the transaction was for. Description length limit is 255 chars.
disbursementMethodTypeStringCurrently only support bank transfer
bankAccountNoStringAccount number of the user
bankShortCodeStringInstitution short code of the user
bankAccountHolderNameStringAccount name that the funds are intended to be sent to.
bankNameStringName of the Institutions
settlementStatusStringStatus of the transaction
errorCodeStringA unique identifier representing the error that occurred during the transaction. See how to handle errors here.
errorReasonStringA brief explanation of the error that caused the transaction failure.
errorDetailJSON ObjectA detailed breakdown of the error, including specific information on the cause and possible resolution steps.

Additional Response Parameters:

errorDetail (JSON object)

Key ParametersData TypeDescription
codeStringA machine-readable error code categorizing the error.
messageStringA human-readable error message describing the issue.
actionStringSuggested actions that can be taken to resolve the error.
reasonStringAdditional context explaining why the error occurred.