1. 7. WebPay
Starpay Merchant Disbursement API
  • 1. Revision History
  • 2. Signature
    • 2.1 API connection check
    • 2.2 Signing a message
    • 2.3 Use the SHA256WithRSA algorithm to calculate the To-Be-Signed String
    • 2.4 Sample
    • 2.5 Method of Signature
  • 3. Procedure Diagram
  • 4. API List
  • 5. Disbursement
    • 5.1 Fund Disbursement List
      POST
    • 5.2 Fund Disbursement
      POST
    • 5.3 Fund Disbursement (Starpay to Starpay Fund Transfer)
      POST
    • 5.4 Fund Disbursement Query
      POST
    • 5.5 Disbursement State Notification
      POST
    • 5.6 Disbursement Balance Query
      POST
    • 5.7 Scan QR
      POST
    • 5.8 Fund Disbursement (Pay P2M QR)
      POST
    • 5.9 Fund Disbursement (Pay P2P QR)
      POST
  • 6. Repayment
    • 6.1 Repayment
      POST
    • 6.2 Repayment State Query
      POST
    • 6.3 Repayment State Notification
      POST
    • 6.4 Repayment Static Qr Generate
      POST
    • 6.5 Repayment Static Qr Order Notify
      POST
    • 6.6 Repayment Balance Query
      POST
    • 6.7 Edit Repayment Static QR Status
      POST
    • 6.8 Repayment transaction Query through RefNo
      POST
    • 6.9 Repayment Cancel
      POST
  • 7. WebPay
    • 7.1 WebPay
      POST
    • 7.2 WebPay Query
      POST
    • 7.3 WebPay Notification
      POST
  • 8. Error code list
  • 9. 3rd Party Error Code List
  • 10.Instapay Error Code List
  • 11. Appendix
    • 11.1 Test demo
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. 7. WebPay

7.3 WebPay Notification

POST
http://localhost:8080/notify

Request

Body Params application/json

Example
{
    "request": {
        "code": "200",
        "message": "success",
        "trxDate": "2024-11-27T03:05:40+08:00",
        "trxAmount": 10000,
        "trxState": "SUCCESS",
        "originalMsgId": "P01202411270250399660852",
        "orderNo": "202411271108296839",
        "mchId": "101510000001",
        "payAcctNo": "639488881964"
    },
    "signature": "AhdKc2LBm/4kI8iczrAFpi8ffb+rc3IAwBPy9V4MTXjXP8ocEZNaN9lL8Wy+w0WENAAyrExHGh3s7q3mVIKymoei9TpWZS7xTd36n1K4hB8O4PxJZymnOo4jSRNxHSE3fzCvv8yB3jhgvjhub+PAXQiQGx7MhVImfulphGA1lJRVb8j3J0RCsi/he9lzrtDQwthjTGvH3iz1YgjjGB0NRkRJe7cTun+r+CP/E2cssChfn9CKAC2lwOXSDVntXqWez6qTaJXDojZ3WQmCQo/I9H3LzyoYVbUMSYwX8i7kavRYKuo1GAefQf2SGrjcLJzIn+u6apfcNSz1Hx04LE2Oyw=="
}

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 'http://localhost:8080/notify' \
--header 'Content-Type: application/json' \
--data '{
    "request": {
        "code": "200",
        "message": "success",
        "trxDate": "2024-11-27T03:05:40+08:00",
        "trxAmount": 10000,
        "trxState": "SUCCESS",
        "originalMsgId": "P01202411270250399660852",
        "orderNo": "202411271108296839",
        "mchId": "101510000001",
        "payAcctNo": "639488881964"
    },
    "signature": "AhdKc2LBm/4kI8iczrAFpi8ffb+rc3IAwBPy9V4MTXjXP8ocEZNaN9lL8Wy+w0WENAAyrExHGh3s7q3mVIKymoei9TpWZS7xTd36n1K4hB8O4PxJZymnOo4jSRNxHSE3fzCvv8yB3jhgvjhub+PAXQiQGx7MhVImfulphGA1lJRVb8j3J0RCsi/he9lzrtDQwthjTGvH3iz1YgjjGB0NRkRJe7cTun+r+CP/E2cssChfn9CKAC2lwOXSDVntXqWez6qTaJXDojZ3WQmCQo/I9H3LzyoYVbUMSYwX8i7kavRYKuo1GAefQf2SGrjcLJzIn+u6apfcNSz1Hx04LE2Oyw=="
}'

Responses

🟢200
application/json
Bodyapplication/json

Example
{
    "code": "200",
    "message": "success"
}
Previous
7.2 WebPay Query
Next
8. Error code list