Skip to main content
POST
Attach NF-e invoices issued through Cubbo's fiscal integration

Authorizations

Authorization
string
header
required

Token returned by POST /auth/token, sent as Authorization: Bearer <token>.

Path Parameters

order_id
integer
required

Cubbo ID of the order.

Body

application/json
invoices
object[]
required

Invoices to attach to the order.

Minimum array length: 1
invoice_type
enum<string>
default:WEBMANIA

Fiscal provider the invoices were issued with. Only WEBMANIA is supported.

Available options:
WEBMANIA
Example:

"WEBMANIA"

Response

Invoices registered. new_invoice_ids holds the IDs of the invoices created; when every key already existed, it is empty and update_invoice_ids lists the keys that were refreshed instead.

new_invoice_ids
integer[]
required

IDs of the invoices created by this request.

Example:
update_invoice_ids
string

Comma-separated access keys of invoices that already existed and were refreshed. Only present when nothing new was created.

Example:

"00000000000000000000000000000000000000000000"