# Apply Customer Info

*Note: For more details on this endpoint please refer to the API Reference*

Once you have a cart with products in it you need to apply the customer information. For a brand new customer this would likely include Apply Guest Customer to Cart , Set Shipping Address , and Set Billing Address.

For the sake of ease in this example we will simplify address handling and use the same address for billing and shipping and pass this along with the customer the body of the request. For more details on what fields this API can take, refer to the documentation linked above. In this example, we have used the cart we created in the previous step. *Your Cart Id will be unique and need to be updated in the request below.*

Using `same_address: true` we can set the shipping and billing address simultaneously.

{% hint style="info" %}
See our [Quick Checkout Guide](/prism/checkout-guides/guides/utilizing-quick-checkout.md) for tips on how you can combine this step with the create cart call to reduce e-comm requests and use less rates
{% endhint %}

{% openapi src="/files/xeg85F9AlTzgSqkjy7EW" path="/checkout/cart/{cart\_id}/customer" method="post" expanded="true" %}
[order-service.yaml](https://2435497985-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZrOgj5n6PuU2r0Ya8Tzl%2Fuploads%2Fgit-blob-0cd1c131c27d43ec049d10413be325b864ea6e13%2Forder-service.yaml?alt=media)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.violet.io/prism/overview/place-an-order/apply-customer-info.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
