Skip to main content
POST
Attach an NF-e issued through Cubbo's Brazilian invoicing provider

Authorizations

Authorization
string
header
required

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

Path Parameters

replenishment_id
integer
required

Cubbo id of the replenishment.

Body

application/json
invoices
object[]
required

Exactly one invoice.

Required array length: 1 element
invoice_type
enum<string>
default:WEBMANIA

Invoicing provider that authorized the document. Only WEBMANIA is accepted today.

Available options:
WEBMANIA
Example:

"WEBMANIA"

Response

Invoice registered. new_invoice_ids holds the ids of the invoices created. When the key was already known, new_invoice_ids is empty and update_invoice_ids lists the existing keys (comma-separated string) that were re-synchronized instead.

new_invoice_ids
integer[]

Ids of the invoices created; empty when the key was already registered.

Example:
update_invoice_ids
string

Present only when the key was already registered; comma-separated list of the existing keys that were re-synchronized.

Example:

"00000000000000000000000000000000000000000000"