Get Collection
Collections
Get Collection
Get details of a specific payment collection — amount, status, checkout URL, and metadata. GET /collections/.
GET
Get Collection
Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieve details of a specific collection by its ID. Use this to verify payment status.Path Parameters
| Parameter | Type | Description |
|---|---|---|
collectionId | string | The collection ID (batch ID) |
Response
| Field | Type | Description |
|---|---|---|
collectionId | string | Unique collection identifier |
reference | string | Human-readable reference |
orderId | string | Your order ID (if provided) |
amount | number | Payment amount |
fee | number | Processing fee |
netAmount | number | Amount received (amount - fee) |
currency | string | Currency code |
description | string | Payment description |
status | string | Payment status |
statusReason | string | Reason for status (if failed/refunded) |
payer | object | Payer information |
metadata | object | Your custom metadata |
completedAt | string | Completion timestamp |
expiresAt | string | Session expiry time |
createdAt | string | Creation timestamp |
Payer Object
| Field | Type | Description |
|---|---|---|
email | string | Payer’s email |
name | string | Payer’s name |
accountName | string | Fyatu account name |
clientId | string | Payer’s Fyatu client ID |
Status Values
| Status | Description |
|---|---|
PENDING | Awaiting payment |
COMPLETED | Payment successful |
FAILED | Payment failed or expired |
REFUNDED | Fully refunded |
PARTIALLY_REFUNDED | Partially refunded |
Example Usage
Example Response
Verifying Payments
Recommended Verification Flow
- Webhook: Receive payment notification at your
webhookUrl - API Verification: Call this endpoint to confirm the payment
- Check Status: Ensure
statusisCOMPLETED - Check Amount: Verify
amountmatches expected value - Fulfill Order: Only then process the order
Error Responses
| Error Code | HTTP | Description |
|---|---|---|
RESOURCE_NOT_FOUND | 404 | Collection not found or not owned by you |
AUTH_TOKEN_INVALID | 401 | Invalid or expired token |

