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

Meio de Pagamento: Pix

PreviousCancelando um BoletoNextCriando um QRCode

Last updated 4 months ago

Cancel a QRCode

delete

This endpoint requests a cancellation for an active qrcode with the provided data.

Path parameters
qrcodeIDstringRequired

QRCode ID

Responses
204
No Content
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE //sandbox-api.pagou.com.br//v1/pix/{qrcodeID} HTTP/1.1
Host: https
Accept: */*

No content

  • POSTCreate a QRCode
  • GETGet a QRCode
  • DELETERefund a QRCode
  • DELETECancel a QRCode

Get a QRCode

get

This endpoint return a qrcode.

Path parameters
qrcodeIDstringRequired

QRCode ID

Responses
200
OK
application/json
Responsestring
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
GET //sandbox-api.pagou.com.br//v1/pix/{qrcodeID} HTTP/1.1
Host: https
Accept: */*
text

Create a QRCode

post

This endpoint creates a new qrcode with the provided data.

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 //sandbox-api.pagou.com.br//v1/pix HTTP/1.1
Host: https
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

Refund a QRCode

delete

This endpoint requests a refund for a qrcode with the provided data.

Path parameters
qrcodeIDstringRequired

QRCode ID

Body
amountnumberRequired
descriptionstringRequired
reasonintegerRequired
Responses
204
No Content
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE //sandbox-api.pagou.com.br//v1/pix/{qrcodeID}/refund HTTP/1.1
Host: https
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "amount": 1,
  "description": "text",
  "reason": 1
}

No content