1. 6. Repayment
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. Error code list
  • 8. 3rd Party Error Code List
  • 9.Instapay Error Code List
  • 10. Appendix
    • 10.1 Test demo
  1. 6. Repayment

6.2 Repayment State Query

POST
https://financeapi-uat.wallyt.net/finance-payment-service/v1/repayment/query
After displaying the payment QR code, the merchant can initiate a transaction result query to confirm whether the QR code has been paid.
Note: Query platform repayment order information based on the message number and original message number. The message number msgId is the request message number that initiated the query, and the original message number originalMsgId is the request message number of the repayment transaction that needs to be queried, both of which are generated by the merchant system.

Request

Body Params application/json

Example
{"request":{"mchId":"101510000001","msgId":"1861611528197906432","originalMsgId":"S110202411271861610566972481536","service":"unified.repayment.query"},"signature":"H0RxyKmQnMkCVR5BJlCWngENSnBi4lBFOj5ec0yduN3ztzMP11BGZ+mFmHPC4t4iACIYgBFf9aLweHlTT+Tvk/6TGOzK0Hovidu2Kv+DD6Kbghq3dsMZfVuKSOnPhdrpgTvFwDANSG3ADmqOxMTGF5Aj0d8KQaKnFi8p3Lov1KBW26O4XzoOm+VQCQUccdhmlefA1TxPIeCvQ5d4WG9Vddy2ZBFx9UDpq86ThffVDYtMrRzCMIR7hSMa8dyZyNnzkMAh5Cw9j6aaNmciKNl8Sgpb6SFweky7KvVJoqyKiSk1Nmn66jNNoUqCGvAvznCwnx7Svm74Td9kt9yxYJ8GlQ=="}

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 'https://financeapi-uat.wallyt.net/finance-payment-service/v1/repayment/query' \
--header 'Content-Type: application/json' \
--data-raw '{"request":{"mchId":"101510000001","msgId":"1861611528197906432","originalMsgId":"S110202411271861610566972481536","service":"unified.repayment.query"},"signature":"H0RxyKmQnMkCVR5BJlCWngENSnBi4lBFOj5ec0yduN3ztzMP11BGZ+mFmHPC4t4iACIYgBFf9aLweHlTT+Tvk/6TGOzK0Hovidu2Kv+DD6Kbghq3dsMZfVuKSOnPhdrpgTvFwDANSG3ADmqOxMTGF5Aj0d8KQaKnFi8p3Lov1KBW26O4XzoOm+VQCQUccdhmlefA1TxPIeCvQ5d4WG9Vddy2ZBFx9UDpq86ThffVDYtMrRzCMIR7hSMa8dyZyNnzkMAh5Cw9j6aaNmciKNl8Sgpb6SFweky7KvVJoqyKiSk1Nmn66jNNoUqCGvAvznCwnx7Svm74Td9kt9yxYJ8GlQ=="}'

Responses

🟢200Success
application/json
Body

Example
{
    "response": {
        "code": "200",
        "message": "success",
        "msgId": "1861611528197906432",
        "mchId": "101510000001",
        "trxDate": "2024-11-27T11:18:41+08:00",
        "trxAmount": 10000,
        "trxState": "PROCESSING",
        "originalMsgId": "S110202411271861610566972481536",
        "orderNo": "202411271108369119"
    },
    "signature": "lzLsKhNVc/WRUVShuv3F7g5nQZ9aPn1j3/ZXGp4w2mnCfgYIbo0L15K+V1VeGizvjtBow13ZcxSOoXt1FW12DH4iIwerd7iI9erQgDE4POUGqHPgYMl048gpVzay8OJUQkRALbhkJ+J2txB+L2wbfSHZbBYRqp0ajNAVIT6RRZllKTL7Ij2zkw2m4TN/SERq3MMI4lI7hO71jS5KUuWfWULUrHrUTRVeagY4qQ4q5zvc4WlfkOiTZUSZZteMc9UlLzPyADlP+cfdbTVI7l/HVVS6JRLZgprl/SPPmuCfzdCEYbvjgAn6H8NEwissHxa8+RcprpVZ+/4zERJZ6gFLag=="
}
Previous
6.1 Repayment
Next
6.3 Repayment State Notification
Built with