Skip to content

Create Collection

WARNING

Important: name + phone + email + amount are used to identify distinct customers. Follow these notes to avoid incorrect risk-control decisions.

  1. Do not hard-code name, phone, and email together
  2. Use the same name + phone + email for the same customer

Endpoint

POST /cashin/india/order/create

Request Headers

NameRequiredExampleDescription
Content-TypeYesapplication/json
langNoenResponse language: zh Chinese, en English, pt Portuguese

Request Parameters

FieldTypeRequiredDescription
bankCodestring enumYesBank code — UPI
amountnumberYesOrder amount — 100~49999; up to 2 decimal places (rounded). Trailing zeros after the decimal are omitted in the pre-sign string for float amounts
notifyUrlstringYesNotification callback URL — Sandbox supports automatic callbacks: odd last digit of phone → success; even → failure
namestringNoCustomer name — More realistic values improve success rate and reduce risk-control flags
phonestringNoCustomer phone — 10-digit Indian mobile numbers starting with 6/7/8/9. More realistic numbers improve success rate and reduce risk flags
emailstringNoCustomer email — More realistic values improve success rate and reduce risk-control flags
signstringYesSignature
appIdstringYesMerchant appId — appId assigned by the platform
mchOrderNostringYesMerchant order number
mchIdintegerYesMerchant ID
timestampintegerYesSubmission time — Unix timestamp in seconds
txChannelstringYesTransaction channel — Fixed value: TX_INDIA_001
returnUrlstringNoCheckout redirect URL
productInfostringYesProduct information

Request Example

json
{
  "mchId": 399204155797661,
  "txChannel": "TX_INDIA_001",
  "appId": "DFN19SJXfxFCexeLIi",
  "timestamp": 16624500121,
  "mchOrderNo": "order_1672451031",
  "bankCode": "UPI",
  "amount": 5000,
  "name": "Timothy Gonzalez",
  "phone": "18688984423",
  "email": "w.gssdyohqr@chvro.cy",
  "productInfo": "xxx-Rechange",
  "notifyUrl": "http://wxyiwtonif.sj/vpuu",
  "returnUrl": "https://www.baidu.com/",
  "sign": "xxxxxxxx"
}

Response Parameters

FieldTypeRequiredDescription
statusintegerYesStatus
msgstringYesMessage
dataobjectYesData
data.applyTimeintegerYesApplication time — Timestamp format
data.amountnumberYesActual paid amount
data.linkstringYesPayment link
data.expireTimeintegerYesExpiration time — Timestamp format
data.mchOrderNostringYesMerchant order number
data.platOrderNostringYesPlatform order number
data.referencestringYesReference code

Response Example

json
{
  "status": 200,
  "msg": null,
  "data": {
    "mchOrderNo": "order_1662112944",
    "platOrderNo": "P5nosqyWAQsQZNtYa5OW",
    "applyTime": 1662112986,
    "amount": 1200,
    "reference": "?mc=5732&pa=ssbb.sai@abc&pn=UPIPay&tn=ag06&am=200&cu=INR",
    "link": "http://47.88.18.111:8032/?param=RjUzRUVBMTNBMTUwNUQwMURFMkQwNDc4RkI3OTM1Q0Q4OEJEQzhFN0VBMkNEMTQ0NzJEOTlBRjU2NDFFMDBGOQ==",
    "expireTime": 1662199387
  }
}

Transafe Developer Documentation