Last updated 3 months ago
This endpoint requests a cancellation for an active charge with the provided data.
Charge ID
DELETE //sandbox-api.pagou.com.br//v1/charges/{chargeID} HTTP/1.1 Host: https Accept: */*
No Content
No content
This endpoint return a charge.
GET //sandbox-api.pagou.com.br//v1/charges/{chargeID} HTTP/1.1 Host: https Accept: */*
OK
text
This endpoint creates a new charge with the provided data.
POST //sandbox-api.pagou.com.br//v1/charges HTTP/1.1 Host: https Content-Type: application/json Accept: */* Content-Length: 379 { "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" } }
Created