This API allows you to create and manage payment claim links for customers to submit cryptocurrency payment information.
The payment claim link object
Unique identifier with pcl_ prefix (e.g., pcl_abc123def456).
Always "payment_claim_link".
Link status: active, used, or expired.
When the link expires (ISO 8601).
Maximum number of times the link can be used.
Number of times the link has been used.
When the link was last used (ISO 8601). null if never used.
Additional notes or metadata.
The full URL to share with the customer.
The customer this link belongs to.
ID of the resulting payment claim. null if not used.
Whether the link can still be used.
Whether the link has expired.
When the link was created (ISO 8601).
When the link was last updated (ISO 8601).
List payment claim links
GET /v1/payment_claim_links
Retrieves a paginated list of all payment claim links in your account. Links are ordered by creation date (newest first).
Page number for pagination. Results are returned 25 items per page.
curl https://api.gettrxn.com/v1/payment_claim_links \
-H "Authorization: Bearer $TRXN_TOKEN"
{
"payment_claim_links": [
{
"id": "pcl_abc123def456",
"object": "payment_claim_link",
"status": "active",
"expires_at": "2025-01-26T12:00:00Z",
"max_uses": 1,
"use_count": 0,
"used_at": null,
"metadata": "Payment for Invoice #123",
"link": "https://gettrxn.com/payment-claim/RTL1LDMHAdL6JR64ai7frBpphuuNig9q",
"customer_id": "cust_xyz789",
"crypto_payment_claim_id": null,
"usable": true,
"expired": false,
"created_at": "2025-01-25T12:00:00Z",
"updated_at": "2025-01-25T12:00:00Z"
}
],
"pagination": {
"page": 1,
"pages": 3,
"count": 67
}
}
Get payment claim link
GET /v1/payment_claim_links/:id
Retrieves a specific payment claim link by ID.
The payment claim link’s ID (e.g., pcl_abc123def456).
curl https://api.gettrxn.com/v1/payment_claim_links/pcl_abc123def456 \
-H "Authorization: Bearer $TRXN_TOKEN"
{
"id": "pcl_abc123def456",
"object": "payment_claim_link",
"status": "active",
"expires_at": "2025-01-26T12:00:00Z",
"max_uses": 1,
"use_count": 0,
"used_at": null,
"metadata": "Payment for Invoice #123",
"link": "https://gettrxn.com/payment-claim/RTL1LDMHAdL6JR64ai7frBpphuuNig9q",
"customer_id": "cust_xyz789",
"crypto_payment_claim_id": null,
"usable": true,
"expired": false,
"created_at": "2025-01-25T12:00:00Z",
"updated_at": "2025-01-25T12:00:00Z"
}
Create payment claim link
POST /v1/payment_claim_links
Creates a new payment claim link for a customer.
The customer’s ID (e.g., cust_abc123def456). Must belong to your account.
When the link expires (ISO 8601 format). Defaults to 24 hours from now.
Maximum number of times the link can be used. Must be greater than 0.
Additional notes or metadata for the link.
curl -X POST https://api.gettrxn.com/v1/payment_claim_links \
-H "Authorization: Bearer $TRXN_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cust_abc123def456",
"expires_at": "2025-01-26T10:00:00Z",
"max_uses": 1,
"metadata": "Payment for Invoice #123"
}'
{
"id": "pcl_xyz789abc123",
"object": "payment_claim_link",
"status": "active",
"expires_at": "2025-01-26T10:00:00Z",
"max_uses": 1,
"use_count": 0,
"used_at": null,
"metadata": "Payment for Invoice #123",
"link": "https://gettrxn.com/payment-claim/RTL1LDMHAdL6JR64ai7frBpphuuNig9q",
"customer_id": "cust_abc123def456",
"crypto_payment_claim_id": null,
"usable": true,
"expired": false,
"created_at": "2025-01-25T14:30:00Z",
"updated_at": "2025-01-25T14:30:00Z"
}
Error responses
{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "Customer not found",
"param": "customer_id"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "Max uses must be greater than 0",
"param": "max_uses"
}
}
Delete payment claim link
DELETE /v1/payment_claim_links/:id
Deletes a payment claim link.
The payment claim link’s ID (e.g., pcl_xyz789abc123).
curl -X DELETE https://api.gettrxn.com/v1/payment_claim_links/pcl_xyz789abc123 \
-H "Authorization: Bearer $TRXN_TOKEN"
Returns 204 No Content on successful deletion.
Link statuses
| Status | Description |
|---|
active | Link is active and can be used. |
used | Link has reached its max_uses limit. |
expired | Link has expired (past expires_at). |
Checking link usability
The usable field indicates whether a link can still be used. A link is usable if:
- Status is
active.
- Not expired (
expires_at is in the future).
- Use count is less than
max_uses.
Usage flow
- Create a payment claim link for a customer using their ID.
- Share the link with the customer (via email, SMS, etc.).
- Customer visits the link and submits their payment information.
- Review the submission in your dashboard under Crypto Payment Claims.
- Approve or reject the payment claim.
- Optionally delete the link if no longer needed.
Sandbox support
The API respects sandbox scoping. If your API token is associated with a sandbox, you can only access links created in that sandbox. Links created in sandbox mode will be isolated from production data.