> For the complete documentation index, see [llms.txt](https://docs.b2b-sellers.com/b2b-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2b-sellers.com/b2b-platform/3/developer-guides/b2bsellers-core-plugin/usecustomer-url-parameter.md).

# UseCustomer URL Parameter

## **What is the "useCustomer" URL parameter?**

The "useCustomer" URL parameter can be used when linking a B2bPlatform URL if you want to tell in a link that a specific customer should be used for the target page.

A company user can buy for several companies. However, when e.g. an offer or an order is triggered, the user indeed orders for a specific customer.  But if the customer is currently logged in for another customer and clicks on a link in the email, the target page "correctly" cannot be opened. However, if the "useCustomer" parameter is handed over, the user will be logged in accordingly for the correct customer before calling up the URL, provided this customer is assigned to him.

#### **Notes**

* This URL parameter can currently only be used in the controller: /b2b\_platform (i.e. all Vue.Js B2BPlatform URLs).
* You can use either the customer number or the customer ID as parameter

#### **Example:**

Currently, this "useCustomer" function will be used in the "Offer function" to send the offer to the end customer. If the customer then clicks on the "Order offer" button, he will be logged directly into the correct customer and can order the offer in the pop-up.

**Recommendation:**

Please use the "useCustomer" parameter when developing individual functions when sending mail or generating URLs that can then be sent to third parties. For security purposes, the customer number should be used and not the customer UUID.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.b2b-sellers.com/b2b-platform/3/developer-guides/b2bsellers-core-plugin/usecustomer-url-parameter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
