# Sellers (SIM)

## Method to add customer sellers

<mark style="color:green;">`POST`</mark> `https://api.transiteo.io/v1/customer/sellers`

This endpoint allows you to add customer sellers, up to 100 per request

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Content-type  | string | application/json |
| Authorization | string | "your id\_token" |

### Json Request Format

```
[
    {
        "mail": "a@a.com",
        "id": "001",
        "name": "Seller 001",
        "manager_name": "Jean Bretthon",
        "phone": "+33601020304",
        "vat_number": "1234",
        "eori_number": "5678",
        "country": "FR",
        "street": "3 Place de l'église",
        "city": "PARIS",
        "postal_code": "12345",
        "annual_revenue": {},
        "syderep": {
            "AAA": "CheckOK",
            "BBB": "CheckOK"
        },
        "ids": {
            "products": [],
            "categories": [],
            "orders": [],
            "invoices": [],
        }
    },
    {
        "mail": "a@a.com",
        "id": "002",
        "name": "Seller 002",
        "manager_name": "Juliette Caranet",
        "phone": "+33601020304",
        "vat_number": "1234",
        "eori_number": "5678",
        "country": "FR",
        "street": "3 Place de l'église",
        "city": "PARIS",
        "postal_code": "12345",
        "annual_revenue": {},
        "syderep": {
            "AAA": "CheckOK",
            "BBB": "CheckOK"
        },
        "ids": {
            "products": [],
            "categories": [],
            "orders": [],
            "invoices": [],
        }
    }
]
```

## Method to update a customer seller

<mark style="color:orange;">`PUT`</mark> `https://api.transiteo.io/v1/customer/sellers/:sellerId`

This endpoint allows you to update customer seller

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Content-type  | string | application/json |
| Authorization | string | "your id\_token" |

{% tabs %}
{% tab title="200 " %}

```
{
    "mail": "a@a.com",
    "id": "001",
    "name": "Seller 001",
    "manager_name": "Jean Bretthon",
    "phone": "+33601020304",
    "vat_number": "12340000",
    "eori_number": "56780000",
    "country": "FR",
    "street": "7 Place de l'église",
    "city": "PARIS",
    "postal_code": "12345",
    "annual_revenue": {},
    "syderep": {
        "AAA": "CheckOK",
        "NEW_SYDEREP": "NEW_OK!",
        "BBB": "CheckOK"
    },
    "ids": {
        "orders": [],
        "categories": [],
        "invoices": [],
        "products": []
    }
}
```

{% endtab %}
{% endtabs %}

## Method to retrieve seller informations

<mark style="color:blue;">`GET`</mark> `https://api.transiteo.io/v1/customer/sellers/:sellerId}`

This endpoint allows you to get customer seller informations.&#x20;

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Content-type  | string | application/json |
| Authorization | string | "your id\_token" |

{% tabs %}
{% tab title="200 " %}

```
{
    "mail": "a@a.com",
    "id": "001",
    "name": "Seller 001",
    "manager_name": "Jean Bretthon",
    "phone": "+33601020304",
    "vat_number": "1234",
    "eori_number": "5678",
    "country": "FR",
    "street": "3 Place de l'église",
    "city": "PARIS",
    "postal_code": "12345",
    "annual_revenue": {
        "2025": {
          "FR": { "amount": 12390.98, "currency": "EUR" },
          "US": { "amount": 78098.57, "currency": "USD" }
        }
    },
    "syderep": {
        "AAA": "CheckOK",
        "BBB": "CheckOK"
    },
    "ids": {
        "products": ["SKU_A"],
        "categories": ["CAT_1", "CAT_2"],
        "orders": ["ORDER_00002"],
        "invoices": ["INV0000001"],
    }
}
```

{% endtab %}
{% endtabs %}

## Method to retrieve all customer sellers

<mark style="color:blue;">`GET`</mark> `https://api.transiteo.io/v1/customer/sellers`

This endpoint allows you to get all customer sellers, paginated, pages of 500 items

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Content-type  | string | application/json |
| Authorization | string | "your id\_token" |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": [
        {
            "mail": "a@a.com",
            "id": "001",
            "name": "Seller 001",
            "manager_name": "Jean Bretthon",
            "phone": "+33601020304",
            "vat_number": "1234",
            "eori_number": "5678",
            "country": "FR",
            "street": "3 Place de l'église",
            "city": "PARIS",
            "postal_code": "12345",
            "annual_revenue": {
                "2025": {
                  "FR": { "amount": 12390.98, "currency": "EUR" },
                  "US": { "amount": 78098.57, "currency": "USD" }
                }
            },
            "syderep": {
                "AAA": "CheckOK",
                "BBB": "CheckOK"
            },
            "ids": {
                "products": ["SKU_A"],
                "categories": ["CAT_1", "CAT_2"],
                "orders": ["ORDER_00002"],
                "invoices": ["INV0000001"],
            }
        },
        {
            "mail": "a@a.com",
            "id": "002",
            "name": "Seller 002",
            "manager_name": "Juliette Caranet",
            "phone": "+33601020304",
            "vat_number": "1234",
            "eori_number": "5678",
            "country": "FR",
            "street": "3 Place de l'église",
            "city": "PARIS",
            "postal_code": "12345",
            "annual_revenue": {
                "2025": {
                  "FR": { "amount": 12390.98, "currency": "EUR" },
                  "US": { "amount": 78098.57, "currency": "USD" }
                }
            },
            "syderep": {
                "AAA": "CheckOK",
                "BBB": "CheckOK"
            },
            "ids": {
                "products": [],
                "categories": [],
                "orders": [],
                "invoices": [],
            }
        },
        ...
    ],
    "nextIndex": "500"
}
```

{% endtab %}
{% endtabs %}

## Method to delete a customer seller

<mark style="color:red;">`DELETE`</mark> `https://api.transiteo.io/v1/customer/sellers/:sellerIdu}`

This endpoint allows you to delete a customer seller

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Content-type  | string | application/json |
| Authorization | string | "your id\_token" |

{% tabs %}
{% tab title="200 " %}

```

{
    "mail": "a@a.com",
    "id": "001",
    "name": "Seller 001",
    "manager_name": "Jean Bretthon",
    "phone": "+33601020304",
    "vat_number": "12340000",
    "eori_number": "56780000",
    "country": "FR",
    "street": "7 Place de l'église",
    "city": "PARIS",
    "postal_code": "12345",
    "annual_revenue": {},
    "syderep": {
        "AAA": "CheckOK",
        "NEW_SYDEREP": "NEW_OK!",
        "BBB": "CheckOK"
    },
    "ids": {
        "orders": [],
        "categories": [],
        "invoices": [],
        "products": []
    }
}
```

{% endtab %}
{% endtabs %}


---

# 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://transiteo.gitbook.io/transiteo/management-system/sellers.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.
