beneficiaries
The Bulk Import Beneficiary API used to perform a bulk import of beneficiary data. This API allows developers to import multiple beneficiaries in a single request, managing their bank details and personal information through a batch processing job.
When set to true, will update the beneficiary details for all pending payments created for the same beneficiary.
A string field, used for digital signatures or verification purposes.
Successful response
POST /payments/beneficiaries/import HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"update_payments": true,
"signature": "text",
"items": [
{
"id": "text",
"entity_type": "INDIVIDUAL",
"bank_details": {
"account_country": "text",
"account_currency": "text"
},
"entity": {}
}
]
}Successful response
The Bulk Import Beneficiary Status API used to retrieve the status of a bulk import operation for beneficiaries. This API allows developers to check the status of a bulk import operation for beneficiaries, including details on any errors encountered during the process.
The unique identifier for the bulk import job. This parameter is used to fetch the status of the specific import job.
TPy4DcQATiqZRRzTMEXt2QSuccessful response
The unique identifier for the bulk import job.
The date and time when the bulk import started.
The date and time when the bulk import completed.
The number of records that have been processed.
The total number of records in the import.
The number of records currently being processed.
The number of records that failed to import.
The overall status of the bulk import (e.g., DONE, IN_PROGRESS).
Not Found
GET /payments/beneficiaries/import/{job_id} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"completed_at": "2024-03-04T10:56:53.396911923Z",
"processed": 2,
"total": 3,
"job_id": "TPy4DcQATiqZRRzTMEXt2Q",
"started_at": "2024-03-04T10:56:51.126587470Z",
"processing": 0,
"progress": [
{
"row": 0,
"error": {
"error_info": {
"valid": false,
"warnings": [],
"errors": [
{
"description": "Missing property bank_name",
"properties": [
"$.bank_details"
]
}
]
},
"error_code": 422,
"error": "unprocessable_entity",
"message": "Payload object is invalid"
},
"status": "FAILED"
},
{
"row": 1,
"status": "SUCCESS"
},
{
"row": 2,
"status": "SUCCESS"
}
],
"failed": 1,
"status": "DONE"
}The Bulk Validate Beneficiary API is used to perform validations on multiple beneficiaries at once. It allows developers to validate multiple beneficiaries in a single request. This API is crucial for ensuring that the beneficiary information provided is correct and adheres to the required standards before proceeding with further operations such as payments or onboarding.
Successful response
POST /payments/beneficiaries/validate HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"items": [
{
"entity_type": "INDIVIDUAL",
"bank_details": {
"account_country": "text",
"account_currency": "text"
},
"entity": {}
}
]
}Successful response
{
"valid": [
{
"entity_type": "INDIVIDUAL",
"currency": "text",
"country": "text"
}
],
"invalid": [
{
"entity_type": "INDIVIDUAL",
"currency": "text",
"country": "text",
"issues": [
{
"field": "text",
"message": "text"
}
]
}
],
"totals": {
"valid": 1,
"count": 1,
"schemas": 1,
"invalid": 1
}
}id of beneficiary to edit, if does not exist will be created
2 letter ISO country code
^[A-Z]{2}$3 letter ISO currency code
^[A-Z]{3}$entity_type
INDIVIDUALPossible values: Successful response
Beneficiary id
2 letter ISO country code
^[A-Z]{2}$3 letter ISO currency code
^[A-Z]{3}$INDIVIDUALPossible values: time when this link will expire
the link to redirect the user to
GET /payments/beneficiaries/{id}/collect HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"id": "text",
"country": "text",
"currency": "text",
"entity_type": "INDIVIDUAL",
"expires": "2026-01-01T00:00:00.000Z",
"url": "text"
}The Update Beneficiary Details API is used to modify the details of an existing beneficiary. It allows developers to update the details of an existing beneficiary. This API is crucial for maintaining accurate and up-to-date beneficiary information, which is essential for smooth payment processing and compliance with financial regulations.
the unique id of the beneficiary
A custom name to apply to beneficiary.
The type of entity, e.g., INDIVIDUAL or BUSINESS.
INDIVIDUALPossible values: The country code (ISO 3166-1 alpha-2) where the bank account is held.
^[A-Z]{2,2}$Possible values: The currency code (ISO 4217) of the bank account.
^[A-Z]{3,3}$Possible values: An object containing the beneficiary’s personal or business information.
An object containing the beneficiary’s bank details.
Successful response
PUT /payments/beneficiaries/{id} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"name": "text",
"entity_type": "INDIVIDUAL",
"country": "AF",
"currency": "AED",
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"entity": {},
"bank_details": {}
}Successful response
The Get Beneficiary Details API is used to retrieve all the details associated with a specific beneficiary, identified by their unique beneficiary_id. It allows developers to retrieve detailed information about a specific beneficiary. This API is essential for obtaining the latest data on a beneficiary, which can be used for review, compliance, and processing purposes.
The unique identifier of the beneficiary whose details are being retrieved.
Successful response
Display name of beneficiary
The legal type of the entity, e.g., contact.
The unique identifier of the beneficiary.
An object containing the beneficiary’s bank details.
An object containing the beneficiary’s personal or business information.
The type of entity, e.g., INDIVIDUAL or BUSINESS.
The currency code (ISO 4217) of the bank account.
The current status of the beneficiary
true when the beneficiary is active for payments
GET /payments/beneficiaries/{id} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"name": "text",
"type": "contact",
"id": "text",
"bank_details": {},
"entity": {},
"entity_type": "INDIVIDUAL",
"currency": "text",
"status": "ACTIVE",
"active": true,
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"payments": {
"total": 1,
"next": {
"date": "2026-01-01T00:00:00.000Z",
"amount": 1,
"currency": "text"
},
"last": {
"date": "2026-01-01T00:00:00.000Z",
"amount": 1,
"currency": "text"
},
"history": {
"total": 1,
"amount": 1
}
},
"issues": [
{
"description": "text",
"hint": "text",
"action": "text",
"code": "text",
"severity": "ERROR"
}
]
}The Create A Beneficiary API is used to create a beneficiary on the platform. This API allows developers to create a new beneficiary within an account. Once registered(The beneficiary ID returned upon successful creation), the beneficiary ID can be used to send payment instructions. This API is essential for setting up beneficiaries for subsequent payment transactions.
A custom display name for the beneficiary.
The beneficiary ID serves as the unique identifier for this beneficiary on the platform.
The beneficiary’s type, either BUSINESS or INDIVIDUAL.
INDIVIDUALPossible values: The Bank country code (2-letter ISO 3166-2 country code).
^[A-Z]{2,2}$Possible values: The Account currency (3-letter ISO 4217 currency code).
^[A-Z]{3,3}$Possible values: The entity object contains the details of the beneficiary, such as name, address, and other personal or business details.
The bank details object contains information about the beneficiary’s bank account, including account number, bank code, and bank name.
Successful response
POST /payments/beneficiaries HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"name": "text",
"id": "text",
"entity_type": "INDIVIDUAL",
"country": "AF",
"currency": "AED",
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"entity": {},
"bank_details": {}
}Successful response
The Get Beneficiaries List API is used to fetch a list of all beneficiaries associated with an account. It allows developers to retrieve a list of all beneficiaries associated with an account. This API is essential for managing and reviewing the beneficiaries that have been created, enabling users to access comprehensive information about each beneficiary.
Filter the beneficiaries by the country code (2-letter ISO 3166-2 country code).
/^[A-Z]{2}$/Filter beneficiaries by the currency code (3-letter ISO 4217 currency code).
/^[A-Z]{3}$/The unique identifier of the beneficiary.
owner
The number of items to skip from the result set (e.g., ?skip=3).
0The maximum number of items to return in the result set (e.g., ?take=50).
50Successful response
GET /payments/beneficiaries HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"facets": {
"countries": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"currencies": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": 1
}
},
"items": [
{
"name": null,
"type": "contact",
"id": "text",
"entity_type": "INDIVIDUAL",
"account_country": "text",
"currency": "text",
"active": true,
"status": "ACTIVE",
"user_tags": {}
}
],
"paging": {
"skip": 1,
"take": 50,
"total": 1
}
}The Get Schema Information API is used to retrieve the specific schema requirements for beneficiaries, which may vary depending on factors like the beneficiary’s country, entity type (e.g., Individual, Business), and other relevant attributes. This API allows developers to retrieve schema information for beneficiaries, providing details on the required fields and structure for different types of beneficiaries based on country, entity type, and other parameters. This API is essential for understanding the data requirements when creating or updating beneficiaries.
The 2 letter ISO country code of the target bank.
^[A-Z]{2,2}$The 3 letter ISO code of the target bank account currency.
^[A-Z]{3,3}$The type of beneficiary for which to retrieve schema information, either INDIVIDUAL or BUSINESS.
INDIVIDUALPossible values: The 2 letter ISO code of the target beneficiary country (e.g., ?entity_country=US).
^[A-Z]{2,2}$Successful response
GET /payments/beneficiaries/schema/{type}/{country}/{currency} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
Last updated