curl https://api.playto.so/v1/transactions/g7h8i9j0-k1l2-3456-mnop-567890123456/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "g7h8i9j0-k1l2-3456-mnop-567890123456",
"status": "succeeded",
"reference_id": null,
"invoice_id": null,
"product_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": 7500,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": "Design Consultation",
"invoice_number": null,
"plan_title": null,
"payment_method": "card",
"card_brand": "visa",
"card_last_four": "4242",
"created_at": "2024-05-02T15:30:00Z",
"updated_at": "2024-05-02T15:30:45Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Payment not found."
}
}
Transactions
Retrieve Payment
Fetch details for a single payment by its ID.
GET
/
transactions
/
{id}
/
curl https://api.playto.so/v1/transactions/g7h8i9j0-k1l2-3456-mnop-567890123456/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "g7h8i9j0-k1l2-3456-mnop-567890123456",
"status": "succeeded",
"reference_id": null,
"invoice_id": null,
"product_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": 7500,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": "Design Consultation",
"invoice_number": null,
"plan_title": null,
"payment_method": "card",
"card_brand": "visa",
"card_last_four": "4242",
"created_at": "2024-05-02T15:30:00Z",
"updated_at": "2024-05-02T15:30:45Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Payment not found."
}
}
Authentication
RequiresX-API-KEY header.
Path Parameters
Response
The unique identifier for the payment. It is the
payment_id in the invoice.paid and payment.succeeded webhooks.The
reference_id of the invoice this payment paid (the same reference_id as in the invoice.paid webhook). null if the invoice has none, and always null for a product (payment-link) sale.The
id of the invoice this payment paid (the same invoice_id as in the invoice.paid webhook). null if the payment was not for an invoice.The
id of the product this payment bought (the same product_id as in the payment.succeeded webhook). null if the payment was not for a product.curl https://api.playto.so/v1/transactions/g7h8i9j0-k1l2-3456-mnop-567890123456/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "g7h8i9j0-k1l2-3456-mnop-567890123456",
"status": "succeeded",
"reference_id": null,
"invoice_id": null,
"product_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"amount": 7500,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": "Design Consultation",
"invoice_number": null,
"plan_title": null,
"payment_method": "card",
"card_brand": "visa",
"card_last_four": "4242",
"created_at": "2024-05-02T15:30:00Z",
"updated_at": "2024-05-02T15:30:45Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Payment not found."
}
}
