Retrieve Order Details
Overview
This interface allows merchants to retrieve detailed results of bank card transfer transactions. It provides comprehensive information about the transfer status, payment details, and transaction metadata.
API URL
- Staging Environment: https://uat.test2pay.com/sgs/api/transfer/getTransferToBankCard
- Production Environment: https://api.payby.com/sgs/api/transfer/getTransferToBankCard
Request
HTTP Headers
Attributes
Content-Language String
- The language in which the response message will be used, currently only English is supported.
- Example value: en
- Maximum length:
10
Content-Type String Required
- The media type. Required for operations with a request body. The value is
application/<format>
, whereformat
isjson
. - Example value: application/json
- The media type. Required for operations with a request body. The value is
sign String Required
Requests should be signed using private-key cryptography. This allows the payment gateway to verify that an incoming request is really from your application.
Partner-Id String Required
- The merchant id of your account.
- Example value: 200001200101
- Maximum length:
12
HTTP Body
Request Time
- Parameter Name:
requestTime
- Required: Required
- Type:
Timestamp(3)
- Example:
1581493898000
- Description: Request timestamp in milliseconds
- Parameter Name:
Business Content
- Parameter Name:
bizContent
- Merchant Order Number
- Parameter Name:
merchantOrderNo
- Required: Required
- Type:
String(64)
- Example:
Me23484
- Description: Unique order identifier from merchant system
- Parameter Name:
- Merchant Order Number
- Required: Required
- Type:
GetTransferToBankOrderRequest
- Example:
-
- Description: Business-specific request content
- Parameter Name:
Request Sample
HTTP Headers
{
"Content-Language": "en",
"Content-Type": "application/json",
"Partner-Id": "200000018128",
"sign": "RXF8WmC67QSnr62l3oU33fjpUvAo6Yrgvk05c/vYLtmHRGMoAH4qSnap2pto3mY7KgyP5wkNUsyQXJ/ZwbfccSONLb5zA7Z7q74IsOwdJw3BKXxVWr4tfjkA02Pfcp0cZWjE/Y8jTcbtgdc5VI90LNmkgPWbrSlDbNW8p3NlhnKg+Xfl95SgMBPF9afttsU/2a5jLnZXSVcXoSthxpJ6XkZwd45+jhOjBguT+IC8uLVSNRvwDisRGgf9PYv39OH6ITEhbY2sgjkdzBZBOZlt7awy2vkMEsePsuafwrNhuz7xzjj55PzNzk8+zCUu/791OhC/eFUyGimtDw5mX9cyQw=="
}
HTTP Body
{
"body": {
"bizContent": {
"merchantOrderNo": "M536433721888"
},
"requestTime": 1585142880000
}
}
Response
HTTP Header
Attributes
Request Status
- Variable Name:
applyStatus
- Required: Yes
- Type: String(16)
- Example:
SUCCESS
- Description:
SUCCESS
– Application successfulFAIL
– Application failedERROR
– Exception occurred
- Variable Name:
Return Error Code
- Variable Name:
code
- Required: Yes
- Type: String(10)
- Example:
0
- Description: Return code
- Variable Name:
Return Message
- Variable Name:
msg
- Required: No
- Type: String(200)
- Example:
-
- Description: Return message
- Variable Name:
HTTP Body
Attributes
TransferBankCardOrder
Request Time (
requestTime
)- Required: Yes
- Type: Timestamp(3)
- Example:
1581493898000
Merchant Order Number (
merchantOrderNo
)- Required: Yes
- Type: String(64)
- Example:
S10000
PayBy Order Number (
orderNo
)- Required: Yes
- Type: String(32)
- Example:
O1000
Product Name (
product
)- Required: Yes
- Type: String(200)
- Example:
Transfer Bank Card
Order Status (
status
)- Required: Yes
- Type: String
- Example:
CREATED
,SUCCESS
,FAILURE
,BANK_FAIL
- Description: The status of order
Amount (
amount
)- Required: Yes
- Type: Money
Account Holder Type (
accountHolderType
)- Required: Yes
- Type: String(16)
- Example:
INDIVIDUAL
- Description:
INDIVIDUAL
orCORPORATE
First Name (
firstName
)- Required: Optional
- Type: String(200)
- Description: SHA256 of original text, required if
INDIVIDUAL
Last Name (
lastName
)- Required: Optional
- Type: String(200)
- Description: SHA256 of original text, required if
INDIVIDUAL
Middle Name (
middleName
)- Required: Optional
- Type: String(200)
- Description: SHA256 of original text
Company Name (
companyName
)- Required: Optional
- Type: String(200)
- Description: SHA256 of original text, required if
CORPORATE
Card Number (
cardNumber
)- Required: Yes
- Type: String(64)
- Description: SHA256 of original text
Expiry Month (
expiryMonth
)- Required: Yes
- Type: String(2)
- Example:
09
- Description: The card's expiration month of the expiration year. The number must between 1 and 12, and the year + month should be larger or equal to current month.
Expiry Year (
expiryYear
)- Required: Yes
- Type: String(4)
- Example:
2027
- Description: The card's expiration year
Payment Memo (
memo
)- Required: Optional
- Type: String(128)
- Example:
Bonus
Notification URL (
notifyUrl
)- Required: Optional
- Type: String(200)
- Example:
http://yoursite.com/api/notification
- Description: The URL where the merchant receives notifications
Failure Description (
failDes
)- Required: Optional
- Type: String(200)
- Example:
-
- Description: Cause of order failure
Bank Reference Number (
bankReference
)- Required: Optional
- Type: String(128)
Payer Fee Amount (
payerFeeAmount
)- Required: Yes
- Type: Money
- Example:
{ "amount": 0, "currency": "AED" },
- Description: The fee paid by the payer
Fee Payer ID (
payerFeeMemberId
)- Required: Yes
- Type: String(32)
- Example:
200000429066
- Description: ID of the party paying the fee
Payment Time (
paidTime
)- Required: Yes
- Type: Date
- Description: Time of deduction
Refund Time (
refundedTime
)- Required: Optional
- Type: Date
- Description: Time of refund
Response Sample
HTTP Headers
{
"sign": "Yv+C2lOQmfERdm5GF9b2V4Y98HmX/6CFyconeOW36AoPqcb7InRcP9E5GnvJLfMoCScuNP4FBdJ5tJpL0A7yPHUMfxARi05jFRSMG97JJazDbWTbRkNM1ZupmTubhUvxvRCgvJp1k0c5yrHph+F+++W5eYho92xnkNgd62BS27i0iDRGzGSmsaPpK7MFcdlvnbbnmDZZJ0LH6RhYiJLYKl+znllQx3jNfCRjV28o22FZ35Q43mZTsS4uAZWbZ/KfaqWoV3sN62Cjj8DSg3mD6GCGWSVbxLq58DUxAq+6GwJ7Gj0Dc9nMXP3gnFW7dodQ9AjL2iHnH6Zh1Pw2D5/ung=="
}
HTTP Body
{
"body": {
"transferToBankCard": {
"amount": {
"amount": 0.1,
"currency": "AED"
},
"partnerId": "200000429066",
"notifyUrl": "http://yoursite.com/api/notification",
"memo": "Bonus",
"createdTime": 1741917501666,
"payerFeeAmount": {
"amount": 0,
"currency": "AED"
},
"payerFeeMemberId": "200000429066",
"orderNo": "131741917501042130",
"merchantOrderNo": "7a5b47a4-1824-4a4d-b581-9b0ebd5dd436",
"product": "Transfer Bank Card",
"status": "CREATED",
"paidTime": 1741917502000,
"accountHolderType": "INDIVIDUAL",
"cardNumber": "6b59af6dcc4fb841d5f053a852ed917fd5eecad0cc2c3e3507540c065f520a4c",
"expiryMonth": "08",
"expiryYear": "2028",
"firstName": "c6f27629d041725bb227a0d718641d220d69356cd82b3b7230f1d0dff950de5f",
"lastName": "15d6dacb4fbda825195e5873c175a9b093daa32345c708ac18411365f6fc6038",
"middleName": "15d6dacb4fbda825195e5873c175a9b093daa32345c708ac18411365f6fc6038"
}
},
"head": {
"applyStatus": "SUCCESS",
"code": "0",
"msg": "SUCCESS",
"traceCode": "974825"
}
}
Response Codes
Code | Message | Cause | Workaround |
---|---|---|---|
0 | SUCCESS | Request processed successfully | - |
400 | INVALID_PARAMETER | Invalid request parameters | Review and correct request parameters |
400 | REQUESTTIME_TOO_EARLY | Request time is too early compared to current time | Adjust request timestamp |
400 | REQUESTTIME_TOO_LATER | Request time is too late compared to current time | Adjust request timestamp |
402 | RATE_LIMIT_REJECT | Request frequency exceeds allowed limit | Reduce request frequency |
403 | UNAUTHORIZED | API access not authorized | Contact PayBy for authorization |
404 | SERVICE_NOT_AVAILABLE | API service is unavailable | Contact PayBy support |
500 | SYSTEM_ERROR | Internal system error | Contact PayBy support and retry later |
504 | SERVICE_TIMEOUT | Service request timeout | Retry the request |
601 | RISK_FAIL | Risk control validation failed | Review and adjust business parameters |
62004 | MERCHANT_ORDER_NO_NOT_EXIST | Merchant order number does not exist | Verify and correct merchant order number |