Path/ordersnap/api/v1.0/debit/payment-host-to-host
HTTP MethodPOST
Versionv1.0
Service Code54

Request Header

Field NameField TypeMandatoryField Description
Content-typeStringMMedia type of the resource, i.e. application/json
AuthorizationStringMRepresents access_token of a request; string starts with keyword “Bearer ” followed by access_token. Can get this token from Access Token B2B response. Read here
X-TIMESTAMPStringMClient’s current local time in ISO-8601 format.
X-SIGNATUREStringMCreated using symmetric signature HMAC_SHA512 algorithm. Read here
X-PARTNER-IDStringMUnique identifier for caller.
X-EXTERNAL-IDStringMMerchant’s unique ID per transaction request
CHANNEL-IDStringMPJP’s channel id.
Content-typeapplication/json
AuthorizationBearer gp9HjjEj813Y9JGoqwOeOPWbnt4CupvIJbU1Mmu4a11MNDZ7Sg5u9a
X-TIMESTAMP2023-07-06T14:12:50+07:00
X-SIGNATUREqoda1fa417c72d6b91c257e01e54fac824
X-PARTNER-ID7fb118fb-2738-4886-9817-8a2c4de43001
X-EXTERNAL-ID41807553358950093184162180797837
CHANNEL-ID95221

Request Body

Field NameField TypeMandatoryField Description
partnerReferenceNoStringONomor identifikasi transaksi pada sistem layanan konsumen.
amountObjectMJumlah Transaksi.
amount.valueStringMNominal Transaksi.
amount.currencyStringMMata Uang.
urlParamObjectMParameter yang disertakan di url untuk mengirimkan pemberitahuan pembayaran.
urlParam.urlStringMTautan link url.
urlParam.typeStringMJenis url.
urlParam.isDeeplinkStringMPemberitahuan menggunakan deeplink atau tidak.
validUpToStringOWaktu berakhirnya pembayaran secara otomatis.
Format :
YYYY-MM-DDTHH:mm:ss+07:00
payOptionDetailsObjectODetail opsi pembayaran yang akan digunakan untuk melakukan pembayaran.
payOptionDetails.payMethodStringMMetode Pembayaran.
payOptionDetails.payOptionStringMOpsi pembayaran yang menunjukkan penyedia pembayaran.
additionalInfoObjectOInformasi tambahan.
additionalInfo.userNameStringMNama pengguna merchant.
additionalInfo.userEmailStringMAlamat email pengguna.
additionalInfo.userPhoneStringMNomor telepon pengguna.
{
    "partnerReferenceNo": "order01",
    "amount": {
        "value": "10000.00",
        "currency": "IDR"
    },
    "urlParam": {
        "url": "https://yourthankyoupage.com",
        "type": "PAY_RETURN",
        "isDeeplink": "N"
    }
    "validUpTo": "2024-08-23T07:44:11+07:00",
    "payOptionDetails": {
        "payMethod": "7",
        "payOption": ""
    },
    "additionalInfo": {
        "userName": "Agung Setiadi Putra",
        "userEmail": "[email protected]",
        "userPhone": "082231838297"
    }
}

Response Body

Field NameField TypeMandatoryField Description
additional_infoObjectMAdditional Info
additional_info.channelStringMJenis kanal yang digunakan
additional_info.deviceIdIntegerOID device atau perangkat
appRedirectUrlStringMURL yang digunakan untuk mengarahkan ke aplikasi tertentu setelah transaksi
approvalCodeStringOKode Persetujuan
partnerReferenceNoStringMNomor referensi unik dari partner
referenceNoStringMNomor referensi
responseCodeIntegerMRespon Kode
responseMessageStringMDebug message to provide more information.
webRedirectUrlStringMURL untuk mengarahkan ke browser web
{
  "additionalInfo": {
    "channel": "mobilephone",
    "deviceId": ""
  },
  "appRedirectUrl": "https://www.redirecttomerchant.com?pc_code=linkaja&data=qoinhub:%2F%2Fid.qoin.qoinhub%2Fpayment%3FTrxNo=T24110693364&Signature=OjKXrsLifcJJRWg3yWGfq2RY75tOM12%2FtZ7J55am21LWRPTqkrnDHi+%2FvTwcxponOkaLZzVn1ZOGi7BuFdwnquGD0x2TUE0QxrIFpVJUkJmZXqjN+8MwIZRKFGqYU+JtkxvBOqi6a4e+oHfj+277K1p1tAJAa4SBKWQzvL2FIpdbEpX2T6c4nMpY2gb+n%2Fm8hjvoB1751xuOVq4+jF2JJFn2nAvoyRVRN9cHw2F59JUQWSnuh5GntCViuNl4AFchow7Csb+nwGp%2FTFeGF4FMoJ6yvZrcr8TjtKL91z68xor+2KxinFg0nOau6D92JFY4vT%2FUDEj%2FT3R3Mz3VdNh4hw==",
  "approvalCode": "",
  "partnerReferenceNo": "D241029004",
  "referenceNo": "T24110693364",
  "responseCode": "2005400",
  "responseMessage": "Request has been processed successfully",
  "webRedirectUrl": "https://www.redirecttomerchant.com?pc_code=linkaja&data=qoinhub:%2F%2Fid.qoin.qoinhub%2Fpayment%3FTrxNo=T24110693364&Signature=OjKXrsLifcJJRWg3yWGfq2RY75tOM12%2FtZ7J55am21LWRPTqkrnDHi+%2FvTwcxponOkaLZzVn1ZOGi7BuFdwnquGD0x2TUE0QxrIFpVJUkJmZXqjN+8MwIZRKFGqYU+JtkxvBOqi6a4e+oHfj+277K1p1tAJAa4SBKWQzvL2FIpdbEpX2T6c4nMpY2gb+n%2Fm8hjvoB1751xuOVq4+jF2JJFn2nAvoyRVRN9cHw2F59JUQWSnuh5GntCViuNl4AFchow7Csb+nwGp%2FTFeGF4FMoJ6yvZrcr8TjtKL91z68xor+2KxinFg0nOau6D92JFY4vT%2FUDEj%2FT3R3Mz3VdNh4hw=="
}

List Response Code

Response CodeHTTP StatusDescription
2005400200Successful
4005401400Invalid format