Ewallet
Create Ewallet Payment Link API
Create Ewallet Payment Link API is the Brick Receive Money endpoint for starting a one-time Ewallet payment. The API returns a redirectUrl that you present to the customer so they can authorize payment through the selected Ewallet provider.
Use this endpoint when your checkout, invoice, or payment request flow needs to collect payment through a supported Ewallet provider and then track the transaction through status APIs and callbacks.
Request Header
| Key Parameters | Data Type | Description |
|---|---|---|
| publicAccessToken | String | One time access-token generated using the auth token API |
Request Parameters
| Key Parameters | Data Type | Description |
|---|---|---|
| amount | Integer | Amount that clients wants to transfer, between Rp10.000 - Rp10.000.000 |
| referenceId | String | A unique identifier for the Ewallet payment transaction, generated by the client side (up to 200 char) |
| ewalletCode | String | The code representing the Ewallet provider (e.g., "DANA", "LINKAJA"). |
| returnUrl | String | The URL to which the end-user will be redirected after completing the transaction. |
Response Parameters
| Key parameters | Data type | Description |
|---|---|---|
| id | String | Unique ID generated by Brick |
| referenceId | String | Unique ID that is generated by the client to track each Ewallet transaction. |
| amount | String | Amount that clients wants to transfer, between Rp10.000 - Rp10.000.000 |
| status | String | The current status of the payment request. Possible statuses: PENDING, PAID, COMPLETED, EXPIRED, CANCELLED. |
| ewalletCode | String | The code representing the Ewallet provider. |
| redirectUrl | String | Link generated by the Ewallet issuer for payment. |
| createdAt | Date Time | The date and time when the redirect URL was created. |
| expiredAt | Date Time | The date and time when the redirect URL will expire. Please check the expiry time rules here. |
Transaction Expiration Time Guidelines
The table below lists the valid expiration times for Ewallets.
| Ewallet Provider | ewalletCode | Expiration Time |
|---|---|---|
| Dana | DANA | Value is fixed to 60 minutes |
| LinkAja | LINKAJA | Value is fixed to 5 minutes |
Last modified on
