Last updated 2 months ago
This endpoint creates a new qrcode with the provided data.
/v1/pix
curl -L \ --request POST \ --url 'http://https://sandbox-api.pagou.com.br//v1/pix' \ --header 'Content-Type: application/json' \ --data '{ "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.
/v1/pix/{qrcodeID}
QRCode ID
curl -L \ --url 'http://https://sandbox-api.pagou.com.br//v1/pix/{qrcodeID}'
This endpoint requests a refund for a qrcode with the provided data.
/v1/pix/{qrcodeID}/refund
curl -L \ --request DELETE \ --url 'http://https://sandbox-api.pagou.com.br//v1/pix/{qrcodeID}/refund' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1, "description": "text", "reason": 1 }'
No body
This endpoint requests a cancellation for an active qrcode with the provided data.
curl -L \ --request DELETE \ --url 'http://https://sandbox-api.pagou.com.br//v1/pix/{qrcodeID}'