In This Section
In the Payouts API Recipes section you will find step-by-step recipes for integrating the Mass Payout and Mass Claim Payout APIs into your product. Below you will find recipes to:
- Create a Mass Payout Request
- Create a Mass Claim Payout Request
- Create Payment and Upload Document For payment
Mass Payouts Recipe
| Step | Corresponding Code (JavaScript) |
|---|---|
Create the Payment Request Body - Gather the Handle, Amount, POPCode, and Description for each client. Use the POPCode endpoint to view all POPCodes and their meanings. | const options = { |
Call the /mass-payout endpoint with the Payment Request Body - See the API guide for details about the Mass Payouts endpoint | const options = { |
Mass Claim Payouts Recipe
| Step | Corresponding Code (JavaScript) |
|---|---|
Create the Claim Payment Request Body - Gather the Email, Amount, POPCode, and Description for each person you willing to pay. Use the POPCode endpoint to view all POPCodes and their meanings. | const options = { |
Call the /mass-claim-payouts endpoint with the Claim Payment Request Body - See the API guide for details about the Mass Claim Payouts endpoint | const options = { |
Create Payment and Upload Document Recipe
| Step | Corresponding Code (JavaScript) |
|---|---|
Create the Request Body for Payment - Gather the Handle, Amount, POPCode, and Description for a client. Use the POPCode endpoint to view all POPCodes and their meanings. | const options = { |
Call the /payments endpoint with the Payment Request Body - See the API guide for details about the Submit Payment endpoint. | const options = { |
Call the /payments/{paymentReferenceId}/fileUpload endpoint - Collect paymentReferenceId (Successful response of /payments endpoint will return paymentReferenceId , or it can be found in your mass payout report if you executing payments via /mass-payout). Additionally, specify type of document in the url (INVOICE or SUPP_DOCUMENT), upload file and execute the request. See the API guide for more details . | const options = { |
