1. deposit
Tarspay_en_INR
  • Access Guide
  • Core business process description
  • Attachment code table
  • deposit
    • Create a collection order
      POST
    • Get collection order results
      POST
    • utr query
      POST
    • utr supplement
      POST
  • withdraw
    • Create payment order
      POST
    • Get payment order results
      POST
  • Account Balance
    • Get balance information
      POST
  • callback
    • Callback notification interface (customized by merchant)
      POST
  1. deposit

Create a collection order

POST
/api/pay/unifiedOrder

Limit information#

Collection :100-50000

Request

Header Params

Body Params application/json

Example
{
    "amount": "100",
    "currency": "INR",
    "customerAccountNumber": "123456789",
    "customerContact": "9123456789",
    "customerEmail": "g762646676@126.com",
    "customerName": "DW",
    "mchNo": "M1688443660",
    "mchOrderNo": "YN220221122000000733",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "",
    "wayCode": "UPI"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/pay/unifiedOrder' \
--header 'X-API-KEY: 03f7cd24b7c3cf26aad23c15eb7b36a8ed35d9964d03d1e96da6214c855dd29c32' \
--header 'X-API-NONCE: 1704334484607' \
--header 'X-API-SIGNATURE: 3046022100bb4818ddbe977ea24ef6eba575819bffaeb7eb2a559cc3a4eb40d96397081982022100806178e43002e7376881f1e108abb2ed3cfc0d9d830cf73a80bf5b1e2db8848f' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "100",
    "currency": "INR",
    "customerAccountNumber": "123456789",
    "customerContact": "9123456789",
    "customerEmail": "g762646676@126.com",
    "customerName": "DW",
    "mchNo": "M1688443660",
    "mchOrderNo": "YN220221122000000733",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "",
    "wayCode": "UPI"
}'

Responses

๐ŸŸข200ๆˆๅŠŸ
application/json
Body

Example
{
    "code": 0,
    "data": {
        "amount": "100",
        "countryCode": "in",
        "currency": "INR",
        "customerContact": "9123456789",
        "mchOrderNo": "YN220221122000000733",
        "orderState": 0,
        "payDataType": "payurl",
        "payOrderId": "P1742731237818892289",
        "payUrl": "https://payment-test.tarspay.com/#/order/in/P1742731237818892289",
        "payWays": {
            "UPI": [
                {
                    "countryCode": "in",
                    "createdAt": 0,
                    "id": 20,
                    "payWay": "UPI",
                    "payWayLogo": "https://tarspay.oss-ap-southeast-1.aliyuncs.com/tarspay_v_1.0/upi.svg",
                    "payWayType": "UPI",
                    "skipMode": 1,
                    "state": 1,
                    "updatedAt": 0
                }
            ]
        }
    },
    "msg": "SUCCESS",
    "sign": "3046022100d848b8f671f8716e47ff0ae017f23ea18f3475d306662b890d684235f2516d2b022100a89cbadc21e37ff579a4e02fcc7ae5f85741406f11c44dcb1efec6c4c49586cd"
}
Modified atย 2024-01-15 02:39:03
Previous
Attachment code table
Next
Get collection order results
Built with