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

# Criar Split

## Criar Split de Pagamento

> Divide o valor de uma charge entre múltiplos sellers (apenas após transação aprovada)

```json
{"openapi":"3.0.0","info":{"title":"Barte Payment Service API - Split de Pagamento","version":"2.0.0"},"servers":[{"url":"https://api.barte.com","description":"Servidor de Produção"},{"url":"https://sandbox-api.barte.com","description":"Servidor de Sandbox"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-token-api","description":"Token de autenticação para acesso à API"}},"schemas":{"SplitRequest":{"type":"object","required":["sellers"],"properties":{"sellers":{"type":"array","items":{"$ref":"#/components/schemas/SplitSellerRequest"},"maxItems":10,"description":"Lista de sellers para divisão (máximo 10)"}}},"SplitSellerRequest":{"type":"object","required":["idSeller","value","type"],"properties":{"idSeller":{"type":"integer","description":"ID do seller que receberá parte do valor"},"value":{"type":"number","format":"double","description":"Valor fixo ou porcentagem (dependendo do type)"},"type":{"type":"string","enum":["fixed","percent"],"description":"Tipo de divisão - valor fixo ou porcentagem"}}},"SplitResponse":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["SUCCESS","PROCESSING","ERROR"]},"chargeValue":{"type":"number","format":"double"},"split":{"type":"array","items":{"$ref":"#/components/schemas/SplitSellerResponse"}},"timestamp":{"type":"string","format":"date-time"}}},"SplitSellerResponse":{"type":"object","properties":{"idSeller":{"type":"integer"},"splitValue":{"type":"number","format":"double"}}},"Error":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"ErrorDetail":{"type":"object","properties":{"status":{"type":"string"},"code":{"type":"string","enum":["BAR-3011","BAR-3004","BAR-3014","BAR-3013","BAD_REQUEST","FORBIDDEN","METHOD_NOT_ALLOWED","NOT_ACCEPTABLE","UNSUPPORTED_MEDIA_TYPE"]},"title":{"type":"string","enum":["BUSINESS_SPLIT","BUSINESS_CHARGE","BUSINESS_VALIDATION","INVALID_REQUEST_PARAM"]},"description":{"type":"string"},"action":{"type":"string"},"additionalInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"Metadata":{"type":"object","properties":{"totalRecords":{"type":"integer"},"totalPages":{"type":"integer"},"requestDatetime":{"type":"string","format":"date-time"}}}}},"paths":{"/v2/seller/{idSeller}/charges/{chargeUuid}/split":{"post":{"summary":"Criar Split de Pagamento","description":"Divide o valor de uma charge entre múltiplos sellers (apenas após transação aprovada)","tags":["Split de Pagamento"],"parameters":[{"name":"idSeller","in":"path","required":true,"schema":{"type":"integer"},"description":"ID do seller dono da charge"},{"name":"chargeUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"UUID da charge a ser splitada"},{"name":"x-token-api","in":"header","required":true,"schema":{"type":"string"},"description":"Token de autenticação para acesso à API"},{"name":"Content-Type","in":"header","required":false,"schema":{"type":"string","enum":["application/json"]},"description":"Tipo de conteúdo da requisição"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitRequest"}}}},"responses":{"201":{"description":"Split criado com sucesso","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SplitResponse"}}}}},"400":{"description":"Erro de validação ou dados inválidos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Token inativo ou inexistente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Acesso negado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Charge não encontrada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflito - charge já foi splitada ou valor excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Muitas requisições","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Erro interno do servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```


---

# 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.barte.com/api-reference/split-de-transacoes/split-pos-transacao/criar-split.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.
