Skip to main content
POST
IDR Collection Application
All example requests on this page are based on the sandbox (test) environment. Please be careful to distinguish it from the production environment.

Secret Key & Private Key (Generate Signature)

Body

application/json
appId
integer
required

Business ID (retrieved from the backend; must pass the corresponding ID for the currency in the URL)

orderId
string
required

Merchant order ID

Maximum string length: 48
name
string
required

Payer's name (Payer's name format: 1-30 characters, English or Indonesian letters (case-insensitive), follows "firstName middleName lastName" structure (middleName optional), allows spaces and special characters !-))

Required string length: 1 - 30
Pattern: ^[A-Za-z\u0000-\u007F\s!-]+$
phone
string
required

Valid phone number

Pattern: ^08[0-9]{8,11}$
email
string<email>
required

Valid email

amount
string
required

Transaction amount (unit: IDR)

Pattern: ^[0-9]+$
payType
string
required
inBankCode
string
required
callBackUrl
string<uri>
required

Redirect URL after successful payment

callBackFailUrl
string<uri>
required

Redirect URL after failed payment

partnerUserId
string
required

Unique user identifier (e.g., userId). Required for risk control system. Must be valid, otherwise transactions may be affected. Format: numbers, letters, or common symbols -~!@#$%&*()_.

Pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
sign
string
required

Signature

notifyUrl
string<uri>

Callback URL

currency
string
default:IDR

Currency (default: IDR)

subject
string

Payment remark (transaction title, product name, payment reason)

body
string

Remark details

Response

200 - application/json
status
string

1: Normal, 0: Exception

error
string

Error code

msg
string

Error description

data
object
Last modified on October 13, 2026