Last updated 2 months ago
This endpoint creates a new charge with the provided data.
/v1/charges
curl -L \ --request POST \ --url 'http://https://sandbox-api.pagou.com.br//v1/charges' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1, "customer_code": "text", "description": "text", "discount": { "amount": 1, "limit_date": "text", "type": "fixed" }, "due_date": "text", "fine": 1, "grace_period": 1, "interest": 1, "metadata": [ { "key": "text", "value": "text" } ], "notification_url": "text", "payer": { "city": "text", "document": "text", "name": "text", "neighborhood": "text", "number": "text", "state": "text", "street": "text", "zip": "text" } }'
text
This endpoint return a charge.
/v1/charges/{chargeID}
Charge ID
curl -L \ --url 'http://https://sandbox-api.pagou.com.br//v1/charges/{chargeID}'
This endpoint requests a cancellation for an active charge with the provided data.
curl -L \ --request DELETE \ --url 'http://https://sandbox-api.pagou.com.br//v1/charges/{chargeID}'
No body