Brick API Documentation
Brick
Brick API

Ewallet

Server

Create Ewallet payment redirect links and check transaction status. Use these endpoints when customers pay through supported Ewallet apps and your system needs a redirect URL plus reconciliation status.


POST
https://sandbox.onebrick.io
/v2/payments/gs/acceptance/ewallet
publicAccessToken (header)

Create an Ewallet payment link or redirect URL for a customer payment. Use this endpoint when the payer should complete payment inside a supported Ewallet application or redirected checkout experience. Store the returned payment identifier and redirect URL, then confirm the final transaction state through callback or the Ewallet status endpoint.

amount
​integer · int32 · required

Amount that clients wants to transfer

Default: 10000
referenceId
​string · required

A unique identifier for the payment transaction, generated by the client side. (Maximum length of 25 characters)

Default: Test-Sandbox-01
ewalletCode
​string · required

The code representing the Ewallet provider (e.g., "DANA" for the DANA Ewallet).

Default: DANA
returnUrl
​string · required

The URL to which the end-user will be redirected after completing the transaction.

Default: https://staging-app.onebrick.io

200

status
​integer
Default: 0
​object
​object
error
​

Status Ewallet Payment API

GET
https://sandbox.onebrick.io
/v2/payments/gs/acceptance/ewallet/{id}
publicAccessToken (header)

Retrieve the latest status of an Ewallet payment transaction by Brick reference ID. Use this endpoint when callbacks are delayed, customer support needs confirmation, or your reconciliation process needs to resolve a payment link state. The response should be used to update internal order, invoice, or wallet funding records.

Status Ewallet Payment API › path Parameters

id
​string · required

A 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

VariantMatching Criteria
type = object
type = object
Properties for Success Response - Pending:
status
​integer
Default: 0
​object
​object
error
​