PAYJN API docs

Create a collection order

Create a pay-in order for a customer. Use the hosted checkout (H5 cashier) to send the customer to a PAYJN payment page, or the API mode to show the payment details on your own checkout page. Both modes use the same order query and the same result notification.

POST /api-pay/collection/order/create-h5
POST /api-pay/collection/order/create-api (API mode)

Request headers

FieldTypeRequiredDescription
Content-TypeStringYesapplication/json
signStringYesRequest signature. See Authentication.

Request body

FieldTypeRequiredDescription
merchantCodeString(6)YesYour merchant code, issued by PAYJN after onboarding.
paymentMethodCodeStringYesPayment method, for example QRIS or a bank code for a virtual account. See the country pages or Query payment methods.
merchantOrderIdString(50)YesYour own order number. Letters and digits, up to 50 characters, unique in your system. Used for queries and to prevent duplicates.
amountIntegerYesOrder amount in local currency. Decimals are not supported.
merchantNotifyUrlStringYesYour server URL that receives the asynchronous result notification for this order.
returnUrlStringNoPage the customer returns to after paying.
remarkStringNoFree text, returned unchanged in the response.
customerObjectYesCustomer information.
customer.nameStringYesCustomer's name.
customer.phoneStringYesCustomer's mobile number in the local format of the country.
customer.emailStringYesCustomer's email address, in a valid email format.
{
  "merchantCode": "100001",
  "paymentMethodCode": "QRIS",
  "merchantOrderId": "ORDER20261129001",
  "amount": 50000,
  "merchantNotifyUrl": "https://merchant.example.com/payjn/notify",
  "returnUrl": "https://merchant.example.com/orders/ORDER20261129001",
  "customer": {
    "name": "Customer Name",
    "phone": "081234567890",
    "email": "customer@example.com"
  }
}

Response

FieldTypeDescription
codeInteger200 means the request was accepted. Any other value is an error; see msg.
msgStringError message when code is not 200.
dataObjectResult object, returned when code is 200.
data.merchantCodeStringYour merchant code.
data.countryCodeStringCountry code of the order.
data.platformOrderIdString(32)PAYJN order number.
data.merchantOrderIdString(50)Your order number.
data.amountStringOrder amount in local currency.
data.statusStringSUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status.
data.paymentMethodCodeStringPayment method of the order.
data.paymentInfo.typeStringurl, code or json. Hosted checkout always returns url.
data.paymentInfo.contentStringPayment URL (type url), or the VA number or QR text (type code, API mode).
data.returnUrlStringReturn URL from the request.
data.transFeeRateStringFee rate applied to the order, as agreed for your merchant account.
data.transFeeStringFee for this transaction.
data.totalTransFeeStringTotal fee for the order.
data.descStringResult description.
data.createTimeStringCreation time in the market's local time, yyyy-MM-dd HH:mm:ss.
{
  "code": 200,
  "msg": "",
  "data": {
    "merchantCode": "100001",
    "countryCode": "IDN",
    "platformOrderId": "C1000011764400000000001",
    "merchantOrderId": "ORDER20261129001",
    "amount": "50000",
    "status": "PROCESSING",
    "paymentMethodCode": "QRIS",
    "paymentInfo": {
      "type": "url",
      "content": "https://{checkout-host}/pay/..."
    },
    "createTime": "2026-11-29 10:00:00"
  }
}

Notes

Get API access

Full integration documentation, your API host, merchant code and keys are provided after onboarding. Review is usually completed on the same day, and a test mode is switched on for your account before launch.

Talk to PAYJN

Last updated 29 November 2026 ยท PAYJN local payment APIs for Indonesia, Pakistan, Bangladesh, Vietnam, India and Malaysia