Create Purchase URL
Creates a secure checkout URL for purchasing a product.
Request body
Example request
{
"customer_type": "user",
"customer_id": "user_1234567890abcdef",
"product_id": "prod_premium_monthly",
"return_url": "https://myapp.com/purchase-success"
}Response
Successful response
Changes
Changed in 2 of the 17 revisions of this API.39
- ○
the request property
product_inline/client_metadatabecame nullablerequest-property-became-nullable
- ○
the request property
product_inline/client_read_only_metadatabecame nullablerequest-property-became-nullable
- ○
the request property
product_inline/server_metadatabecame nullablerequest-property-became-nullable
- ○
- ▲
request property
customer_typewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
request property
product_inline/customer_typewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
the
product_inline/free_trial/items/request property type/format changed fromnumber/tointeger/request-property-type-changed
- ○
added the new
customenum value to the request propertycustomer_typerequest-property-enum-value-added
- ○
added the new
customenum value to the request propertyproduct_inline/customer_typerequest-property-enum-value-added
- ○
added the new
teamenum value to the request propertycustomer_typerequest-property-enum-value-added
- ○
added the new
teamenum value to the request propertyproduct_inline/customer_typerequest-property-enum-value-added
- ○
added the new
userenum value to the request propertycustomer_typerequest-property-enum-value-added
- ○
added the new
userenum value to the request propertyproduct_inline/customer_typerequest-property-enum-value-added
- ▲