Skip to content

Create Collection H2H (Custom Checkout)

Endpoint

POST /cashin/pakistan/order/createH2H

Request Headers

NameRequiredExampleDescription
Content-TypeYesapplication/json

Request Parameters

FieldTypeRequiredDescription
bankCodestring enumYesBank code — JAZZCASH_H2H, EASYPAISA_H2H
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
namestringYesCustomer name — More realistic values improve success rate and reduce risk-control flags
phonestringYesCustomer phone — 11-digit Pakistani mobile numbers starting with 03. More realistic numbers improve success rate and reduce risk flags
emailstringYesCustomer 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_PAK_001
productInfostringYesProduct information
taxNumberstringNoID number (CNIC) — Length: 13 digits

Request Example

json
{
 "mchId": 9099,
 "txChannel": "TX_PAK_001",
 "appId": "R22e9c0f1x3hycRKd0",
 "timestamp": 16624500121,
 "mchOrderNo": "order_{% mock 'timestamp' %}",
 "bankCode": "JAZZCASH_H2H",
 "amount": 5000,
 "name": "Timothy Gonzalez",
 "phone": "03881999382",
 "email": "w.gssdyohqr@chvro.cy",
 "productInfo": "xxx-Rechange",
 "notifyUrl": "http://wxyiwtonif.sj/vpuu",
 "sign": "xxxxxx"
}

Response Parameters

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

Transafe Developer Documentation