Create Checkout Session
POST/checkout-sessions
Creates a checkout session and returns it with its url. Send the buyer to the url to pay.
No payment and no subscription exist until the buyer opens the url.
Lines:
Send from 1 to 20 lines. Every price must be active and of your account, and all prices must have the same currency. At most one price is RECURRING, and its quantity is 1. A price, product, tax rate or customer that is not found is rejected with 404.
Business purchases:
With businessPurchase set to OPTIONAL or REQUIRED, the buyer can give a company name, a tax ID and a full address. A Spanish tax ID is checked.
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 500
- 503
A checkout session object
The request is incorrect or could not be processed
Unauthorized error. Please check your auth credentials
The specified resource was not found
The request was well-formed but could not be processed due to semantic errors
Unexpected server error
The service is temporarily unavailable