Cria uma nova cobrança
basicAuth Autenticação via chave de API. Use publicKey:secretKey codificado em Base64 no header Authorization: Basic {credentials}.
In: header
TypeScript Definitions
Use the request body type in TypeScript.
curl -X POST "https://example.com/v1/charges" \ -H "Content-Type: application/json" \ -d '{ "amount": 1, "product_type": "physical", "customer": { "name": "string", "email": "user@example.com", "tax_id": "stringstrin", "phone": "string", "type": "individual" }, "items": [ { "name": "string", "quantity": 1, "unit_price": 0, "tangible": true } ], "payment_method": "credit_card", "payment_details": {} }'