Emitir cobrança em rascunho.
Emite uma cobrança agendada que ainda está em rascunho. Válido apenas para faturas `SCHEDULED` com status `DRAFT`. Depois da emissão, o título passa a valer para o pagador.
POST
OAuth2 invoices.writeheader
AuthorizationBearer <token>Escopo: invoices.write
invoiceId*integerFormato
int64x-account-id?integerIdentificador interno da conta filha que será operada. Obrigatório quando o token foi emitido por uma credencial BaaS (clientId com prefixo baas_) em endpoints operacionais de conta.
Formato
int64Emitida
application/json- response
id?integerFormato
int64txId?stringbrCode?stringPix copia e cola.
amount?numberdescription?stringstatus?InvoiceStatusValue in
"DRAFT""REGISTERING""PENDING""OVERDUE""COMPLETED""CANCELED""FAILED"type?InvoiceTypeValue in
"IMMEDIATE""SCHEDULED"paymentMethod?InvoicePaymentMethodValue in
"PIX""BOLETO""PIX_BOLETO"pixKey?stringboletoBarcode?stringDisponível após confirmação da Núclea.
boletoDigitableLine?stringdueDate?stringFormato
date-timedaysToPay?integertransactionId?stringappliedInterest?numberappliedFee?numberinterest?lateFee?discount?customer?curl -X POST 'https://cashout.infopago.com.br/api/v2/invoices/0/emit'Exemplo de resposta
{ "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:22Z", "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" } ] }}