> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/api/partner-portal-api/partner-management.md). Agents can also search and read this documentation through its [MCP server](https://docs.limio.com/~gitbook/mcp).

# Partner Management

Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them.

## List Partner Organisations

> Retrieve a paginated list of all partner organisations. Each organisation includes its name, associated Zuora/Salesforce account IDs, and configuration. Use the \`queryMore\` token from the response to fetch subsequent pages.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"PartnerOrganisation":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the partner organisation"},"name":{"type":"string","description":"Organisation name"},"data":{"type":"object","properties":{"zuoraAccountId":{"type":"string","description":"Associated Zuora account ID"},"zuoraInvoiceOwner":{"type":"string","enum":["partner","end_customer"],"description":"Which party owns Zuora invoices for this organisation"},"salesforceAccountId":{"type":"string","description":"Associated Salesforce account ID"},"logo":{"type":"string","format":"uri","description":"Organisation logo URL"}}},"record_type":{"type":"string","enum":["partner_org"]},"service":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisations":{"get":{"operationId":"getPartnerOrganisations","summary":"List Partner Organisations","tags":["Partner Management"],"description":"Retrieve a paginated list of all partner organisations. Each organisation includes its name, associated Zuora/Salesforce account IDs, and configuration. Use the `queryMore` token from the response to fetch subsequent pages.","parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of partner organisations to return.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"List of partner organisations.","items":{"$ref":"#/components/schemas/PartnerOrganisation"}},"queryMore":{"type":"string","description":"Pagination token for the next page of results."}}}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"}}}}}}
```

## Create Partner Organisation

> Create a new partner organisation. A partner organisation represents an external entity (e.g. reseller, affiliate) that can submit orders and manage subscriptions on behalf of end customers. Requires at minimum a name and Zuora account linkage.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"PartnerOrganisation":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the partner organisation"},"name":{"type":"string","description":"Organisation name"},"data":{"type":"object","properties":{"zuoraAccountId":{"type":"string","description":"Associated Zuora account ID"},"zuoraInvoiceOwner":{"type":"string","enum":["partner","end_customer"],"description":"Which party owns Zuora invoices for this organisation"},"salesforceAccountId":{"type":"string","description":"Associated Salesforce account ID"},"logo":{"type":"string","format":"uri","description":"Organisation logo URL"}}},"record_type":{"type":"string","enum":["partner_org"]},"service":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation":{"post":{"operationId":"createPartnerOrganisation","summary":"Create Partner Organisation","tags":["Partner Management"],"description":"Create a new partner organisation. A partner organisation represents an external entity (e.g. reseller, affiliate) that can submit orders and manage subscriptions on behalf of end customers. Requires at minimum a name and Zuora account linkage.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","zuoraAccountId","zuoraInvoiceOwner"],"properties":{"name":{"type":"string","description":"Display name of the partner organisation."},"zuoraAccountId":{"type":"string","description":"Zuora account ID to link to this partner."},"zuoraInvoiceOwner":{"type":"string","enum":["partner","end_customer"],"description":"Who owns invoices in Zuora for this partner's subscriptions: the partner organisation itself (`partner`) or the end customer (`end_customer`)."},"salesforceAccountId":{"type":"string","description":"Optional Salesforce account ID for CRM integration."},"logo":{"type":"string","format":"uri","description":"URL to the partner organisation's logo."}}}}}},"responses":{"200":{"description":"Partner organisation created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrganisation"}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"}}}}}}
```

## Create Partner User

> Creates a user in a partner organisation. If you do not hold the \`partnerOrganisationId\`, \`GET /api/partner-management/partner-organisations\` lists every organisation with its id.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"PartnerUser":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the partner user"},"name":{"type":"string","description":"User identifier (typically email)"},"data":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"User email address"}}},"partner_org":{"type":"string","description":"Associated partner organisation ID"},"record_type":{"type":"string","enum":["partner_user"]},"service":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation/{partnerOrganisationId}":{"post":{"operationId":"createPartnerUserForOrganisation","summary":"Create Partner User","tags":["Partner Management"],"description":"Creates a user in a partner organisation. If you do not hold the `partnerOrganisationId`, `GET /api/partner-management/partner-organisations` lists every organisation with its id.","parameters":[{"name":"partnerOrganisationId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner organisation ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"User email address"},"name":{"type":"string","description":"Display name for the user"}}}}}},"responses":{"200":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUser"}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"},"409":{"description":"A user with this email address already exists","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```

## Update Partner Organisation

> Updates the details of a partner organisation. If you do not hold the \`partnerOrganisationId\`, \`GET /api/partner-management/partner-organisations\` lists every organisation with its id.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"PartnerOrganisation":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the partner organisation"},"name":{"type":"string","description":"Organisation name"},"data":{"type":"object","properties":{"zuoraAccountId":{"type":"string","description":"Associated Zuora account ID"},"zuoraInvoiceOwner":{"type":"string","enum":["partner","end_customer"],"description":"Which party owns Zuora invoices for this organisation"},"salesforceAccountId":{"type":"string","description":"Associated Salesforce account ID"},"logo":{"type":"string","format":"uri","description":"Organisation logo URL"}}},"record_type":{"type":"string","enum":["partner_org"]},"service":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation/{partnerOrganisationId}":{"put":{"operationId":"updatePartnerOrganisation","summary":"Update Partner Organisation","tags":["Partner Management"],"description":"Updates the details of a partner organisation. If you do not hold the `partnerOrganisationId`, `GET /api/partner-management/partner-organisations` lists every organisation with its id.","parameters":[{"name":"partnerOrganisationId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner organisation ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New display name for the organisation"},"zuoraAccountId":{"type":"string","description":"Associated Zuora account ID"},"zuoraInvoiceOwner":{"type":"string","enum":["partner","end_customer"],"description":"Who owns invoices in Zuora for this partner's subscriptions: the partner organisation itself (`partner`) or the end customer (`end_customer`)"},"salesforceAccountId":{"type":"string","description":"Associated Salesforce account ID"},"logo":{"type":"string","format":"uri","description":"Organisation logo URL"}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrganisation"}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"}}}}}}
```

## Delete Partner Organisation

> Deletes a partner organisation and every user in it. This cannot be undone. If you do not hold the \`partnerOrganisationId\`, \`GET /api/partner-management/partner-organisations\` lists every organisation with its id.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation/{partnerOrganisationId}":{"delete":{"operationId":"deletePartnerOrganisation","summary":"Delete Partner Organisation","tags":["Partner Management"],"description":"Deletes a partner organisation and every user in it. This cannot be undone. If you do not hold the `partnerOrganisationId`, `GET /api/partner-management/partner-organisations` lists every organisation with its id.","parameters":[{"name":"partnerOrganisationId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner organisation ID"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"}}}}}}
```

## List Partner Users for Organisation

> Lists the users of one partner organisation, and the id of each. If you do not hold the \`partnerOrganisationId\`, \`GET /api/partner-management/partner-organisations\` lists every organisation with its id.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"schemas":{"PartnerUser":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the partner user"},"name":{"type":"string","description":"User identifier (typically email)"},"data":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"User email address"}}},"partner_org":{"type":"string","description":"Associated partner organisation ID"},"record_type":{"type":"string","enum":["partner_user"]},"service":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation/{partnerOrganisationId}/users":{"get":{"operationId":"getPartnerUsersForOrganisation","summary":"List Partner Users for Organisation","tags":["Partner Management"],"description":"Lists the users of one partner organisation, and the id of each. If you do not hold the `partnerOrganisationId`, `GET /api/partner-management/partner-organisations` lists every organisation with its id.","parameters":[{"name":"partnerOrganisationId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner organisation ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"},"description":"Maximum number of partner users to return"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PartnerUser"}},"queryMore":{"type":"string","description":"Token for next page of results"}}}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"}}}}}}
```

## Delete Partner User

> Removes one user from a partner organisation. If you do not hold the ids, \`GET /api/partner-management/partner-organisations\` lists the organisations, and the users endpoint of one organisation lists its users with their ids.

```json
{"openapi":"3.1.0","info":{"title":"Limio Commerce API","version":"1.0.0"},"tags":[{"name":"Partner Management","description":"Manage partner organisations and their users. Create, update, and delete partner organisations, and manage user access within them."}],"servers":[{"url":"https://{tenant}/api","description":"Limio environment API","variables":{"tenant":{"default":"your-environment.prod.limio.com","description":"Your Limio environment hostname, e.g. `acme.prod.limio.com` or `acme-sandbox.prod.limio.com`."}}}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.\n\nObtain a token via the OAuth flow described in [Authentication](https://docs.limio.com/api/authentication).\n\nPass the token in the `Authorization` header: `Bearer <token>`"}},"responses":{"401ApplicationResponse":{"description":"Unauthorized: the request lacks valid authentication credentials. Verify your Bearer token or API key is correct and has not expired.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"The unique identifier of the request"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"paths":{"/partner-management/partner-organisation/{partnerOrganisationId}/{partnerUserId}":{"delete":{"operationId":"deletePartnerUser","summary":"Delete Partner User","tags":["Partner Management"],"description":"Removes one user from a partner organisation. If you do not hold the ids, `GET /api/partner-management/partner-organisations` lists the organisations, and the users endpoint of one organisation lists its users with their ids.","parameters":[{"name":"partnerOrganisationId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner organisation ID"},{"name":"partnerUserId","in":"path","required":true,"schema":{"type":"string"},"description":"Partner user ID"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/401ApplicationResponse"},"404":{"description":"No partner user exists with the given ID","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}}}}}},"500":{"description":"Returned when the partner user exists but belongs to a different partner organisation. The response body is generic and does not identify the cause.","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.limio.com/api/partner-portal-api/partner-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
