# Resellers

## Update order reseller

> Update order reseller

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/channelmanager/orders/reseller":{"put":{"tags":["Resellers"],"summary":"Update order reseller","description":"Update order reseller","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderResellerRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reseller"}}}},"400":{"description":"Update order reseller error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"UpdateOrderResellerRequest":{"type":"object","properties":{"PartnerCode":{"type":"string"},"ResellerCode":{"type":"string"},"OrderRefNo":{"type":"integer"}}},"Reseller":{"type":"object","properties":{"ResellerCode":{"type":"string"},"FirstName":{"type":"string"},"LastName":{"type":"string"},"Email":{"type":"string"},"Company":{"type":"string"},"Address":{"type":"string"},"State":{"type":"string"},"PostalCode":{"type":"string"},"Phone":{"type":"string"},"Country":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## GET /channelmanager/resellers

> Search resellers by filter

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/channelmanager/resellers":{"get":{"tags":["Resellers"],"summary":"Search resellers by filter","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"partnerCode","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"style":"form","explode":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"Returns reseller collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResellerSearchResponse"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ResellerSearchResponse":{"type":"object","properties":{"Items":{"type":"array","items":{"$ref":"#/components/schemas/Reseller"}},"Pagination":{"$ref":"#/components/schemas/Pagination"}}},"Reseller":{"type":"object","properties":{"ResellerCode":{"type":"string"},"FirstName":{"type":"string"},"LastName":{"type":"string"},"Email":{"type":"string"},"Company":{"type":"string"},"Address":{"type":"string"},"State":{"type":"string"},"PostalCode":{"type":"string"},"Phone":{"type":"string"},"Country":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"}}},"Pagination":{"type":"object","properties":{"Page":{"type":"integer"},"Limit":{"type":"integer"},"Count":{"type":"integer"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## Create reseller

> Create reseller

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/channelmanager/resellers":{"post":{"tags":["Resellers"],"summary":"Create reseller","description":"Create reseller","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResellerRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reseller"}}}},"400":{"description":"Create reseller error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"CreateResellerRequest":{"type":"object","properties":{"FirstName":{"type":"string"},"LastName":{"type":"string"},"Company":{"type":"string"},"Email":{"type":"string"},"Address":{"type":"string"},"City":{"type":"string"},"PostalCode":{"type":"string"},"Country":{"type":"string"},"State":{"type":"string"},"Phone":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"}}},"Reseller":{"type":"object","properties":{"ResellerCode":{"type":"string"},"FirstName":{"type":"string"},"LastName":{"type":"string"},"Email":{"type":"string"},"Company":{"type":"string"},"Address":{"type":"string"},"State":{"type":"string"},"PostalCode":{"type":"string"},"Phone":{"type":"string"},"Country":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## Update reseller

> Update reseller

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/channelmanager/resellers":{"put":{"tags":["Resellers"],"summary":"Update reseller","description":"Update reseller","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResellerRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reseller"}}}},"400":{"description":"Create reseller error response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"UpdateResellerRequest":{"type":"object","properties":{"FirstName":{"type":"string"},"LastName":{"type":"string"},"Company":{"type":"string"},"Email":{"type":"string"},"Address":{"type":"string"},"City":{"type":"string"},"PostalCode":{"type":"string"},"Country":{"type":"string"},"State":{"type":"string"},"Phone":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"},"ResellerCode":{"type":"string"}}},"Reseller":{"type":"object","properties":{"ResellerCode":{"type":"string"},"FirstName":{"type":"string"},"LastName":{"type":"string"},"Email":{"type":"string"},"Company":{"type":"string"},"Address":{"type":"string"},"State":{"type":"string"},"PostalCode":{"type":"string"},"Phone":{"type":"string"},"Country":{"type":"string"},"Fax":{"type":"string"},"PartnerCode":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# 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.2checkout.com/api-reference/reference/resellers.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.
