TRANSAÇÕES
TRANSAÇÃO/BOLEPIX/

CRIAÇÃO DE TRANSAÇÕES

Changed on

API para criação de transação em Vindi para todos os métodos de pagamento disponíveis, com ou sem split.

post/api/v3/transactions/payment

Request

  • Base URL
    https://api.intermediador.sandbox.yapay.com.br
  • URL
    https://api.intermediador.sandbox.yapay.com.br/api/v3/transactions/payment
  • Auth
    none declared

Headers

string

Request body

finger_printunknown
reseller_tokenstring
token_accountstring

Example request

{
  "affiliates": [
    {
      "account_email": "anderson.mickaleski@vindi.com.br",
      "commission_amount": 1
    }
  ],
  "customer": {
    "addresses": [
      {
        "city": "Dez de Maio",
        "completion": "",
        "neighborhood": "Centro",
        "number": "123",
        "postal_code": "85920970",
        "state": "PR",
        "street": "Rua Encantado 860",
        "type_address": "D"
      }
    ],
    "cnpj": "27819250000104",
    "contacts": [
      {
        "number_contact": "11944444444",
        "type_contact": "H"
      }
    ],
    "email": "vindi.teste@gmail.com",
    "name": "Vindi Teste"
  },
  "payment": {
    "payment_method_id": "28"
  },
  "token_account": "93d71f5187981a7",
  "transaction": {
    "available_payment_methods": "3,4,5,6,16,20,25,27,28",
    "max_split_transaction": "1",
    "order_number": "99948",
    "shipping_type": "Frete",
    "url_notification": "https://gateway-postback.fbits.net/api/Yapay"
  },
  "transaction_product": [
    {
      "description": "Meu Produto de Testes",
      "price_unit": "99.90",
      "quantity": "1"
    }
  ]
}

Response

1.0 - RETURN SUCESSO / 2.0 - RETURN SUCESSO / 3.0 - RETURN SUCESSO / 4.0 - RETURN SUCESSO / RETURN - BOLETO - SEM SPLIT / RETURN - BOLETO COM SPLIT / RETURN - PIX - SEM SPLIT / RETURN - PIX COM SPLIT / RETURN - BOLEPIX - SEM SPLIT / RETURN - BOLEPIX - COM SPLIT

Example response

{
  "data_response": {
    "transaction": {
      "customer": {
        "cpf": "05661170025",
        "name": "Vindi Teste"
      },
      "max_days_to_keep_waiting_payment": "2025-12-02T12:22:00",
      "order_number": "9004698",
      "payment": {
        "authorization_code": "12321",
        "brand_tid": "12321",
        "card_token": "6e199406-07e7-473f-8cc2-e5f78c3c268b",
        "payment_method_id": 4,
        "payment_method_name": "Mastercard",
        "payment_response": "Mensagem de venda fake",
        "payment_response_code": "12321",
        "price_original": "99.9",
        "price_payment": "99.9",
        "split": 1,
        "tid": "1233"
      },
      "status_id": 6,
      "status_name": "Aprovada",
      "token_transaction": "9c5ad52320a0d54aabc6c90a46ec8e08",
      "transaction_id": 1782406
    }
  },
  "message_response": {
    "message": "success"
  }
}

Changes