curl https://api.playto.so/v1/invoices/ \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?paid=false" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"invoice_number": "INV-20240501-C3D4E5",
"reference_id": "booking_88213",
"title": "Website Redesign - Phase 1",
"description": "Wireframes and initial mockups.",
"amount": 120000,
"currency": "USD",
"customer_name": "Jane Smith",
"customer_email": "jane@acme.com",
"customer_phone": "+1 555 000 1234",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=c3d4e5f6-a7b8-9012-cdef-123456789012",
"redirect_url": "https://yoursite.com/thank-you",
"is_paid": false,
"is_expired": false,
"paid_at": null,
"expires_at": "2027-12-31T23:59:59Z",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"invoice_number": "INV-20240420-D4E5F6",
"reference_id": null,
"title": "Logo Design",
"description": "",
"amount": 35000,
"currency": "USD",
"customer_name": "Tom Lee",
"customer_email": "tom@startup.io",
"customer_phone": "",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=d4e5f6a7-b8c9-0123-defa-234567890123",
"redirect_url": null,
"is_paid": true,
"is_expired": false,
"paid_at": "2024-04-22T14:33:00Z",
"expires_at": null,
"payment_method_configuration": null,
"created_at": "2024-04-20T09:00:00Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 2,
"has_more": false
}
}
Invoices
List Invoices
Retrieve all one-time payment requests (invoices) for your merchant account.
GET
/
invoices
/
curl https://api.playto.so/v1/invoices/ \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?paid=false" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"invoice_number": "INV-20240501-C3D4E5",
"reference_id": "booking_88213",
"title": "Website Redesign - Phase 1",
"description": "Wireframes and initial mockups.",
"amount": 120000,
"currency": "USD",
"customer_name": "Jane Smith",
"customer_email": "jane@acme.com",
"customer_phone": "+1 555 000 1234",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=c3d4e5f6-a7b8-9012-cdef-123456789012",
"redirect_url": "https://yoursite.com/thank-you",
"is_paid": false,
"is_expired": false,
"paid_at": null,
"expires_at": "2027-12-31T23:59:59Z",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"invoice_number": "INV-20240420-D4E5F6",
"reference_id": null,
"title": "Logo Design",
"description": "",
"amount": 35000,
"currency": "USD",
"customer_name": "Tom Lee",
"customer_email": "tom@startup.io",
"customer_phone": "",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=d4e5f6a7-b8c9-0123-defa-234567890123",
"redirect_url": null,
"is_paid": true,
"is_expired": false,
"paid_at": "2024-04-22T14:33:00Z",
"expires_at": null,
"payment_method_configuration": null,
"created_at": "2024-04-20T09:00:00Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 2,
"has_more": false
}
}
Authentication
RequiresX-API-KEY header.
Query Parameters
Filter by payment status.
true returns only paid invoices, false returns only unpaid ones. Omit to return all.Filter by the
reference_id you set when you created the invoice. 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. Each reference_id is used on only one invoice, so at most one invoice matches. Use it to check whether an invoice already exists for a booking before you create another, or to find an invoice after a missed webhook.Response
Returns a paginated envelope containing a list of invoices.Pagination (List View)
Invoice Object
Your own id for this invoice, as you sent it when you created the invoice.
null if none was set.Whether the invoice has passed its expiry date. It turns
true once the calendar day of expires_at has ended (India Standard Time).The saved payment method setting, for example
{"enabled": ["card"]}. null means the usual methods. See Payment Methods.curl https://api.playto.so/v1/invoices/ \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?paid=false" \
-H "X-API-KEY: sk_live_your_api_key_here"
curl "https://api.playto.so/v1/invoices/?reference_id=booking_88213" \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"data": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"invoice_number": "INV-20240501-C3D4E5",
"reference_id": "booking_88213",
"title": "Website Redesign - Phase 1",
"description": "Wireframes and initial mockups.",
"amount": 120000,
"currency": "USD",
"customer_name": "Jane Smith",
"customer_email": "jane@acme.com",
"customer_phone": "+1 555 000 1234",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=c3d4e5f6-a7b8-9012-cdef-123456789012",
"redirect_url": "https://yoursite.com/thank-you",
"is_paid": false,
"is_expired": false,
"paid_at": null,
"expires_at": "2027-12-31T23:59:59Z",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"invoice_number": "INV-20240420-D4E5F6",
"reference_id": null,
"title": "Logo Design",
"description": "",
"amount": 35000,
"currency": "USD",
"customer_name": "Tom Lee",
"customer_email": "tom@startup.io",
"customer_phone": "",
"checkout_url": "https://app.playto.so/pay/checkout?paymentLinkId=d4e5f6a7-b8c9-0123-defa-234567890123",
"redirect_url": null,
"is_paid": true,
"is_expired": false,
"paid_at": "2024-04-22T14:33:00Z",
"expires_at": null,
"payment_method_configuration": null,
"created_at": "2024-04-20T09:00:00Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 2,
"has_more": false
}
}
