Unique per client. If duplicate return 409 DUPLICATE_EXTERNAL_ID.
currency
✅
string
IDR (more in future).
amount
integer
Smallest unit (Rupiah). Omit to ask end-user on page.
description
string
Shown on checkout page.
successUrl
string
Redirect user to this URL if payment success. Overrides dashboard default. Required here or in dashboard.
failedUrl
string
Redirect user to this URL if payment failed. Overrides dashboard default. Required here or in dashboard.
metadata
string
Custom key-value pairs. Stored in Paystrator and returned in API/webhook, but never sent to providers. Read more about metadata here.
type
enum
Preselect flow: virtual_account / ewallet / qrcode / credit_card. If omitted: end-user will chooses.
End-User Page Flow Guide**
If amount if empty, end-user will be prompted to input payment amount.
If type:
is empty, end-user can choose the available payment method
is filled (with ewallet / qrcode / virtual_account / credit_card), end-user will be directed to respective payment type. So, end-user can't choose the payment method available.