curl "https://api.playto.so/v1/transactions/?status=succeeded" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?customer_email=jane@acme.com" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?product_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"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"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
{
"data": [
{
"id": "h8i9j0k1-l2m3-4567-nopq-678901234567",
"status": "succeeded",
"reference_id": "booking_88213",
"invoice_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"product_id": null,
"amount": 120000,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": null,
"invoice_number": "INV-20240501-C3D4E5",
"plan_title": null,
"payment_method": "card",
"card_brand": "mastercard",
"card_last_four": "5555",
"created_at": "2024-05-03T11:00:00Z",
"updated_at": "2024-05-03T11:00:30Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
Transactions
List Payments
Retrieve all completed payment transactions for your merchant account.
GET
/
transactions
/
curl "https://api.playto.so/v1/transactions/?status=succeeded" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?customer_email=jane@acme.com" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?product_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"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"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
{
"data": [
{
"id": "h8i9j0k1-l2m3-4567-nopq-678901234567",
"status": "succeeded",
"reference_id": "booking_88213",
"invoice_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"product_id": null,
"amount": 120000,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": null,
"invoice_number": "INV-20240501-C3D4E5",
"plan_title": null,
"payment_method": "card",
"card_brand": "mastercard",
"card_last_four": "5555",
"created_at": "2024-05-03T11:00:00Z",
"updated_at": "2024-05-03T11:00:30Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
Authentication
RequiresX-API-KEY header.
Query Parameters
Filter payments by the
reference_id of the invoice they paid. The match is exact and case-sensitive, after surrounding whitespace is trimmed. A blank value is ignored, so no filtering is applied. It combines with the other filters. Payments for products never match, because they have no reference_id. Use it to find the payments for a booking after a missed webhook.Response
Returns a paginated envelope containing a list of payments, ordered newest first.Pagination (List View)
Payment Object
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/?status=succeeded" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?customer_email=jane@acme.com" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?product_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/transactions/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"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"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
{
"data": [
{
"id": "h8i9j0k1-l2m3-4567-nopq-678901234567",
"status": "succeeded",
"reference_id": "booking_88213",
"invoice_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"product_id": null,
"amount": 120000,
"currency": "USD",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"product_title": null,
"invoice_number": "INV-20240501-C3D4E5",
"plan_title": null,
"payment_method": "card",
"card_brand": "mastercard",
"card_last_four": "5555",
"created_at": "2024-05-03T11:00:00Z",
"updated_at": "2024-05-03T11:00:30Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
}
}
