cURL
curl --request POST \ --url https://api.atlas.co/functions/v1/prices \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "product": "<string>", "currency": "<string>", "unit_amount": 123, "type": "one_time", "billing_scheme": "per_unit", "recurring": { "interval": "day", "interval_count": 1, "usage_type": "licensed", "aggregate_usage": "sum" }, "tiers": [ { "up_to": 123, "unit_amount": 123, "flat_amount": 123 } ], "tiers_mode": "graduated", "nickname": "<string>", "is_active": true, "metadata": {} } '
{ "id": "<string>", "object": "price", "product": "<string>", "active": true, "currency": "<string>", "unit_amount": 123, "type": "one_time", "billing_scheme": "per_unit", "recurring": { "interval": "<string>", "interval_count": 123, "usage_type": "<string>", "aggregate_usage": "<string>" }, "tiers": [ {} ], "tiers_mode": "<string>", "nickname": "<string>", "metadata": {}, "created": 123 }
API key (sk_test_* or sk_live_*)
one_time
recurring
per_unit
tiered
Show child attributes
graduated
volume
Price created
price