Endpoints for authentication
Ripple Collections (1.0.0)
The Ripple Collection APIs are used to manage collections, manage payment channels, manage partners and settlements.
The Ripple Collection APIs offers the following environments:
Environment | Base URL | Description |
|---|---|---|
| Sandbox | https://docs.ripple.com/products/collections/_mock/api/collections | Sandbox environment with mock data which does not require auth. |
| UAT | https://api.test.ripple.com | UAT environment with simulated transactions. |
| Production | https://api.ripple.com | Production environment |
For guides on API authentication, idempotency, and webhook verification, see the sidebar.
Filter collections by specific collection identifier
Filter collections by payer identifier
Filter collections by account identifier
Filter collections by beneficiary identifier
ISO 8601 timestamp after collection was created
ISO 8601 timestamp before collection was created
- Mock serverhttps://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links
- https://api.test.ripple.com/v1/collections/links
- https://api.ripple.com/v1/collections/links
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links?id=e8d43598-107d-4694-9fb2-934e7484c3d4&payer_id=0c5479ff-3772-4123-b2b7-e679e71eb570&account_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890&beneficiary_id=01467076-8bb0-41c1-ad54-5751dd4a9e80&since=2025-06-17T12%3A00%3A00Z&until=2025-06-17T12%3A00%3A00Z&page=1&size=10' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "content": [ { … } ], "page": { "page": 1, "size": 10, "total_elements": 100, "total_pages": 10 } }
Request
Creates a new payment link for a collection using account-based routing. The collection is associated with an account which determines the available payment rails and currency. The amount is denominated in the account's currency.
Unique identifier of the payer partner
Unique identifier of the account to receive funds
Collection amount as a string to preserve precision
How fees are handled in the collection
Human-readable description of the collection purpose
Payment link expiry time in seconds from creation
- Mock serverhttps://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links
- https://api.test.ripple.com/v1/collections/links
- https://api.ripple.com/v1/collections/links
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- example_with_excluded_fee
- example_with_included_fee
curl -i -X POST \
https://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"payer_id": "0c5479ff-3772-4123-b2b7-e679e71eb570",
"account_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": "800.00",
"fee_mode": "EXCLUDED",
"reference_id": "INV-2025-009",
"description": "Payment for Order #2668",
"link_expiry": 172800,
"return_url": "https://example.com/payment/completion"
}'Collection Created Successfully
Unique identifier for the collection
Payer partner details
Unique identifier for the payer partner
Beneficiary partner details
Unique identifier of the beneficiary partner
Full name of the beneficiary partner
Account associated to this collection, which funds will be routed to
Unique identifier for the account
Unique identifier of the beneficiary partner
How fees are handled in the collection
Human-readable description of the collection purpose
ISO 8601 timestamp when the collection expires
URL for the payment interface
The status of the collection
ISO 8601 timestamp when the collection was created
{ "id": "e8d43598-107d-4694-9fb2-934e7484c3d4", "payer": { "id": "0c5479ff-3772-4123-b2b7-e679e71eb570", "name": "Nigerian Imports Ltd.", "email": "nigerian@imports.com" }, "beneficiary": { "id": "291ecf34-a01d-466a-b0fd-662a88b7a1bb", "name": "Hong Kong Exports Ltd.", "email": "hongkong@exports.com" }, "reference_id": "INV-2025-009", "account": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "beneficiary_id": "291ecf34-a01d-466a-b0fd-662a88b7a1bb", "currency": "USDC", "type": "CRYPTO" }, "gross_amount": "808.00", "net_amount": "800.00", "fee_mode": "EXCLUDED", "fee": "8.00", "amount_remaining": "808.00", "description": "Payment for Order #2668", "link_expiry": 172800, "return_url": "https://example.com/payment/completion", "expires_at": "2025-06-30T23:59:59Z", "transactions": [], "payment_link": "https://collections.ripple.com/link/pay/384c5f9b", "status": "CREATED", "reason": null, "created_at": "2025-06-17T12:00:00Z", "updated_at": "2025-06-17T12:30:00Z" }
- Mock serverhttps://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links/{collection_id}
- https://api.test.ripple.com/v1/collections/links/{collection_id}
- https://api.ripple.com/v1/collections/links/{collection_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.ripple.com/_mock/products/collections/api/collections/v1/collections/links/e8d43598-107d-4694-9fb2-934e7484c3d4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Successful response
Unique identifier for the collection
Payer partner details
Unique identifier for the payer partner
Beneficiary partner details
Unique identifier of the beneficiary partner
Full name of the beneficiary partner
Account associated to this collection, which funds will be routed to
Unique identifier for the account
Unique identifier of the beneficiary partner
How fees are handled in the collection
Human-readable description of the collection purpose
ISO 8601 timestamp when the collection expires
URL for the payment interface
The status of the collection
ISO 8601 timestamp when the collection was created
{ "id": "e8d43598-107d-4694-9fb2-934e7484c3d4", "payer": { "id": "0c5479ff-3772-4123-b2b7-e679e71eb570", "name": "Nigerian Imports Ltd.", "email": "nigerian@imports.com" }, "beneficiary": { "id": "01467076-8bb0-41c1-ad54-5751dd4a9e80", "name": "Hong Kong Exports Ltd.", "email": "hongkong@exports.com" }, "account": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "beneficiary_id": "291ecf34-a01d-466a-b0fd-662a88b7a1bb", "currency": "USD", "type": "FIAT" }, "reference_id": "INV-2025-009", "gross_amount": "808.00", "net_amount": "800.00", "fee_mode": "EXCLUDED", "fee": "8.00", "amount_remaining": "758.50", "description": "Payment for Order #2668", "link_expiry": 172800, "return_url": "https://example.com/payment/completion", "expires_at": "2025-06-30T23:59:59Z", "transactions": [ { … } ], "payment_link": "https://collections.ripple.com/link/pay/384c5f9b", "status": "PENDING", "reason": null, "created_at": "2025-06-17T12:00:00Z", "updated_at": "2025-06-17T12:30:00Z" }