Create a quote
Draft a quote for a customer. Prices are in major units here (49.5 is $49.50); the quote you get back is in minor units. With send: true it is marked sent in the same call, so url opens right away. Refusals include customer_key_not_set, quote_product_not_found, invalid_discount, invalid_expiry, return_url_invalid and return_url_not_allowed. A customer that matches nothing is customer_not_found; a workspace without payments set up is payments_not_set_up. Requires scope: quotes:write.
Authorizations
A Custral API key, created in Settings → Developers → Applications, sent as Authorization: Bearer sk_…. The X-Api-Key header is also accepted and takes precedence. Use a secret key (sk_…) from your server; a publishable key (pk_…) may hold only objects:read and usage:write. Never expose a secret key in a browser.