curl -X POST https://api.playto.so/v1/products/ \
-H "X-API-KEY: sk_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": { "enabled": ["card"] }
}'
{
"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": {"enabled": ["card"]},
"created_at": "2024-05-01T10:00:00Z"
}
Products
Create Product
Create a new reusable payment link that can be used by multiple customers.
POST
/
products
/
curl -X POST https://api.playto.so/v1/products/ \
-H "X-API-KEY: sk_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": { "enabled": ["card"] }
}'
{
"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": {"enabled": ["card"]},
"created_at": "2024-05-01T10:00:00Z"
}
Authentication
RequiresX-API-KEY header.
You can also pass an optional Idempotency-Key header to safely retry requests without creating duplicate records. See the Idempotency guide for details.
Body Parameters
The price, as a whole number in cents (smallest currency unit). For example,
2500 is $25.00. Do not send decimals.Limit which payment methods the checkout offers. Send either
enabled (only these methods) or disabled (the usual methods minus these), one at a time. Omit it, or send null, to offer the usual methods. See Payment Methods.Response
Returns the created product, including acheckout_url ready to share with customers.
The saved payment method setting, for example
{"enabled": ["card"]}. null means the usual methods. See Payment Methods.curl -X POST https://api.playto.so/v1/products/ \
-H "X-API-KEY: sk_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"title": "Design Consultation",
"description": "60-minute 1-on-1 design review session.",
"amount": 7500,
"currency": "USD",
"redirect_url": "https://yoursite.com/thank-you",
"payment_method_configuration": { "enabled": ["card"] }
}'
{
"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": {"enabled": ["card"]},
"created_at": "2024-05-01T10:00:00Z"
}
