{"files":{"SKILL.md":"---\nname: checkouts\ndescription: \"Checkouts API skill. Use when working with Checkouts for checkouts. Covers 19 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Checkouts\nAPI version: 3.0\n\n## Auth\nApiKey X-Auth-Token in header\n\n## Base URL\nhttps://api.bigcommerce.com/stores/{store_hash}/v3\n\n## Setup\n1. Set your API key in the appropriate header\n2. GET /checkouts/settings -- get checkout settings\n3. POST /checkouts/{checkoutId}/discounts -- create first discount\n\n## Endpoints\n19 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Checkouts\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /checkouts/{checkoutId} | Get a Checkout |\n| PUT | /checkouts/{checkoutId} | Update Customer Messages |\n| POST | /checkouts/{checkoutId}/discounts | Add Discount to Checkout |\n| POST | /checkouts/{checkoutId}/billing-address | Add Checkout Billing Address |\n| PUT | /checkouts/{checkoutId}/billing-address/{addressId} | Update Checkout Billing Address |\n| POST | /checkouts/{checkoutId}/consignments | Add Consignment to Checkout |\n| PUT | /checkouts/{checkoutId}/consignments/{consignmentId} | Update Checkout Consignment |\n| DELETE | /checkouts/{checkoutId}/consignments/{consignmentId} | Delete Checkout Consignment |\n| POST | /checkouts/{checkoutId}/coupons | Add Coupon to Checkout |\n| DELETE | /checkouts/{checkoutId}/coupons/{couponCode} | Delete Checkout Coupon |\n| POST | /checkouts/{checkoutId}/fees | Add order level fees to a checkout |\n| PUT | /checkouts/{checkoutId}/fees | Update order level fees in a checkout |\n| DELETE | /checkouts/{checkoutId}/fees | Delete order level fees from a checkout. |\n| POST | /checkouts/{checkoutId}/orders | Create an Order |\n| GET | /checkouts/settings | Get Checkout Settings |\n| PUT | /checkouts/settings | Update Checkout Settings |\n| GET | /checkouts/settings/channels/{channelId} | Get Channel-Specific Checkout Settings |\n| PUT | /checkouts/settings/channels/{channelId} | Update Channel-Specific Checkout Settings |\n| POST | /checkouts/{checkoutId}/token | Create Checkout Token |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Get checkout details?\" -> GET /checkouts/{checkoutId}\n- \"Update a checkout?\" -> PUT /checkouts/{checkoutId}\n- \"Create a discount?\" -> POST /checkouts/{checkoutId}/discounts\n- \"Create a billing-address?\" -> POST /checkouts/{checkoutId}/billing-address\n- \"Update a billing-address?\" -> PUT /checkouts/{checkoutId}/billing-address/{addressId}\n- \"Create a consignment?\" -> POST /checkouts/{checkoutId}/consignments\n- \"Update a consignment?\" -> PUT /checkouts/{checkoutId}/consignments/{consignmentId}\n- \"Delete a consignment?\" -> DELETE /checkouts/{checkoutId}/consignments/{consignmentId}\n- \"Create a coupon?\" -> POST /checkouts/{checkoutId}/coupons\n- \"Delete a coupon?\" -> DELETE /checkouts/{checkoutId}/coupons/{couponCode}\n- \"Create a fee?\" -> POST /checkouts/{checkoutId}/fees\n- \"Create a order?\" -> POST /checkouts/{checkoutId}/orders\n- \"List all settings?\" -> GET /checkouts/settings\n- \"Get channel details?\" -> GET /checkouts/settings/channels/{channelId}\n- \"Update a channel?\" -> PUT /checkouts/settings/channels/{channelId}\n- \"Create a token?\" -> POST /checkouts/{checkoutId}/token\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Checkouts\n@base https://api.bigcommerce.com/stores/{store_hash}/v3\n@version 3.0\n@auth ApiKey X-Auth-Token in header\n@endpoints 19\n@toc checkouts(19)\n\n@endpoint GET /checkouts/{checkoutId}\n@desc Get a Checkout\n@optional {include: [str] # * `cart.line_items.physical_items.options` - physical options * `cart.line_items.digital_items.options` - digital options * `consignments.available_shipping_options` - shipping options * `promotions.banners` - promotion options}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {404: Error code that is displayed when a given checkout ID is not found.}\n\n@endpoint PUT /checkouts/{checkoutId}\n@desc Update Customer Messages\n@required {Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body., customer_message: str}\n@optional {version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint POST /checkouts/{checkoutId}/discounts\n@desc Add Discount to Checkout\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {cart: map{discounts: [map], line_items: [map], version: int}}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n@example_request {\"cart\":{\"discounts\":[{\"discounted_amount\":10}]},\"version\":1}\n\n@endpoint POST /checkouts/{checkoutId}/billing-address\n@desc Add Checkout Billing Address\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body., email: str, country_code: str}\n@optional {first_name: str, last_name: str, company: str, address1: str, address2: str, city: str, state_or_province: str # Represents state or province., state_or_province_code: str, postal_code: str, phone: str, custom_fields: [map{field_id: str, field_value: str}] # You can retrieve custom fields from the [Get Form Fields](/docs/rest-storefront/forms#get-form-fields) endpoint., version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint PUT /checkouts/{checkoutId}/billing-address/{addressId}\n@desc Update Checkout Billing Address\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body., addressId: int, email: str, country_code: str}\n@optional {first_name: str, last_name: str, company: str, address1: str, address2: str, city: str, state_or_province: str # Represents state or province., state_or_province_code: str, postal_code: str, phone: str, custom_fields: [map{field_id: str, field_value: str}] # You can retrieve custom fields from the [Get Form Fields](/docs/rest-storefront/forms#get-form-fields) endpoint., version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint POST /checkouts/{checkoutId}/consignments\n@desc Add Consignment to Checkout\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {include: str # Include the shipping options available to this checkout.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n@example_request [{\"address\":{\"first_name\":\"Jane\",\"last_name\":\"Doe\",\"email\":\"Jane.Doe@email.com\",\"company\":\"BigCommerce\",\"address1\":\"100 Main Street\",\"address2\":\"Suite 200\",\"city\":\"Austin\",\"state_or_province\":\"Texas\",\"state_or_province_code\":\"TX\",\"country_code\":\"US\",\"postal_code\":\"78701\",\"phone\":\"555-555-5555\",\"custom_fields\":[{\"field_id\":\"custom_field_1\",\"field_value\":\"Custom value\"}]},\"line_items\":[{\"item_id\":\"118f8774-387c-485e-a095-6ef76d5f1bbd\",\"quantity\":1}],\"version\":1}]\n\n@endpoint PUT /checkouts/{checkoutId}/consignments/{consignmentId}\n@desc Update Checkout Consignment\n@required {Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {include: str # Include the shipping options available to this checkout., address: map{first_name: str, last_name: str, email!: str, company: str, address1: str, address2: str, city: str, state_or_province: str, state_or_province_code: str, country_code!: str, postal_code: str, phone: str, custom_fields: [map]}, line_items: [map{item_id!: str, quantity!: int(int32)}], shipping_option_id: str, pickup_option: map{pickup_method_id: int}, custom_shipping: map{price: num, description: str}, version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint DELETE /checkouts/{checkoutId}/consignments/{consignmentId}\n@desc Delete Checkout Consignment\n@optional {version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n\n@endpoint POST /checkouts/{checkoutId}/coupons\n@desc Add Coupon to Checkout\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {coupon_code: str # Coupon codes have a 50-character limit., version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint DELETE /checkouts/{checkoutId}/coupons/{couponCode}\n@desc Delete Checkout Coupon\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., couponCode: str # The actual coupon code value, not the coupon ID.}\n@optional {version: int # The cart version that you expect to apply the updates. If the provided version doesn't match the current cart version, you will receive a conflict error. This field is optional; if not provided, optimistic concurrency control will not apply.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n@errors {409: Cart conflict}\n\n@endpoint POST /checkouts/{checkoutId}/fees\n@desc Add order level fees to a checkout\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body., fees: [map{type!: str, name!: str, display_name!: str, cost!: num, source!: str, tax_class_id: int}] # The fees to be added to a checkout.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n\n@endpoint PUT /checkouts/{checkoutId}/fees\n@desc Update order level fees in a checkout\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., fees: [any] # The fees to be updated in a checkout.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n\n@endpoint DELETE /checkouts/{checkoutId}/fees\n@desc Delete order level fees from a checkout.\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., ids: [str] # The IDs of the fees to be deleted from a checkout.}\n@returns(200) {data: map{id: str(uuid), cart: map{id: str(uuid), customer_id: int, email: str, currency: map{code: str}, tax_included: bool, base_amount: num(double), channel_id: num, discount_amount: num(double), cart_amount_inc_tax: num(double), cart_amount_ex_tax: num(double), coupons: [map], discounts: [map], line_items: map{physical_items: [map], digital_items: [map], gift_certificates: [map], custom_items: [map]}, created_time: str, updated_time: str}, billing_address: any, consignments: [map], taxes: [map], coupons: [map], fees: [map], order_id: str?, shipping_cost_total_inc_tax: num(double), shipping_cost_total_ex_tax: num(double), handling_cost_total_inc_tax: num(double), handling_cost_total_ex_tax: num(double), tax_total: num(double), subtotal_inc_tax: num(double), subtotal_ex_tax: num(double), grand_total: num(double), created_time: str, updated_time: str, customer_message: str, promotions: [map], version: int}, meta: map}\n\n@endpoint POST /checkouts/{checkoutId}/orders\n@desc Create an Order\n@required {checkoutId: str # ID of the checkout; the same as the cart ID., Accept: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body., Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@returns(200) {data: map{id: int}, meta: map}\n\n@endpoint GET /checkouts/settings\n@desc Get Checkout Settings\n@returns(200) {data: map{custom_checkout_script_url: str, order_confirmation_use_custom_checkout_script: bool, custom_order_confirmation_script_url: str, custom_checkout_supports_uco_settings: bool, custom_checkout_sri_hash: str, custom_order_confirmation_sri_hash: str}, meta: map}\n\n@endpoint PUT /checkouts/settings\n@desc Update Checkout Settings\n@required {Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {custom_checkout_script_url: str # Custom checkout script URL to replace our default checkout. To reset a store to optimized one-page checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`., order_confirmation_use_custom_checkout_script: bool # When order_confirmation_use_custom_checkout_script=true, the default custom_order_confirmation_script_url defaults to an empty string., custom_order_confirmation_script_url: str # Custom order confirmation script URL to replace the default order confirmation. To reset a store to optimized one-page checkout, pass an empty string for `custom_checkout_script_url` and `custom_order_confirmation_script_url`., custom_checkout_supports_uco_settings: bool # Boolean value that specifies whether this checkout supports Optimized One-Page Checkout settings., custom_checkout_sri_hash: str # The Subresource Integrity (SRI) hash for the custom checkout script URL., custom_order_confirmation_sri_hash: str # The Subresource Integrity (SRI) hash for the custom order confirmation script URL.}\n@returns(200) {data: map{custom_checkout_script_url: str, order_confirmation_use_custom_checkout_script: bool, custom_order_confirmation_script_url: str, custom_checkout_supports_uco_settings: bool, custom_checkout_sri_hash: str, custom_order_confirmation_sri_hash: str}, meta: map}\n\n@endpoint GET /checkouts/settings/channels/{channelId}\n@desc Get Channel-Specific Checkout Settings\n@returns(200) {data: any, meta: map} # Channel checkout settings retrieved successfully\n@errors {422: Invalid channelId or invalid request}\n\n@endpoint PUT /checkouts/settings/channels/{channelId}\n@desc Update Channel-Specific Checkout Settings\n@returns(200) {data: any, meta: map} # Channel checkout settings updated successfully\n@errors {422: Invalid channelId or invalid request}\n\n@endpoint POST /checkouts/{checkoutId}/token\n@desc Create Checkout Token\n@required {Content-Type: str=application/json # The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.}\n@optional {maxUses: num, ttl: num # Time-to-live (TTL) is the number of seconds the token is set to exist before being discarded.}\n@returns(200) {checkoutToken: str, meta: map} # OK\n@errors {401: Unauthorized - the v3 Auth client ID or token in the request are not a valid combination for this store., 422: Invalid JSON request body - missing or invalid data.}\n@example_request {\"maxUses\":1,\"ttl\":2}\n\n@end\n"}}