Brick API Documentation
string · requiredstring · requiredstring · requiredstring · requirednumber · doublestringintegerstring
stringstring
Properties for Created:integerstring
Create Checkout Page Session
POST
https://sandbox.onebrick.io/v2/payments/general
/checkout
Creates a hosted checkout session and returns a unique checkoutUrl.
Headers
publicAccessTokenCreate Checkout Page Session › Request Body
externalIdMerchant-defined unique identifier for the checkout session
currencyTransaction currency. Use IDR for current acceptance flow.
descriptionCheckout label shown to the customer and used for reconciliation.
amountFixed payment amount. If omitted, the checkout may behave as an open-amount flow.
typePayment type. The tested collection supports qris and virtual_account.
Create Checkout Page Session › Responses
200
statusDefault: 0
object
errorshashcodeCheckout Status
GET
https://sandbox.onebrick.io/v2/payments/general
/checkout/status
query Parameters
checkoutIdBrick-generated checkout identifier returned from POST /v1/payments/checkout.
externalIdcheckout externalId
Checkout Status › Responses
200
oneOf
Exactly one variant must match.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object | |
| type = object | |
| type = object |
statusDefault: 0
object
errorshashcode