Meio de Pagamento: Pix
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
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
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
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
Last updated