PIX_BOLETO) para um pagador da conta.x-idempotency-key é obrigatório (1 a 50 caracteres). pixKey é obrigatória quando o método inclui Pix. IMMEDIATE registra na hora; SCHEDULED nasce em rascunho (DRAFT) e precisa ser emitida depois.curl --location '/invoices' \
--header 'x-account-id;' \
--header 'x-idempotency-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerId": 0,
"paymentMethod": "PIX",
"pixKey": "string",
"dueDate": "2019-08-24",
"daysToPay": 0,
"amount": 1,
"type": "IMMEDIATE",
"description": "string",
"emailTo": "user@example.com",
"sendEmail": false,
"interest": {
"type": 1,
"amount": 0
},
"lateFee": {
"type": 1,
"amount": 0
},
"discount": {
"type": 1,
"value": 1,
"deadline": "2019-08-24"
}
}'{
"id": 0,
"txId": "string",
"brCode": "string",
"amount": 0,
"description": "string",
"status": "DRAFT",
"type": "IMMEDIATE",
"paymentMethod": "PIX",
"pixKey": "string",
"boletoBarcode": "string",
"boletoDigitableLine": "string",
"dueDate": "2019-08-24T14:15:22.123Z",
"daysToPay": 0,
"transactionId": "string",
"appliedInterest": 0,
"appliedFee": 0,
"interest": {
"type": 1,
"amount": 0
},
"lateFee": {
"type": 1,
"amount": 0
},
"discount": {
"type": 1,
"value": 1,
"deadline": "2019-08-24"
},
"customer": {
"id": 0,
"accountId": 0,
"name": "string",
"email": "string",
"phone": "string",
"document": "string",
"address": {
"address": "string",
"number": "string",
"complement": "string",
"district": "string",
"city": "string",
"zipCode": "stringst",
"uf": "st"
},
"addresses": [
{
"address": "string",
"number": "string",
"complement": "string",
"district": "string",
"city": "string",
"zipCode": "stringst",
"uf": "st"
}
]
}
}