groups
The Create A Payment Group API is designed to help users organize and manage payments by grouping related payment instructions. This API allows developers to create a new payment group within an account. A payment group is associated with a specific wallet and is used to organize and manage multiple payment instructions under a single group. This feature is particularly useful for streamlining payment operations based on various criteria such as time, location, or business unit.
A label to identify the group. This name should be unique within the account to avoid confusion with other groups (e.g., "February USD cycle").
A short description of the group that provides context or notes on its purpose.
The Wallet ID linked to this group. All payments within this group will be associated with this wallet (e.g., "f6b2776d-53f4-404e-a690-c3766a91d43a").
Successful response
The name of the group.
The entity type, which in this case is "group".
The description of the payment group as provided in the request.
The unique identifier of the payment group.
When locked, no new actions can be made.
When locked, no new actions can be made
The Wallet ID linked to this group. All payments within this group will be associated with this wallet.
POST /payments/groups HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"name": "text",
"description": "text",
"wallet": "text",
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Successful response
{
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"wallet": "text"
}The Get Payment Groups List API is designed to fetch comprehensive information about all payment groups within an account. This API allows developers to retrieve detailed information about all payment groups associated with an organization’s account. It provides flexibility through filtering, sorting, and pagination, enabling efficient management and retrieval of group data.
Filter payment groups by their description (e.g., ?description=Cycle).
a list of group id's to filter by
Filter payment groups by their locked status. Locked groups do not allow new payments (e.g., ?locked=true&locked=false).
name of group to filter by (name)
the number of items to skip in the result set
the maximum number of items to return in the result set
50a list of wallet id's to filter by
Successful response
GET /payments/groups HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"items": [
{
"info": {
"funding": {
"next": "2026-01-01",
"missing_funds": 1
},
"payments": {
"total": 1,
"pending": 1,
"pending_approval": 1,
"issues": 1,
"completed": 1,
"failed": 1,
"routing": 1,
"next": "2026-01-01",
"amount": {
"amount": 1,
"currency": "text"
}
}
},
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {},
"wallet": {
"name": "text",
"type": "text",
"id": "text",
"currency": "text",
"balance": 1,
"owner": "text"
}
}
],
"paging": {
"skip": 1,
"take": 1
}
}The Delete Payment Group API is used to permanently remove a payment group from an account. This API enables developers to delete a payment group from an account. It is important to note that a payment group can only be deleted if it is empty, meaning it does not contain any executed payments. If there are pending payments within the group, the API provides an option to clear these before deletion.
The unique identifier of the payment group to be deleted.
a group can only be deleted if empty, if it has non executed payments setting the to true will remove all pending payments and then delete.
Successful response
DELETE /payments/groups/{id}?clear=true HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"group": {
"id": "text",
"result": true
},
"payments": [
{
"type": "text",
"id": "text"
}
]
}The Get Payment Group Details API is designed to provide detailed information about a specific payment group. This API allows developers to retrieve comprehensive details about a specific payment group by specifying the group ID. The information returned includes the group’s metadata, associated wallet information, payment details, and other relevant attributes that help in managing and auditing payment groups.
The unique identifier of the payment group whose details you want to retrieve.
Successful response
The visual name of the payment group.
The entity type, which is “group” for payment groups.
An extended description of the payment group.
The unique identifier of the payment group.
Indicates if the group is locked. When locked, no new payments can be added.
A set of key/value pairs assigned to the payment group for categorization.
GET /payments/groups/{id} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"info": {
"funding": {
"next": "2026-01-01",
"missing_funds": 1
},
"payments": {
"total": 1,
"pending": 1,
"pending_approval": 1,
"issues": 1,
"completed": 1,
"failed": 1,
"routing": 1,
"next": "2026-01-01",
"amount": {
"amount": 1,
"currency": "text"
}
}
},
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {},
"wallet": {
"name": "text",
"type": "text",
"id": "text",
"currency": "text",
"balance": 1,
"owner": "text"
}
}The Update A Payment Group API is used to change the details of an existing payment group. This API allows developers to modify an existing payment group by updating its name, description, and user tags. This is essential for maintaining accurate and up-to-date information about payment groups within the system.
The unique identifier of the payment group to be updated.
An updated name for the payment group.
An updated description for the payment group.
The unique identifier of the payment group to be updated.
Successful response
The updated visual name of the payment group.
The entity type, which is “group”.
The extended description of the payment group.
The unique identifier of the payment group.
Indicates whether the group is locked. A locked group cannot accept new payments.
The ID of the wallet associated with this group.
PUT /payments/groups/{id} HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"name": "text",
"description": "text",
"id": "text",
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Successful response
{
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"wallet": "text"
}The Lock Payment Group API is used to secure a payment group by locking it, which prevents any further changes or additions of payments to the group. This API allows developers to lock a specific payment group, preventing any further payments from being added to the group. This is essential for finalizing a payment group, ensuring that no additional modifications can be made.
The unique identifier of the payment group to be locked.
Successful response
The visual name of the locked payment group.
The entity type, which is “group”.
Extended description of the group.
The unique identifier of the payment group to be locked.
Confirms whether the group has been successfully locked. The value will be true if the group is now locked.
When locked, no new actions can be made
A set of key/value pairs of tags set for the group.
The ID of the wallet this group is associated with.
PATCH /payments/groups/{id}/lock HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {},
"wallet": "text"
}The Unlock Payment Group API is used to remove the locked status of a payment group. This API is designed to unlock a previously locked payment group, allowing additional payments to be added to the group. Unlocking a payment group is useful in situations where changes or additions are necessary after the group has been locked.
The unique identifier of the payment group to be unlocked.
Successful response
The visual name of the unlocked payment group.
Extended description of the group.
The unique identifier of the unlocked payment group.
Indicates the locked status of the group. The value will be false if the group is now unlocked.
When locked, no new actions can be made.
When locked, no new actions can be made.
A set of key/value pairs of tags set for the group.
The ID of the wallet this group is associated with.
DELETE /payments/groups/{id}/lock HTTP/1.1
Host: api.cust1.papaya-sandbox.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"name": "text",
"type": "text",
"description": "text",
"id": "text",
"locked": true,
"user_tags": {},
"wallet": "text"
}Last updated