Real-Life Scenarios
Real-life scenarios are depicted through an illustrative workflow overview.
Below is an illustrative workflow demonstrating how the Papaya Global Workforce Payments APIs function in real-world scenarios.
You need to transfer $7,000 in USD to an individual beneficiary in the United States. The payment will be sourced from the available balance in your USD wallet account.
Before you begin working with the API, you must first complete two required steps:
Establishing a legal entity (finishing the KYB procedure)
Open A Wallet (through the app)

1. Authentication
To get started, you must acquire an access token to access Papaya Global's Workforce Payments' various API endpoints. By utilizing your api_key and client_secret, you can make a request to the Token API endpoint. Upon successful authentication, you will receive an access token.
Request Example
POST/token
Response Example
2. Create a Payment Group
A group Allows the organization to consolidate and oversee payment requests effectively. A group is generated with a given wallet. Once created, you can supervise the group’s payment requests based on various criteria such as time, location, business unit, etc.
Request Example
POST /payments/groups
Response Example
3. Create Beneficiary
Before making a payment, it is necessary to create a beneficiary resource. The beneficiary refers to the person or organization receiving the payment, and their bank details and preferred payment method are recorded. Once registered, the beneficiary ID can be used to send payment instructions.
Request Example
POST /payments/beneficiaries
Response Example
4. Create Payment Instruction
Creating payment Instructions will enable you to transfer funds to the registered beneficiary. The response will return all requisite details on the transaction.
Request Example
POST /payments/payments
Response Example
5. Check Wallet Balance
Retrieve wallet details and verify the balance associated with the wallet ID. If there are insufficient funds available, ensure you top up your wallet.
Request Example
GET /payments/wallets/?id=f6b2776d-53f4-404e-a690-c3766a91d43a
Response Example
6. Approve Payment Instruction
Review the payment instruction details and approve the transaction by indicating the IDs of the payment.
Request Example
PATCH /payments/payments/approve?id=1573c466-53ba-46e7-a7f2-b6d49c79716b
Response Examples
7. Check Payment Status
Obtain payment information and check the payment status by providing the payment ID.
Request Example
GET /payments/payments/id=1573c466-53ba-46e7-a7f2-b6d49c79716b
Response Examples
Last updated