This endpoint allows users to submit a payment for a specific product. It can be used for various types of payments, including utility bills, prepaid services, and other products that may or may not require a prior inquiry.
Unique key to prevent duplicate payments. Must be unique for each payment request.
PLN Prepaid Payment
{
"product_id": "PLN_PREPAID_50K",
"customer_number": "12345678910",
"inquiry_id": "inq-98765",
"reference_id": "tx-pln-001",
"total_amount": 53200,
"additional_properties": {}
}
PLN Postpaid Payment
{
"product_id": "PLN_POSTPAID",
"customer_number": "22345678910",
"inquiry_id": "inq-98766",
"reference_id": "tx-pln-postpaid-001",
"total_amount": 159500
}
Product identifier
Customer's account/service number
Inquiry ID from POST /inquiry (optional)
Partner's unique transaction reference
Total payment amount including admin fee
Additional parameters required for specific products
Payment accepted for processing
PLN Prepaid Payment - Pending
{
"data": {
"business_id": "5f27a14a9bf05c73dd040bc8",
"type": "payment",
"id": "trx-98765",
"properties": {
"product_id": "PLN_PREPAID_50K",
"customer_number": "12345678910",
"reference_id": "tx-pln-001",
"admin_amount": 3200,
"base_amount": 50000,
"total_amount": 53200,
"currency": "IDR",
"status": "PENDING",
"fulfilled_at": null,
"failure_code": null,
"failure_reason": null,
"customer_details": [],
"product_details": [],
"bill_details": [],
"payment_details": []
}
}
}
Xendit's Business ID
Type of response, always "payment"
Unique payment transaction ID
Partner's transaction reference
Product identifier
Customer's account/service number
Administrative fee amount
Base product amount
Total amount including admin fee
Currency of the product
Payment status
ISO8601 timestamp when payment completed (null when pending)
Error code in case of FAILED status
Error message in case of FAILED status
Array of customer information key-value pairs
Name of the detail field
Value of the detail field
Array of product information key-value pairs
Name of the detail field
Value of the detail field
Array of billing information key-value pairs
Name of the detail field
Value of the detail field
Array of payment information key-value pairs
Name of the detail field
Value of the detail field
Inputs are failing validation. The errors field contains details about which fields are violating validation.
Payment Required - Insufficient balance
The provided id
does not exist. Please review the id
and try again
Conflict
Bad Gateway - Biller error
Service Unavailable - Biller maintenance
Gateway Timeout - Biller timeout