Create a checkout session
Changed onRequest
- The document declares no server URL.
- AuthHTTP bearer
Request body
Example request
{
"add_ons": [
{
"add_on_id": "add_7n42DGM5Tflk9n8mt7Fhc7",
"customization": {
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
}
}
}
],
"components": {
"extra_components": [
{
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
},
"product_ref": {
"id": "prd_7n42DGM5Tflk9n8mt7Fhc7"
}
}
],
"overridden_components": [
{
"component_id": "price_7n42DGM5Tflk9n8mt7Fhc7",
"price_entry": {
"id": "pri_7n42DGM5Tflk9n8mt7Fhc7"
}
}
],
"parameterized_components": [
{
"component_id": "price_7n42DGM5Tflk9n8mt7Fhc7"
}
],
"remove_components": [
"price_7n42DGM5Tflk9n8mt7Fhc7"
]
},
"coupon_ids": [
"cou_7n42DGM5Tflk9n8mt7Fhc7"
],
"payment_methods_config": {
"account_id": "ba_7n42DGM5Tflk9n8mt7Fhc7"
},
"plan_version_id": "plv_7n42DGM5Tflk9n8mt7Fhc7"
}Response
Checkout session created
Example response
{
"session": {
"customer_id": "cus_7n42DGM5Tflk9n8mt7Fhc7",
"id": "che_7n42DGM5Tflk9n8mt7Fhc7",
"payment_methods_config": {
"account_id": "ba_7n42DGM5Tflk9n8mt7Fhc7"
},
"plan_version_id": "plv_7n42DGM5Tflk9n8mt7Fhc7",
"subscription_id": "sub_7n42DGM5Tflk9n8mt7Fhc7"
}
}Changes
- info
the request property
////////////////////////////became nullable - info
the request property
////////////////////////////became nullable - info
the request property
////////////////////////////became nullable - info
the request property
////////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////became nullable - info
the request property
////////////////////////////became optional - info
the request property
////////////////////////////became optional - info
the request property
////////////////////////////became optional - info
the request property
////////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional - info
the request property
////////////////////////became optional
- info
- breaking
the
///////request property type changed fromobjectto no type - warning
removed the request property
//////// - warning
removed the request property
//////// - info
added discriminator to
///////request property - info
added to the
///////request propertyoneOflist
- breaking