Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://api.atlas.co/functions/v1/products \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "name": "Pro Plan", "description": "Full access to all features", "metadata": { "tier": "pro" } }'
name
description
metadata
curl https://api.atlas.co/functions/v1/products \ -H "Authorization: Bearer sk_test_xxx"
curl -X POST https://api.atlas.co/functions/v1/prices \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "product": "prod_xxx", "currency": "usd", "unit_amount": 2999, "type": "recurring", "recurring": { "interval": "month" } }'
product
currency
unit_amount
type
recurring.interval
recurring.interval_count
recurring.usage_type
curl -X POST https://api.atlas.co/functions/v1/subscriptions \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "customer": "cus_xxx", "items": [ { "price": "price_xxx", "quantity": 1 } ], "trial_period_days": 14 }'
customer
items
trial_period_days
cancel_at_period_end
curl -X POST https://api.atlas.co/functions/v1/subscriptions/sub_xxx/pause \ -H "Authorization: Bearer sk_test_xxx"
curl -X POST https://api.atlas.co/functions/v1/subscriptions/sub_xxx/resume \ -H "Authorization: Bearer sk_test_xxx"
trialing
active
past_due
paused
canceled
unpaid
curl -X POST https://api.atlas.co/functions/v1/usage-records \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "subscription_item": "si_xxx", "quantity": 150, "action": "increment" }'
subscription_item
quantity
action
timestamp
curl -X POST https://api.atlas.co/functions/v1/coupons \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "id": "SAVE20", "percent_off": 20, "duration": "repeating", "duration_in_months": 3 }'
duration
percent_off
amount_off
duration_in_months
max_redemptions
redeem_by