Clientes
POST/v1/actionsconsultar capabilities
customer.resolve
operation: customer.resolve · arguments: CustomerResolveArguments · obrigatórios: nenhum
Headers: Authorization, Content-Type. Escopo: customer.resolve.
| Campo | Tipo | Obrigatório | Restrições |
|---|
contact_id | string | não | — |
phone | string | não | formato validado |
document | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "customer.resolve",
"conversation": {
"id": "conv_01"
},
"arguments": {}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "customer.resolve",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
customer.create
operation: customer.create · arguments: CustomerCreateArguments · obrigatórios: name, phone, bairro, reference
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: customer.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
name | string | sim | mín. 1 |
phone | string | sim | formato validado |
bairro | string | sim | mín. 1 |
reference | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "customer.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"name": "Empresa Exemplo",
"phone": "5511999990000",
"bairro": "valor_exemplo",
"reference": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "customer.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
customer.update
operation: customer.update · arguments: CustomerUpdateArguments · obrigatórios: customer_ref
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: customer.update.
| Campo | Tipo | Obrigatório | Restrições |
|---|
customer_ref | string | sim | mín. 1 |
bairro | string | não | mín. 1 |
reference | string | não | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "customer.update",
"conversation": {
"id": "conv_01"
},
"arguments": {
"customer_ref": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "customer.update",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
customer.search
operation: customer.search · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: customer.search.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "customer.search",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "customer.search",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
Catálogo
POST/v1/actionsconsultar capabilities
product.create
operation: product.create · arguments: ProductCreateArguments · obrigatórios: name, unit, price
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: product.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
name | string | sim | mín. 1 |
unit | string | sim | mín. 1 |
price | object | sim | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "product.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"name": "Empresa Exemplo",
"unit": "un",
"price": {
"amount_minor": 1,
"currency": "BRL"
}
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "product.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
product.update
operation: product.update · arguments: ProductUpdateArguments · obrigatórios: product_ref, expected_version
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: product.update.
| Campo | Tipo | Obrigatório | Restrições |
|---|
product_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
name | string | não | mín. 1 |
price | object | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "product.update",
"conversation": {
"id": "conv_01"
},
"arguments": {
"product_ref": "valor_exemplo",
"expected_version": 1
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "product.update",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
catalog.search
operation: catalog.search · arguments: CatalogSearchArguments · obrigatórios: query
Headers: Authorization, Content-Type. Escopo: catalog.search.
| Campo | Tipo | Obrigatório | Restrições |
|---|
query | string | sim | mín. 2 |
limit | integer | não | mín. 1, máx. 50 |
customer_ref | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "catalog.search",
"conversation": {
"id": "conv_01"
},
"arguments": {
"query": "produto demonstrativo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "catalog.search",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
product.get
operation: product.get · arguments: ReferenceArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: product.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "product.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "product.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
Estoque
POST/v1/actionsconsultar capabilities
stock.check
operation: stock.check · arguments: StockCheckArguments · obrigatórios: product_ref
Headers: Authorization, Content-Type. Escopo: stock.check.
| Campo | Tipo | Obrigatório | Restrições |
|---|
product_ref | string | sim | mín. 1 |
quantity | number | não | — |
unit | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "stock.check",
"conversation": {
"id": "conv_01"
},
"arguments": {
"product_ref": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "stock.check",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
inventory.list
operation: inventory.list · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: inventory.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "inventory.list",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "inventory.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
inventory.movement.create
operation: inventory.movement.create · arguments: InventoryMovementArguments · obrigatórios: product_ref, quantity, unit, movement_type, source_ref
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: inventory.movement.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
product_ref | string | sim | mín. 1 |
quantity | number | sim | — |
unit | string | sim | mín. 1 |
movement_type | enum: reserve, release, debit, credit | sim | — |
source_ref | string | sim | mín. 1 |
location_ref | string | não | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "inventory.movement.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"product_ref": "valor_exemplo",
"quantity": 1,
"unit": "un",
"movement_type": "reserve",
"source_ref": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "inventory.movement.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
Propostas
POST/v1/actionsconsultar capabilities
quote.get
operation: quote.get · arguments: ReferenceArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: quote.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "quote.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "quote.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
quote.list
operation: quote.list · arguments: ListArguments · obrigatórios: nenhum
Headers: Authorization, Content-Type. Escopo: quote.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
cursor | string | não | — |
limit | integer | não | mín. 1, máx. 100 |
customer_ref | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "quote.list",
"conversation": {
"id": "conv_01"
},
"arguments": {}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "quote.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
quote.create
operation: quote.create · arguments: QuoteCreateArguments · obrigatórios: customer_ref, items
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: quote.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
customer_ref | string | sim | mín. 1 |
items | array de OrderItem | sim | itens mín. 1 |
notes | string | não | máx. 500 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "quote.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"customer_ref": "valor_exemplo",
"items": [
{
"product_ref": "valor_exemplo",
"quantity": 1,
"unit": "un"
}
]
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "quote.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
quote.update
operation: quote.update · arguments: QuoteUpdateArguments · obrigatórios: quote_ref, quote_version, items
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: quote.update.
| Campo | Tipo | Obrigatório | Restrições |
|---|
quote_ref | string | sim | mín. 1 |
quote_version | integer | sim | mín. 1 |
items | array de OrderItem | sim | itens mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "quote.update",
"conversation": {
"id": "conv_01"
},
"arguments": {
"quote_ref": "valor_exemplo",
"quote_version": 1,
"items": [
{
"product_ref": "valor_exemplo",
"quantity": 1,
"unit": "un"
}
]
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "quote.update",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
Pedidos
POST/v1/actionsconsultar capabilities
order.get
operation: order.get · arguments: ReferenceArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: order.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
order.list
operation: order.list · arguments: ListArguments · obrigatórios: nenhum
Headers: Authorization, Content-Type. Escopo: order.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
cursor | string | não | — |
limit | integer | não | mín. 1, máx. 100 |
customer_ref | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.list",
"conversation": {
"id": "conv_01"
},
"arguments": {}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
order.create
operation: order.create · arguments: OrderCreateArguments · obrigatórios: customer_ref, quote_ref, quote_version, confirmation
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: order.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
customer_ref | string | sim | mín. 1 |
quote_ref | string | sim | mín. 1 |
quote_version | integer | sim | mín. 1 |
confirmation | Confirmation | sim | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"customer_ref": "valor_exemplo",
"quote_ref": "valor_exemplo",
"quote_version": 1,
"confirmation": {
"quote_ref": "valor_exemplo",
"quote_version": 1,
"summary_digest": "valor_exemplo",
"confirmed_at": "valor_exemplo",
"confirmation_event_id": "valor_exemplo"
}
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
order.reconcile
operation: order.reconcile · arguments: OrderReconcileArguments · obrigatórios: quote_ref, confirmation_event_id
Headers: Authorization, Content-Type. Escopo: order.reconcile.
| Campo | Tipo | Obrigatório | Restrições |
|---|
quote_ref | string | sim | mín. 1 |
confirmation_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.reconcile",
"conversation": {
"id": "conv_01"
},
"arguments": {
"quote_ref": "valor_exemplo",
"confirmation_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.reconcile",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
order.history
operation: order.history · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: order.history.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.history",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.history",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
order.update
operation: order.update · arguments: OrderMutationArguments · obrigatórios: order_ref, expected_version, reason
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: order.update.
| Campo | Tipo | Obrigatório | Restrições |
|---|
order_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
items | array de OrderItem | não | itens mín. 1 |
reason | string | sim | mín. 1 |
confirmation_event_id | string | não | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.update",
"conversation": {
"id": "conv_01"
},
"arguments": {
"order_ref": "valor_exemplo",
"expected_version": 1,
"reason": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.update",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
order.cancel
operation: order.cancel · arguments: OrderDecisionArguments · obrigatórios: order_ref, expected_version, decision_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: order.cancel.
| Campo | Tipo | Obrigatório | Restrições |
|---|
order_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
decision_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.cancel",
"conversation": {
"id": "conv_01"
},
"arguments": {
"order_ref": "valor_exemplo",
"expected_version": 1,
"decision_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.cancel",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
order.confirm
operation: order.confirm · arguments: OrderDecisionArguments · obrigatórios: order_ref, expected_version, decision_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: order.confirm.
| Campo | Tipo | Obrigatório | Restrições |
|---|
order_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
decision_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.confirm",
"conversation": {
"id": "conv_01"
},
"arguments": {
"order_ref": "valor_exemplo",
"expected_version": 1,
"decision_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.confirm",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsconsultar capabilities
order.fulfillment.get
operation: order.fulfillment.get · arguments: SensitiveReferenceArguments · obrigatórios: ref, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: order.fulfillment.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.fulfillment.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01",
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.fulfillment.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
order.invoice
operation: order.invoice · arguments: InvoiceIssueArguments · obrigatórios: order_ref, expected_version, authorization_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: order.invoice.
| Campo | Tipo | Obrigatório | Restrições |
|---|
order_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
fiscal_profile_ref | string | não | mín. 1 |
authorization_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "order.invoice",
"conversation": {
"id": "conv_01"
},
"arguments": {
"order_ref": "valor_exemplo",
"expected_version": 1,
"authorization_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "order.invoice",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
Fiscal
POST/v1/actionsconsultar capabilities
invoice.get
operation: invoice.get · arguments: ReferenceArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: invoice.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "invoice.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "invoice.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
invoice.list
operation: invoice.list · arguments: ListArguments · obrigatórios: nenhum
Headers: Authorization, Content-Type. Escopo: invoice.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
cursor | string | não | — |
limit | integer | não | mín. 1, máx. 100 |
customer_ref | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "invoice.list",
"conversation": {
"id": "conv_01"
},
"arguments": {}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "invoice.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsdisponibilidade contratual
document.get
operation: document.get · arguments: ReferenceArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: document.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "document.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "document.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
invoice.status
operation: invoice.status · arguments: SensitiveReferenceArguments · obrigatórios: ref, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: invoice.status.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "invoice.status",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01",
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "invoice.status",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsdisponibilidade contratual
invoice.issue
operation: invoice.issue · arguments: InvoiceIssueArguments · obrigatórios: order_ref, expected_version, authorization_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: invoice.issue.
| Campo | Tipo | Obrigatório | Restrições |
|---|
order_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
fiscal_profile_ref | string | não | mín. 1 |
authorization_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "invoice.issue",
"conversation": {
"id": "conv_01"
},
"arguments": {
"order_ref": "valor_exemplo",
"expected_version": 1,
"authorization_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "invoice.issue",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
Financeiro
POST/v1/actionsconsultar capabilities
boleto.get
operation: boleto.get · arguments: BoletoGetArguments · obrigatórios: ref
Headers: Authorization, Content-Type. Escopo: boleto.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
verified_customer_ref | string | não | mín. 1 |
verification_event_id | string | não | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "boleto.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "boleto.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
receivable.list
operation: receivable.list · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: receivable.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "receivable.list",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "receivable.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
receivable.get
operation: receivable.get · arguments: SensitiveReferenceArguments · obrigatórios: ref, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: receivable.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "receivable.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01",
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "receivable.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
boleto.list
operation: boleto.list · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: boleto.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "boleto.list",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "boleto.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
payment.list
operation: payment.list · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: payment.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "payment.list",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "payment.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
payment.get
operation: payment.get · arguments: SensitiveReferenceArguments · obrigatórios: ref, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: payment.get.
| Campo | Tipo | Obrigatório | Restrições |
|---|
ref | string | sim | mín. 1 |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "payment.get",
"conversation": {
"id": "conv_01"
},
"arguments": {
"ref": "ref_01",
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "payment.get",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsconsultar capabilities
financial-entry.list
operation: financial-entry.list · arguments: SensitiveReadArguments · obrigatórios: selector, verified_customer_ref, verification_event_id
Headers: Authorization, Content-Type. Escopo: financial-entry.list.
| Campo | Tipo | Obrigatório | Restrições |
|---|
selector | CustomerSelector | sim | — |
verified_customer_ref | string | sim | mín. 1 |
verification_event_id | string | sim | mín. 1 |
cursor | string | não | mín. 1 |
limit | integer | não | mín. 1, máx. 100 |
status | enum: open, overdue, paid, confirmed, failed, reversed, cancelled, all | não | — |
from | string | não | — |
to | string | não | — |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "financial-entry.list",
"conversation": {
"id": "conv_01"
},
"arguments": {
"selector": {},
"verified_customer_ref": "valor_exemplo",
"verification_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "financial-entry.list",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: não exigida para esta leitura.
POST/v1/actionsdisponibilidade contratual
financial-entry.create
operation: financial-entry.create · arguments: FinancialEntryArguments · obrigatórios: customer_ref, type, amount, authorization_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: financial-entry.create.
| Campo | Tipo | Obrigatório | Restrições |
|---|
customer_ref | string | sim | mín. 1 |
order_ref | string | não | mín. 1 |
type | enum: receivable, payable, adjustment | sim | — |
amount | Money | sim | — |
due_date | string | não | — |
authorization_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "financial-entry.create",
"conversation": {
"id": "conv_01"
},
"arguments": {
"customer_ref": "valor_exemplo",
"type": "receivable",
"amount": {
"amount_minor": 1,
"currency": "BRL"
},
"authorization_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "financial-entry.create",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsdisponibilidade contratual
payment.update
operation: payment.update · arguments: PaymentUpdateArguments · obrigatórios: payment_ref, expected_version, status, evidence_ref, authorization_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: payment.update.
| Campo | Tipo | Obrigatório | Restrições |
|---|
payment_ref | string | sim | mín. 1 |
expected_version | integer | sim | mín. 1 |
status | enum: confirmed, failed, reversed | sim | — |
evidence_ref | string | sim | mín. 1 |
authorization_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "payment.update",
"conversation": {
"id": "conv_01"
},
"arguments": {
"payment_ref": "valor_exemplo",
"expected_version": 1,
"status": "confirmed",
"evidence_ref": "valor_exemplo",
"authorization_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "payment.update",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.
POST/v1/actionsdisponibilidade contratual
boleto.issue
operation: boleto.issue · arguments: BoletoIssueArguments · obrigatórios: receivable_ref, authorization_event_id
Headers: Authorization, Content-Type e Idempotency-Key. Escopo: boleto.issue.
| Campo | Tipo | Obrigatório | Restrições |
|---|
receivable_ref | string | sim | mín. 1 |
authorization_event_id | string | sim | mín. 1 |
Exemplo de entrada e saída
{
"schema_version": "v1",
"request_id": "req_01",
"operation": "boleto.issue",
"conversation": {
"id": "conv_01"
},
"arguments": {
"receivable_ref": "valor_exemplo",
"authorization_event_id": "valor_exemplo"
}
}{
"schema_version": "v1",
"request_id": "req_01",
"operation_id": "op_01",
"trace_id": "trace_01",
"operation": "boleto.issue",
"status": "completed",
"retryable": false,
"result": {}
}HTTP: 200, 400, 401, 403, 409 ou 503. Status: completed, blocked, not_found, failed ou not_implemented. Erros: validação, autenticação, escopo, conflito, dependência e CAPABILITY_UNAVAILABLE.
Idempotência: header obrigatório para esta mutação.