curl https://api.playto.so/v1/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"is_active": true,
"checkout_url": "https://app.playto.so/pay/checkout?productId=a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Product not found."
}
}
Products
Retrieve Product
Fetch details for a single product by its ID.
GET
/
products
/
{id}
/
curl https://api.playto.so/v1/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"is_active": true,
"checkout_url": "https://app.playto.so/pay/checkout?productId=a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Product not found."
}
}
Authentication
RequiresX-API-KEY header.
Path Parameters
Response
The saved payment method setting, for example
{"enabled": ["card"]}. null means the usual methods. See Payment Methods.curl https://api.playto.so/v1/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"is_active": true,
"checkout_url": "https://app.playto.so/pay/checkout?productId=a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": null,
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Product not found."
}
}
