Pular para o conteúdo principal

Faturas e recebimentos

Faturas e seus itens, pagamentos e métodos de pagamento, as contas bancárias e chaves Pix que recebem cobranças por transferência, créditos aplicados na conta e cupons de desconto.

Famílias nesta página​

FamíliaToolsreadwritedestructive
invoices — Faturas238114
payments — Pagamentos e métodos de pagamento194114
transfer-destinations — Contas bancárias e chaves Pix11542
credits — Créditos7331
coupons — Cupons e códigos de desconto8341

invoices​

ToolTipoPermissãoEndpointO que faz
billing_billing_accounts_invoicesreadinvoices.listGET /v1/billing_accounts/:id/invoicesList the invoices of one billing account.
billing_subscriptions_create_invoicewriteinvoices.createPOST /v1/subscriptions/:id/create-invoiceRaise an invoice for the current period of a subscription now, instead of waiting for the billing worker.
billing_invoices_listreadinvoices.listGET /v1/invoicesList invoices.
billing_invoices_getreadinvoices.showGET /v1/invoices/:idFetch one invoice with its line items and totals.
billing_invoices_createwriteinvoices.createPOST /v1/invoicesCreate a draft invoice with its line items.
billing_invoices_upsertwriteinvoices.createPUT /v1/invoicesCreate or update an invoice matched on id → external_id.
billing_invoices_updatewriteinvoices.updatePATCH /v1/invoices/:idUpdate an invoice.
billing_invoices_deletedestructiveinvoices.updateDELETE /v1/invoices/:idSoft-delete an invoice.
billing_invoices_finalizewriteinvoices.updatePOST /v1/invoices/:id/finalizeFinalize a draft invoice: it becomes open, gets its number, and — with charge_automatically — is charged immediately.
billing_invoices_paywritepayments.createPOST /v1/invoices/:id/paySettle an invoice.
billing_invoices_undo_paymentdestructiveinvoices.updatePOST /v1/invoices/:id/undo-paymentReverse a manual settlement, sending the invoice back to open.
billing_invoices_voiddestructiveinvoices.voidPOST /v1/invoices/:id/voidVoid an open invoice.
billing_invoices_apply_creditswriteinvoices.updatePOST /v1/invoices/:id/apply-creditsApply credits of the billing account to an open invoice, reducing the amount due.
billing_invoices_remove_creditsdestructiveinvoices.updatePOST /v1/invoices/:id/remove-creditsUndo every credit application on an open invoice, returning the credits to the billing account balance.
billing_invoices_installments_listreadinvoices.showGET /v1/invoices/:id/installmentsList the installment schedule of an invoice.
billing_invoices_installments_createwriteinvoices.updatePOST /v1/invoices/:id/installmentsSplit an invoice into installments.
billing_invoices_installments_paywritepayments.createPOST /v1/invoices/:id/installments/:installmentId/payCharge one installment: through the gateway (pix, bank_slip, card), or as a bank_transfer to an organization bank account or Pix key.
billing_invoices_installments_mark_paidwritepayments.createPOST /v1/invoices/:id/installments/:installmentId/mark-paidMark one installment paid out of band, without touching a gateway.
billing_invoices_payment_methodsreadinvoices.showGET /v1/invoices/:id/payment-methodsPayment methods usable to settle this invoice, in the order the portal offers them.
billing_invoices_send_reminderwriteinvoices.sendPOST /v1/invoices/:id/send-reminderE-mail the customer a payment reminder for an open invoice.
billing_invoices_pdfreadinvoices.showGET /v1/invoices/:id/pdfMetadata for the invoice PDF.
billing_invoices_pending_nfereadinvoices.listGET /v1/invoices/pending-nfeInvoices that are due an NFe and have not had one issued yet.
billing_invoices_pending_paymentreadinvoices.listGET /v1/invoices/pending-paymentOpen invoices still awaiting payment.

payments​

ToolTipoPermissãoEndpointO que faz
billing_payments_listreadpayments.listGET /v1/paymentsList payments — every charge attempt, successful or not.
billing_payments_getreadpayments.showGET /v1/payments/:idFetch one payment with its gateway status.
billing_payments_createwritepayments.createPOST /v1/paymentsCharge an invoice through a gateway.
billing_payments_deletedestructivepayments.updateDELETE /v1/payments/:idSoft-delete a payment record.
billing_payments_retrywritepayments.retryPOST /v1/payments/:id/retryRetry a failed payment with the same method.
billing_payments_refunddestructivepayments.refundPOST /v1/payments/:id/refundRefund a succeeded payment at the gateway.
billing_payments_canceldestructivepayments.updatePOST /v1/payments/:id/cancelCancel a pending payment.
billing_payments_change_due_datewritepayments.updatePOST /v1/payments/:id/change-due-dateMove the due date of an open boleto/PIX charge.
billing_payments_change_cardwritepayments.updatePOST /v1/payments/:id/change-cardPoint a card payment at a different stored card before retrying it.
billing_payments_send_emailwritepayments.updatePOST /v1/payments/:id/send-emailE-mail the charge (boleto/PIX link) to an address.
billing_payments_syncwritepayments.updatePOST /v1/payments/:id/syncRe-read a payment from the gateway and update the local status.
billing_payments_bulk_update_invoicewritepayments.updatePOST /v1/payments/bulk-update-invoiceRe-link up to 100 payments to another invoice.
billing_payment_methods_listreadpayments.listGET /v1/payment_methodsList stored payment methods.
billing_payment_methods_getreadpayments.showGET /v1/payment_methods/:idFetch one payment method.
billing_payment_methods_createwritepayments.createPOST /v1/payment_methodsAttach a payment method to a billing account.
billing_payment_methods_upsertwritepayments.createPUT /v1/payment_methodsCreate or update a payment method matched on id → external_id.
billing_payment_methods_updatewritepayments.updatePATCH /v1/payment_methods/:idUpdate a payment method — the default flag and its metadata.
billing_payment_methods_deletedestructivepayments.updateDELETE /v1/payment_methods/:idDetach a payment method.
billing_payment_methods_set_defaultwritepayments.updatePOST /v1/payment_methods/:id/set-defaultMake this the default payment method of its billing account.

transfer-destinations​

ToolTipoPermissãoEndpointO que faz
billing_banks_listreadsettings.viewGET /v1/banksList the Brazilian banks (COMPE code and name) a bank account can be registered under.
billing_bank_accounts_listreadsettings.viewGET /v1/bank_accountsList the organization bank accounts customers can be told to transfer to on a bank_transfer charge.
billing_bank_accounts_getreadsettings.viewGET /v1/bank_accounts/:idFetch one organization bank account, with its bank.
billing_bank_accounts_createwritesettings.updatePOST /v1/bank_accountsRegister an organization bank account to receive bank_transfer charges.
billing_bank_accounts_updatewritesettings.updatePATCH /v1/bank_accounts/:idUpdate an organization bank account.
billing_bank_accounts_deletedestructivesettings.updateDELETE /v1/bank_accounts/:idSoft-delete an organization bank account.
billing_pix_keys_listreadsettings.viewGET /v1/pix_keysList the organization Pix keys customers can be told to transfer to on a bank_transfer charge.
billing_pix_keys_getreadsettings.viewGET /v1/pix_keys/:idFetch one organization Pix key.
billing_pix_keys_createwritesettings.updatePOST /v1/pix_keysRegister an organization Pix key to receive bank_transfer charges.
billing_pix_keys_updatewritesettings.updatePATCH /v1/pix_keys/:idUpdate an organization Pix key.
billing_pix_keys_deletedestructivesettings.updateDELETE /v1/pix_keys/:idSoft-delete an organization Pix key.

credits​

ToolTipoPermissãoEndpointO que faz
billing_billing_accounts_creditsreadcredits.listGET /v1/billing_accounts/:id/creditsList the credits of one billing account.
billing_credits_listreadcredits.listGET /v1/creditsList credits.
billing_credits_getreadcredits.showGET /v1/credits/:idFetch one credit with what is left of it.
billing_credits_createwritecredits.createPOST /v1/creditsGrant a credit to a billing account.
billing_credits_upsertwritecredits.createPUT /v1/creditsCreate or update a credit matched on id → external_id.
billing_credits_updatewritecredits.createPATCH /v1/credits/:idUpdate a credit.
billing_credits_deletedestructivecredits.deleteDELETE /v1/credits/:idSoft-delete a credit.

coupons​

ToolTipoPermissãoEndpointO que faz
billing_coupons_listreadcoupons.listGET /v1/couponsList discount coupons with their validity window and usage counters.
billing_coupons_getreadcoupons.showGET /v1/coupons/:idFetch one coupon with its usage counters.
billing_coupons_createwritecoupons.createPOST /v1/couponsCreate a discount coupon.
billing_coupons_upsertwritecoupons.createPUT /v1/couponsCreate or update a coupon matched on id → external_id → code.
billing_coupons_updatewritecoupons.updatePATCH /v1/coupons/:idUpdate a coupon.
billing_coupons_deletedestructivecoupons.deleteDELETE /v1/coupons/:idSoft-delete a coupon.
billing_coupons_deactivatewritecoupons.updatePOST /v1/coupons/:id/deactivateStop a coupon being redeemable, keeping its history intact.
billing_coupons_redemptionsreadcoupons.showGET /v1/coupons/:id/redemptionsList the redemptions of a coupon — who used it, when, and for how much.

Os campos de cada recurso estão na Referência da API e em billing_schemas_get.

Uma tool que você não pode rodar não aparece em tools/list. Se uma daqui não está lá, veja Autenticação.