Attach Product
Returns a Stripe Checkout URL for the customer to complete their purchase, or handles the purchase if the customer’s card is already on file.
If the customer_id
you send doesn’t already exist, Autumn will automatically
create a new customer. You can optionally set the properties of this new customer
through the customer_data
field.
Authorizations
You can use your Secret or Publishable key for this endpoint. Using your Publishable Key will always return a checkout_url
. Using your Secret Key allows you to handle payments automatically (eg, for plan upgrades).
Body
Your unique identifier for the customer
Product ID, set when creating the product in the Autumn dashboard
List of product IDs to attach to the customer in the same subscription or transaction
URL to redirect to after the purchase is successful
Always return a Stripe Checkout URL, even if the customer's card is already on file.
An array of billing options for the product. Required for some pricing types.
Properties to create a new customer. If a customer with the provided customer_id
already exists, this object is ignored. Alternatively, use the /customers endpoint.