# Starpay Merchant Disbursement API ## Docs - [1. Revision History](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/1-revision-history-47283266f0.md): - [2. Signature](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-signature-47283267f0.md): - 2. Signature [2.1 API connection check](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-1-api-connection-check-6857342m0.md): - 2. Signature [2.2 Signing a message](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-2-signing-a-message-5685032m0.md): - 2. Signature [2.3 Use the SHA256WithRSA algorithm to calculate the To-Be-Signed String](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-3-use-the-sha256withrsa-algorithm-to-calculate-the-to-be-signed-string-5685033m0.md): - 2. Signature [2.4 Sample](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-4-sample-5685034m0.md): - 2. Signature [2.5 Method of Signature](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/2-5-method-of-signature-8062972m0.md): - [3. Procedure Diagram](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/3-procedure-diagram-47283268f0.md): - [4. API List](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/4-api-list-47283270f0.md): - [5. Disbursement](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-disbursement-47283269f0.md): - [6. Repayment](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-repayment-47283271f0.md): - [7. Error code list](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/7-error-code-list-47283272f0.md): - [8. 3rd Party Error Code List](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/8-3rd-party-error-code-list-47283273f0.md): - [9.Instapay Error Code List](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/9-instapay-error-code-list-77495504f0.md): - [10. Appendix](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/10-appendix-47283274f0.md): - 10. Appendix [10.1 Test demo](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/10-1-test-demo-8062978m0.md): ## API Docs - 5. Disbursement [5.1 Fund Disbursement List](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-1-fund-disbursement-list-244978309e0.md): Obtain the list of banks supported by Instapay. - 5. Disbursement [5.2 Fund Disbursement](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-2-fund-disbursement-244978310e0.md): Transfer funds from the merchant account to the user-specified bank account via Instapay. - 5. Disbursement [5.3 Fund Disbursement (Starpay to Starpay Fund Transfer)](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-3-fund-disbursement-starpay-to-starpay-fund-transfer-244978311e0.md): Transfer funds from the merchant account to the specified Starpay user account through the Starpay system. - 5. Disbursement [5.4 Fund Disbursement Query](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-4-fund-disbursement-query-244978312e0.md): Obtain the transaction result for the fund distribution order. - 5. Disbursement [5.5 Disbursement State Notification](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-5-disbursement-state-notification-244978313e0.md): When the transaction changes to a final status (such as failure or success), the system will send a notification of the order result to the URL provided at the time of transaction creation. - 5. Disbursement [5.6 Disbursement Balance Query](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-6-disbursement-balance-query-244978314e0.md): Check the current balance of the merchant's Payroll account, which indicates the amount available for fund disbursement. - 5. Disbursement [5.7 Scan QR](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-7-scan-qr-244978315e0.md): Merchants can call this interface to send the EMV standard QR code as a String. - 5. Disbursement [5.8 Fund Disbursement (Pay P2M QR)](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-8-fund-disbursement-pay-p2m-qr-248157549e0.md): Merchants can call this interface to initiate a transaction to disburse funds to a QRPh P2M QR. - 5. Disbursement [5.9 Fund Disbursement (Pay P2P QR)](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/5-9-fund-disbursement-pay-p2p-qr-289522651e0.md): Merchants can call this interface to initiate a transaction to disburse funds to a QRPh P2P QR. The API will respond with the acceptance result in real-time, and merchants should either call the 5.4 Fund Disbursement Query API or wait for the callback from the 5.5 Disbursement State Notification API to get the final transaction results. - 6. Repayment [6.1 Repayment](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-1-repayment-244978316e0.md): Call the interface to generate a Starpay payment QR code, which can be displayed to the user for scanning and payment. - 6. Repayment [6.2 Repayment State Query](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-2-repayment-state-query-244978317e0.md): After displaying the payment QR code, the merchant can initiate a transaction result query to confirm whether the QR code has been paid. - 6. Repayment [6.3 Repayment State Notification](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-3-repayment-state-notification-244978318e0.md): When the payment QR code has been paid and the transaction changes to a final status (such as failure or success), the system will send an order result notification to the URL provided at the time of transaction creation. - 6. Repayment [6.4 Repayment Static Qr Generate](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-4-repayment-static-qr-generate-244978319e0.md): The merchant can generate a static QR code with a terminal ID, and the static QR code can be paid multiple times. - 6. Repayment [6.5 Repayment Static Qr Order Notify](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-5-repayment-static-qr-order-notify-244978320e0.md): After the static QR code has been paid by the customer, the system will send a notification with the transaction information. - 6. Repayment [6.6 Repayment Balance Query](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-6-repayment-balance-query-244978321e0.md): Check the current balance of the merchant's receiving account, which reflects the total amount of user payments (pending settlement). - 6. Repayment [6.7 Edit Repayment Static QR Status](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-7-edit-repayment-static-qr-status-248165817e0.md): The static QR code generated through the Generation API has a default status of "Active". - 6. Repayment [6.8 Repayment transaction Query through RefNo](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-8-repayment-transaction-query-through-refno-345847646e0.md): This interface allows merchants to query repayment orders using the Instapay RefNo provided by the user, in order to locate the user's transaction. To improve query efficiency, this interface is limited to searching for transaction orders from a specified date. - 6. Repayment [6.9 Repayment Cancel](https://s.apifox.cn/f9658a2a-2f20-42de-95a7-85cf08da631d/6-9-repayment-cancel-430550532e0.md): Starpay repayment order cancellation interface