1. Payin
English
  • Chinese
  • English
  • Open API Documentation
  • Payin
    • Payin Order - General
    • Payin Order - India
    • Payin Order - Philippines
    • Payin Order - Indonesia
    • Payin Order - Vietnam
    • Payin Order - Cryptocurrency
    • Payin Order - China
    • Payin Order - Malaysia
    • Payin Order - Pakistan
    • Payin Order - Thailand
  • Payout
    • Payout Order - General
    • Payout Order - India
    • Payout Order - Philippines
    • Payout Order - Indonesia
    • Payout Order - Vietnam
    • Payout Order - Cryptocurrency
    • Payout Order - Malaysia
    • Payout Order - Pakistan
    • Payout Order - Thailand
  • Callback Notification
    • Callback Description
    • Collection Callback
    • Payout Callback
  • Query API
    • Collection Order Query
    • Payout Order Query
    • Wallet Query
  • Examples of encryption and signature
    • Go Language Encryption and Signature Example
    • Python Encryption and Signature Example
    • PHP encryption and signature example
    • Node.js encryption and signature example
    • Environment variables and request body JSON example
    • Java encryption and signature example
  • Other instructions
    • Response Status Description
    • Order Status Description
    • Payment Method List
    • Bank Code List
    • Checkout iframe Copy Function Support Description
    • Backend Login Instructions
  1. Payin

Payin Order - Indonesia

Brief Description
Payment Payin Order
Request URL
/api/v1/transactions
Request Method
POST
Request Format
Content-Type: application/json

Request Parameters#

Field NameTypeDescriptionRequiredExample
titleStringOrder titleNoCollection order
order_noStringMerchant order number (max 64 characters, must be unique)YesTX10000000000001
amountnumberOrder amountYes1000
currencyStringCurrencyYesIDR
payment_methodStringPayment method code, please refer to payment method listYesMAYA / GCASH
callback_urlStringCallback notification URLYeshttp://www.aaa.com/callback
return_urlStringRedirect URL after payment completionYeshttp://www.aaa.com/pay_success.html
user_ipStringUser real IP address. To improve success rate, please provide real IPYes
return_typeStringResponse type: PLATFORM (hosted checkout), CUSTOM (custom checkout), default PLATFORMNoPLATFORM
remarkStringTransaction description (max 200 characters)NoCollection order test
expire_secondsintOrder expiration time (seconds)No3600
payerobjectPayer informationYes
user_idStringUnique user identifier (account or ID)Yestest001

Request Example#

{
  "title": "收款订单",
  "order_no": "P3435435654700020",
  "amount": 1000,
  "currency": "IDR",
  "remark": "test pay order",
  "payment_method": "QRIS",
  "return_url": "http://localhost:8080/cashier",
  "callback_url": "http://localhost:8080/cb/test/Titan003",
  "expire_seconds": 3600,
  "user_ip": "10.10.2.108",
  "return_type": "PLATFORM",
  "payer": {
        "user_id": "test001"
    }
}

Response Parameters#

Field NameTypeDescription
codeintStatus code (200: request success, others: error)
msgStringResponse message
dataobjectResponse data
trade_noStringPlatform order number
order_noStringMerchant order number
statusStringOrder status (PROCESSING: processing)
messageStringResponse message
amountnumberOrder amount
due_pay_amountnumberAmount to be paid
currencyStringCurrency
feenumberFee
detailsobjectPayment guidance information
redirect_urlStringCheckout redirect URL

Response Example - Success#

{
  "code": 200,
  "msg": "Success",
  "data": {
    "trade_no": "PI2009978658270650368",
    "order_no": "pay-00003",
    "status": "PROCESSING",
    "message": "success",
    "amount": "1000",
    "due_pay_amount": "1000",
    "currency": "IDR",
    "fee": "3",
    "details": {
      "redirect_url": "https://sandbox.payhub.example.com/pay/PI2009978658270650368"
    }
  }
}
Response Example - Order Creation Failed
{
  "code": 4002,
  "msg": "Payment method code not supported",
  "data": null
}
Modified at 2026-06-01 11:49:11
Previous
Payin Order - Philippines
Next
Payin Order - Vietnam
Built with