Quick Start for Disbursement API
Before you start:
- Review Prepare Yourself to Use API before starting the integration.
- You can test the API using Try Brick API with Postman.
Create Your First Disbursement
For this quick start, use the regular disbursement method. Brick supports two disbursement methods: Regular and BI-FAST.
1. Generate a public access token - API reference
Public access token is the authentication token used in further API calls for Send Money and Receive Money APIs. This public access token is generated using the API credential Client ID and Client Secret that you get from the preparation section.
📘 Limitation of public access token
This API gives you a public access token that is only valid to be used 1 time and only for the next 5 minutes. If expired, you need to generate new public access token.
2. Verify the recipient account - API reference
Verify the recipient account before creating a disbursement. This helps prevent failures caused by invalid bank codes, invalid account numbers, or mismatched account holder details.
📘 List Bank Account Destination
If you need to check which banks are covered by Brick, see the List of Bank Coverage. Brick currently verifies bank account destinations, not Ewallet destinations.
3. Create the disbursement - Regular API reference
Use this endpoint to send money to the recipient account. Generate a new public access token as described in step 1, then use the new token for the disbursement API call.
You need to provide payment and recipient details. The example below shows the basic request structure:
Code
If the request is valid, the response will show the disbursement status as processing.
Code
Disbursement processing depends on the destination bank. Brick will send the updated status to the callback URL you configured.
4. Receive the callback status
Disbursement usually takes a few seconds to reach the recipient bank account. After Brick receives bank confirmation that the transfer has completed, Brick sends the updated status to your callback URL:
Code
Code
You can handle the behavior later for status completed or also check how to handling errors case.
5. Going live to production
After you complete development and are ready to move to production, review the Production Checklist.
