Brick API Documentation
integer · int32 · requiredstring · requiredstring · requiredstring · requiredinteger
string · required
Properties for Success Response - Pending:integer
Create E-Wallet Payment Link API
POST
https://sandbox.onebrick.io/v2/payments/general
/acceptance/ewallet
This API will help clients to create e-wallet redirect link where the end users will do the payment.
Create E-Wallet Payment Link API › Request Body
amountAmount that clients wants to transfer
Default: 10000
referenceIdA unique identifier for the payment transaction, generated by the client side. (Maximum length of 25 characters)
Default: Test-Sandbox-01
ewalletCodeThe code representing the e-wallet provider (e.g., "DANA" for the DANA e-wallet, "LINKAJA" for LinkAja e-wallet).
Default: DANA
returnUrlThe URL to which the end-user will be redirected after completing the transaction.
Default: https://staging-app.onebrick.io
Create E-Wallet Payment Link API › Responses
200
statusDefault: 0
object
object
errorStatus E-wallet Payment API
GET
https://sandbox.onebrick.io/v2/payments/general
/acceptance/ewallet/{id}
This API enables clients to retrieve the latest status of a payment transaction using the provided reference ID given by Brick.
path Parameters
idA unique identifier for the payment transaction, generated by Brick. EX: WA_xxx
Status E-wallet Payment API › Responses
200
oneOf
Exactly one variant must match.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object |
statusDefault: 0
object
object
error