Documentação da API
  • Introdução
  • Credenciais de acesso
  • Integração com a API
    • Meio de Pagamento: Boleto
      • Criando um Boleto
      • Consultando um Boleto
      • Cancelando um Boleto
    • Meio de Pagamento: Pix
      • Criando um QRCode
      • Consultando um QRCode
      • Cancelando um QRCode
      • Estornando um QRCode
    • Consultando saldo
  • Specification
Powered by GitBook
On this page
  1. Integração com a API
  2. Meio de Pagamento: Pix

Criando um QRCode

PreviousMeio de Pagamento: PixNextConsultando um QRCode

Last updated 8 days ago

  • POSTCreate a QRCode
  • POSTCreate a QRCode with due

Create a QRCode

post

This endpoint creates a new qrcode with the provided data.

Authorizations
Header parameters
User-AgentanyOptional

Client Identifier

Body
amountnumberRequired
customer_codestringOptional
descriptionstringRequired
expirationinteger · min: 60Required
notification_urlstringOptional
Responses
201
Created
application/json
Responsestring
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /v1/pix HTTP/1.1
Host: sandbox-api.pagou.com.br
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 182

{
  "amount": 1,
  "customer_code": "text",
  "description": "text",
  "expiration": 1,
  "metadata": [
    {
      "key": "text",
      "value": "text"
    }
  ],
  "notification_url": "text",
  "payer": {
    "document": "text",
    "name": "text"
  }
}
text

Create a QRCode with due

post

This endpoint creates a new qrcode due with the provided data.

Authorizations
Header parameters
User-AgentanyOptional

Client Identifier

Body
amountnumberRequired
descriptionstringRequired
due_datestringRequired
expirationinteger · min: 1Required
notification_urlstringOptional
Responses
201
Created
application/json
Responsestring
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /v1/pix/due HTTP/1.1
Host: sandbox-api.pagou.com.br
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 310

{
  "amount": 1,
  "description": "text",
  "discount": {
    "amount": 1,
    "limit_date": "text",
    "type": "fixed"
  },
  "due_date": "text",
  "expiration": 1,
  "fine": {
    "amount": 1,
    "type": "fixed"
  },
  "interest": {
    "amount": 1,
    "type": "fixed"
  },
  "metadata": [
    {
      "key": "text",
      "value": "text"
    }
  ],
  "notification_url": "text",
  "payer": {
    "document": "text",
    "name": "text"
  }
}
text