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",
       "sender": {
		    "name": "Daviga Teguh", 
		    "identityType": "KTP", 
		    "identityNumber": "3501041001820003", 
		    "countryCode": "ID", 
		    "provinceCode": "35", 
		    "cityCode": "1226", 
		    "jobCode": "89", 
				"address": "Tulodong Bawah No 4", 
		    "placeOfBirth": "Jakarta", 
		    "dateOfBirth": "1998-04-23" 
		  }
      }
    }
  }
}
{
  "data": {
    "id": "65f929a62bb14c6caa6dfa2f8",
    "type": "disbursement",
    "attributes": {
      "referenceId": "Brick123455",
      "description": "semoga berhasil",
      "amount": "39999",
      "status": "failed",
      "settlementStatus":"reversed",
      "createdAt": "2022-08-26T10:45:56.000+07:00",
      "errorCode": "unexpected_behaviour",
      "errorReason": "We are facing some problem, Please reach out to Brick support team.",
      "disbursementMethod": {
        "type": "bank_transfer",
        "bankAccountNo": "210000",
        "bankShortCode": "LINKAJA",
        "bankAccountHolderName": "PROD ONLY",
        "bankName": ""
      }
    }
  }
}

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

Additional Response Parameters

Key ParametersData TypeDescriptionLimitation
nameStringName of the user that send the money1. Alpha Numeric 2. Space Allowed 3. Max 40 Characters
identityTypeStringAllowed Value only KTP/SIM/KITAS/NPWPAllowed Value only KTP/SIM/KITAS/NPWP
identityNumberStringIdentity Number of the User1. Alpha Numeric 2. Min 10 characters 3. Max 16 Characters
countryCodeStringCountry Code based on the userAllowed Value are 2 all caps characters
provinceCodeStringProvince Code based on the userAllowed Value are 2 all caps characters
cityCodeStringCity Code based on the userAllowed Value are 4 all caps characters
jobCodeStringJob Code based on the userAllowed Value are 4 all caps characters
addressStringAddress of the user1. Alpha Numeric 2. Space Allowed 3. Max 40 Characters
placeOfBirthStringPlace of the user birth1. Alpha Numeric 2. Space allowed 3. Max 40 Characters
dateOfBirthStringDate of Birth of the userYYYY-MM-DD Format