Skip to main content

Disbursement (pay-out)

ประมาณ 1 นาที

Pakistan region pay-out API (PKR). See Payment methods.

Request

POST/v2.0/disbursement/pay-out

Request Path:

sandbox: https://sandbox-gateway.smilepayz.com/v2.0/disbursement/pay-out
production: https://gateway.smilepayz.com/v2.0/disbursement/pay-out

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json request body.
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm (Pakistan +05:00).
X-SIGNATUREMStringSignature of JSON body (see product Signature doc).
X-PARTNER-IDMStringYour merchantID.

Body Parameters

FieldRequiredTypeDescription
orderNoMString(32)Merchant-unique id.
purposeMString(64)Transaction memo.
merchant.merchantIdMStringSmilepayz merchantId.
money.currencyMStringFixed to PKR.
money.amountMNumberAmount in PKR.
paymentMethodMStringJAZZCASH for JazzCash, EASYPAISA for Easypaisa.
cashAccountMString(32)Beneficiary wallet number.
receiverMObjectBeneficiary information.
    nameMStringBeneficiary full name.
    phoneMStringBeneficiary wallet mobile number.
callbackUrlOString(256)Async status URL.

Example Body

{
    "orderNo": "PKR_PAYOUT_10001",
    "purpose": "Pakistan wallet pay-out",
    "merchant": {
        "merchantId": "20001"
    },
    "money": {
        "currency": "PKR",
        "amount": 1000
    },
    "paymentMethod": "JAZZCASH",
    "cashAccount": "03001234567",
    "receiver": {
        "name": "Ali Khan",
        "phone": "03001234567"
    },
    "callbackUrl": "https://www.example.com/callback"
}

Responses

FieldRequiredTypeDescription
codeMString00 success, other values error.
messageMStringResult message.
orderNoMStringMerchant order number.
tradeNoOStringSmilepayz trade number.
money.currencyMStringPKR.
money.amountMNumberOrder amount.
channel.paymentMethodMStringPay-out method.
channel.cashAccountMStringBeneficiary wallet number.
statusOStringINIT, PROCESSING, SUCCESS, FAILED, or EXPIRED.

Notification/Callback

Respond with the string SUCCESS only after the callback is accepted.