Last updated 3 months ago
This endpoint creates a new charge with the provided data.
Charge data
Created
const response = await fetch('//https://sandbox-api.pagou.com.br/v1/charges', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "amount": 0, "description": "text", "due_date": "text", "fine": 0, "interest": 0, "payer": { "city": "text", "document": "text", "name": "text", "neighborhood": "text", "number": "text", "state": "text", "street": "text", "zip": "text" } }), }); const data = await response.json();
text