Criar sessão de pagamento

Criar sessão Yuno

post

Cria uma sessão na Yuno utilizada no fluxo de pagamento.

Autorizações
Corpo
countrystringObrigatórioExample: BR
uuidBuyerstringObrigatório

UUID do comprador

Example: {{uuidBuyer}}
merchantOrderIdstringObrigatórioExample: {{merchantOrderId}}
paymentDescriptionstringObrigatórioExample: Teste de pagamento
Respostas
200

Sessão criada com sucesso

application/json
post
POST /v2/providers/yuno/session HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 166

{
  "country": "BR",
  "amount": {
    "currency": "BRL",
    "value": 349
  },
  "uuidBuyer": "{{uuidBuyer}}",
  "merchantOrderId": "{{merchantOrderId}}",
  "paymentDescription": "Teste de pagamento"
}
{
  "checkoutSession": "bf70250b-9934-4378-bc63-346dba75eaa1",
  "country": "BR",
  "paymentDescription": "Teste de pagamento",
  "customerId": "78b85a85-da25-426a-8f6b-eb670de1db67",
  "amount": {
    "currency": "BRL",
    "value": 349
  },
  "createdAt": "2025-09-10T23:14:07.482539Z",
  "workflow": "SDK_CHECKOUT",
  "installments": {}
}

Atualizado

Isto foi útil?