plan_id) or a credit pack (credit_pack_id). A customer who isn't on a prepaid plan yet also needs plan_id with a credit pack. success_url and cancel_url must use https; for local development, http://localhost works too.curl --location 'https://api.usagerail.com/v1/consumers//checkout' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"plan_id": "plan_8ZtQ2wLm",
"interval": "month",
"success_url": "https://example.com/billing/done",
"cancel_url": "https://example.com/billing"
}'{
"url": "string"
}