Brick API
integer · int32 · requiredstring · requiredstring · requiredstring · requiredinteger
string · required
Properties for Success Response - Pending:integer
Create Ewallet Payment Link API
POST
https://sandbox.onebrick.io/v2/payments/general
/acceptance/ewallet
This API will help clients to create Ewallet redirect link where the end users will do the payment.
Create Ewallet 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 Ewallet provider (e.g., "DANA" for the DANA Ewallet, "LINKAJA" for LinkAja Ewallet).
Default: DANA
returnUrlThe URL to which the end-user will be redirected after completing the transaction.
Default: https://staging-app.onebrick.io
Create Ewallet Payment Link API › Responses
200
statusDefault: 0
object
object
errorStatus Ewallet Payment API
GET
https://sandbox.onebrick.io/v2/payments/general
/acceptance/ewallet/{id}
Use this endpoint to retrieve the latest status of an Ewallet payment transaction using the Brick reference ID.
path Parameters
idA unique identifier for the payment transaction, generated by Brick. EX: WA_xxx
Status Ewallet Payment API › Responses
200
oneOf
Exactly one variant must match.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object |
statusDefault: 0
object
object
error