Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Update tutorial.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-traciporter authored Oct 2, 2023
1 parent a0aa2b5 commit 0b54580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-docs/headless/tutorial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ X-Auth-Token: {{ACCESS_TOKEN}}

## Creating a checkout

To change a cart to a checkout, you must have a `checkoutID` and a billing address. The `checkoutID` is the same as the `cart_id` you generated in [step 1](#creating-a-cart) of creating a cart. To add a billing address, send a POST request to the [Add Checkout Billing Address](https://developer.bigcommerce.com/docs/rest-management/checkouts/checkout-billing-address#add-checkout-billing-address) endpoint.
In this section, we will add a billing address to your checkout. You must have a `checkoutID`. The `checkoutID` is the same as the `cart_id` you generated in [step 1](#creating-a-cart) of creating a cart. To add a billing address, send a POST request to the [Add Checkout Billing Address](https://developer.bigcommerce.com/docs/rest-management/checkouts/checkout-billing-address#add-checkout-billing-address) endpoint.

<Tabs items={['Request', 'Response']}>
<Tab>
Expand Down Expand Up @@ -254,7 +254,7 @@ X-Auth-Token: {{ACCESS_TOKEN}}
</Tab>
</Tabs>

Now that you have transformed your headless cart into a checkout, you must add a consignment with a shipping address, line items, and a shipping option. You can do so by following this two-step process:
Now that you have transformed your headless cart into a proper checkout with a billing address, you can add a consignment with a shipping address, line items, and a shipping option. You can do so by following this two-step process:

### Step 1: Add a new consignment to the checkout

Expand Down

0 comments on commit 0b54580

Please sign in to comment.