Invoices
The fiscal documents of the orders: an invoice of a sale, a credit note that corrects one. Where invoicing.mode is EXTERNAL, an ERP or the issuer of a Brazilian NF-e issues each document itself and attaches it to its order here — number, series, access key, date, amounts and links to its files; read the orders that changed by update_time to know what to issue.
List invoices
Lists the website's documents, the most recently issued first. filter takes order_id — the documents of one order — type (type = "CREDIT_NOTE"), origin, number and issue_time (issue_time >= "2026-11-01T00:00:00Z" for a period); order_by takes issue_time and number.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: issue_time desc. Sortable: issue_time, number.
filterAIP-160 subset (§8). Filterable: issue_time, number, order_id, origin, type. A field outside the list is INVALID_ARGUMENT.
List invoices › Responses
One page of invoices.
This page of invoices, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create invoice
Creates a document of an order of the website — how depends on invoicing.mode.
Where it is ISSUED, MooverApp issues the document itself — as it does on its own at the order's first payment or fulfillment and at each refund after it, while invoicing.auto_issue is on. {"order_id": "…"} issues the order's invoice (SALES_INVOICE), before its payment as well: the order as it is then, copied — the seller from invoicing.seller_*, the buyer from the order's billing address and tax_id, each line's units and amount less what its refunds gave back — numbered next in the invoices' series (INV-1, INV-2, … with invoicing.invoice_number_prefix) and never changed. {"order_id": "…", "refund_id": "…"} issues the credit note of a refund made after the invoice: the refund's lines and tax, the invoice's number and date, numbered in the credit notes' own series (CN-1, …). FAILED_PRECONDITION answers when the document is issued already (INVOICE_EXISTS, naming it), the seller's legal name or address is empty (SELLER_DETAILS_MISSING, naming the setting), the order has nothing left to invoice (NOTHING_TO_INVOICE), it has no invoice for a credit note to correct (INVOICE_MISSING) or its invoice counts the refund already (REFUND_INVOICED); a refund_id the order has not is INVALID_ARGUMENT. While invoicing.send_to_customer is on, the document goes to the customer by email at once — the invoice_issued or credit_note_issued template of the order's view, the document whole in it — and the answer carries its send_time; an email that cannot be handed over for sending leaves send_time empty, and :send sends it later.
Where it is EXTERNAL, a document an outside system issued — an ERP, the issuer of an NF-e — is attached: order_id, number, issue_time and total required; type (SALES_INVOICE unless you send CREDIT_NOTE), series, access_key, tax_total and up to 5 files optional. The document copies the order's order_number, customer_id and currency_code, and its origin is EXTERNAL; an order may have several. A credit note names the invoice of the same order it corrects in corrected_invoice_id — whose number and date it copies — and may name the order's refund it gives back in refund_id. A document of an order shipped to Brazil needs its NF-e's access_key, 44 digits with a valid check digit. INVALID_ARGUMENT answers, one violation a field: a field missing or malformed, total or tax_total in another currency than the order's, a file address that is not https or longer than 2000 characters, more than 5 files, a credit note without the invoice it corrects, a refund_id the order has not. An access key the website has a document of already answers ALREADY_EXISTS.
A body of the other mode — an outside document's fields where MooverApp issues, an order alone where an outside system does — answers FAILED_PRECONDITION INVOICING_MODE with the mode; an order_id that names no order, NOT_FOUND. {"request_id": "…"} makes the call safe to repeat: a repeat answers the document it wrote. Answers 201 and the document.
path Parameters
website_idId of the parent website.
Create invoice › Request Body
order_idThe order the document is of — websites/{website}/orders/{order_id}. Required on create — attaching a document or asking MooverApp to issue one — and an id that names no order of the website answers NOT_FOUND. order_id = "…" lists the documents of one order.
typeWhat the document is: SALES_INVOICE — an invoice of the order's sale — or CREDIT_NOTE — a document that corrects one, money given back (an NF-e de devolução): it names the invoice it corrects in corrected_invoice_id. Attaching one, SALES_INVOICE unless you send otherwise; asking MooverApp to issue one, a CREDIT_NOTE with a refund_id and a SALES_INVOICE without.
numberThe document's number: as its issuer wrote it — an NF-e's nNF — up to 64 characters on one line, required when attaching one; an issued document's is its series' prefix and sequence_number (INV-1, CN-1), never sent. number = "…" finds a document by it.
issue_timeWhen the document was issued, RFC 3339 — required when attaching one; an issued document's is when MooverApp issued it. The list's default order, the newest first; issue_time >= "…" and issue_time < "…" cut a period.
totalWhat the document comes to, a google.type.Money in the order's currency (INVALID_ARGUMENT on total.currency_code otherwise) — required when attaching one. An issued invoice's is the order's current_total when it was issued; an issued credit note's, its refund's total.
tax_totalThe document's tax, a google.type.Money in the order's currency and at most total; absent on an attached document that gave none.
refund_idA credit note's: the refund of the order it gives back — the id of one of the order's refunds, else INVALID_ARGUMENT. Refused on an invoice of the sale. Asking MooverApp to issue a document, it asks for the credit note of that refund.
corrected_invoice_idA credit note's: the invoice it corrects — the id of a SALES_INVOICE document of the same order, else INVALID_ARGUMENT. Required on a credit note, refused on an invoice of the sale.
seriesAn attached document's series, where its issuer numbers in several — an NF-e's serie: up to 16 characters on one line.
access_keyAn NF-e's access key (chave de acesso): 44 digits, without spaces or dots, the last the check digit of the 43 before it, modulo 11 — INVALID_ARGUMENT otherwise. Required on a document of an order shipped to Brazil. One document per key on the website: a key attached already answers ALREADY_EXISTS.
filesWhere the outside system keeps the document — the DANFE and the XML of an NF-e: [{format, uri}], at most 5, format PDF, XML or OTHER, uri an https address of at most 2000 characters. MooverApp keeps the links, never the files: the shop and its customer open them where they are.
request_idAn idempotency key you choose, at most 64 characters. Creating with a key the website already has a document of answers that document and writes nothing again.
Create invoice › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
order_idThe order the document is of — websites/{website}/orders/{order_id}. Required on create — attaching a document or asking MooverApp to issue one — and an id that names no order of the website answers NOT_FOUND. order_id = "…" lists the documents of one order.
order_numberThe order's number, copied when the document was written.
customer_idThe website's customer who placed the order, copied from it; absent on a guest's order.
typeWhat the document is: SALES_INVOICE — an invoice of the order's sale — or CREDIT_NOTE — a document that corrects one, money given back (an NF-e de devolução): it names the invoice it corrects in corrected_invoice_id. Attaching one, SALES_INVOICE unless you send otherwise; asking MooverApp to issue one, a CREDIT_NOTE with a refund_id and a SALES_INVOICE without.
originWho issued the document: EXTERNAL — an outside system, an ERP or the issuer of an NF-e, attached it here, when the website's invoicing.mode is EXTERNAL; ISSUED — MooverApp issued it itself, when the mode is ISSUED.
numberThe document's number: as its issuer wrote it — an NF-e's nNF — up to 64 characters on one line, required when attaching one; an issued document's is its series' prefix and sequence_number (INV-1, CN-1), never sent. number = "…" finds a document by it.
issue_timeWhen the document was issued, RFC 3339 — required when attaching one; an issued document's is when MooverApp issued it. The list's default order, the newest first; issue_time >= "…" and issue_time < "…" cut a period.
currency_codeThe currency of every amount of the document: the order's.
totalWhat the document comes to, a google.type.Money in the order's currency (INVALID_ARGUMENT on total.currency_code otherwise) — required when attaching one. An issued invoice's is the order's current_total when it was issued; an issued credit note's, its refund's total.
tax_totalThe document's tax, a google.type.Money in the order's currency and at most total; absent on an attached document that gave none.
refund_idA credit note's: the refund of the order it gives back — the id of one of the order's refunds, else INVALID_ARGUMENT. Refused on an invoice of the sale. Asking MooverApp to issue a document, it asks for the credit note of that refund.
corrected_invoice_idA credit note's: the invoice it corrects — the id of a SALES_INVOICE document of the same order, else INVALID_ARGUMENT. Required on a credit note, refused on an invoice of the sale.
corrected_invoice_numberA credit note's: the number of the invoice it corrects, copied from it.
corrected_invoice_issue_timeA credit note's: the issue_time of the invoice it corrects, copied from it.
send_timeWhen the document was last emailed to the customer — at its issue while invoicing.send_to_customer is on, and at each :send; absent while it has not been. Only a document MooverApp issued is ever sent.
actorWho wrote the document: {type, id?} — type USER and id the user of the account whose token attached it, or SYSTEM for one MooverApp issued on a fact of the order.
sequence_numberAn ISSUED document's place in the series of its type — the invoices and the credit notes are counted apart, from 1, without gaps.
sellerAn ISSUED document's seller: {legal_name, address, tax_id?}, a copy of the website's invoicing.seller_* settings when it was issued.
buyerAn ISSUED document's buyer: {display_name, address, tax_id?} — the order's billing name and address and the customer's tax number ({type, value}), copied when it was issued.
linesAn ISSUED document's lines: [{kind, display_name, sku, quantity, unit_price, amount, tax_rate?, tax_amount?}], its own copy of what it bills or credits, never changed after. kind is PRODUCT for a product of the order and SHIPPING for the order's shipping — the way to ship's name, no SKU, one unit at the order's shipping_total, less what refunds gave back of it.
tax_linesAn ISSUED document's tax by name and rate, the highest rate first: [{display_name, rate, amount}], rate a percentage as a decimal string.
subtotalWhat an ISSUED document's lines come to, a google.type.Money.
prices_include_taxWhether an ISSUED document's prices hold the tax, as the order's did.
footer_noteWhat an ISSUED document prints under its lines: a copy of invoicing.footer_note.
included_refund_idsAn ISSUED invoice's: the ids of the order's refunds made before it was issued — its lines count them already, so none of them is given a credit note. Every refund after it is.
seriesAn attached document's series, where its issuer numbers in several — an NF-e's serie: up to 16 characters on one line.
access_keyAn NF-e's access key (chave de acesso): 44 digits, without spaces or dots, the last the check digit of the 43 before it, modulo 11 — INVALID_ARGUMENT otherwise. Required on a document of an order shipped to Brazil. One document per key on the website: a key attached already answers ALREADY_EXISTS.
filesWhere the outside system keeps the document — the DANFE and the XML of an NF-e: [{format, uri}], at most 5, format PDF, XML or OTHER, uri an https address of at most 2000 characters. MooverApp keeps the links, never the files: the shop and its customer open them where they are.
Get invoice
A fiscal document of an order: an invoice of its sale or a credit note that corrects one. Where the website's invoicing.mode is EXTERNAL, an outside system — an ERP, the issuer of a Brazilian NF-e — issues the document itself and attaches it here: its number, series, access key, date, amounts and the links to its files; an order may have several. Where the mode is ISSUED, MooverApp issues them: an order's invoice at its first payment or fulfillment and a credit note at each refund after it, or when you ask, each numbered in its own series and copying the order, the seller and the buyer as they were then. A document is never edited: an attached one is deleted and attached again, an issued one corrected by a credit note.
path Parameters
website_idId of the parent website.
invoice_idId of the parent invoice.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get invoice › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
order_idThe order the document is of — websites/{website}/orders/{order_id}. Required on create — attaching a document or asking MooverApp to issue one — and an id that names no order of the website answers NOT_FOUND. order_id = "…" lists the documents of one order.
order_numberThe order's number, copied when the document was written.
customer_idThe website's customer who placed the order, copied from it; absent on a guest's order.
typeWhat the document is: SALES_INVOICE — an invoice of the order's sale — or CREDIT_NOTE — a document that corrects one, money given back (an NF-e de devolução): it names the invoice it corrects in corrected_invoice_id. Attaching one, SALES_INVOICE unless you send otherwise; asking MooverApp to issue one, a CREDIT_NOTE with a refund_id and a SALES_INVOICE without.
originWho issued the document: EXTERNAL — an outside system, an ERP or the issuer of an NF-e, attached it here, when the website's invoicing.mode is EXTERNAL; ISSUED — MooverApp issued it itself, when the mode is ISSUED.
numberThe document's number: as its issuer wrote it — an NF-e's nNF — up to 64 characters on one line, required when attaching one; an issued document's is its series' prefix and sequence_number (INV-1, CN-1), never sent. number = "…" finds a document by it.
issue_timeWhen the document was issued, RFC 3339 — required when attaching one; an issued document's is when MooverApp issued it. The list's default order, the newest first; issue_time >= "…" and issue_time < "…" cut a period.
currency_codeThe currency of every amount of the document: the order's.
totalWhat the document comes to, a google.type.Money in the order's currency (INVALID_ARGUMENT on total.currency_code otherwise) — required when attaching one. An issued invoice's is the order's current_total when it was issued; an issued credit note's, its refund's total.
tax_totalThe document's tax, a google.type.Money in the order's currency and at most total; absent on an attached document that gave none.
refund_idA credit note's: the refund of the order it gives back — the id of one of the order's refunds, else INVALID_ARGUMENT. Refused on an invoice of the sale. Asking MooverApp to issue a document, it asks for the credit note of that refund.
corrected_invoice_idA credit note's: the invoice it corrects — the id of a SALES_INVOICE document of the same order, else INVALID_ARGUMENT. Required on a credit note, refused on an invoice of the sale.
corrected_invoice_numberA credit note's: the number of the invoice it corrects, copied from it.
corrected_invoice_issue_timeA credit note's: the issue_time of the invoice it corrects, copied from it.
send_timeWhen the document was last emailed to the customer — at its issue while invoicing.send_to_customer is on, and at each :send; absent while it has not been. Only a document MooverApp issued is ever sent.
actorWho wrote the document: {type, id?} — type USER and id the user of the account whose token attached it, or SYSTEM for one MooverApp issued on a fact of the order.
sequence_numberAn ISSUED document's place in the series of its type — the invoices and the credit notes are counted apart, from 1, without gaps.
sellerAn ISSUED document's seller: {legal_name, address, tax_id?}, a copy of the website's invoicing.seller_* settings when it was issued.
buyerAn ISSUED document's buyer: {display_name, address, tax_id?} — the order's billing name and address and the customer's tax number ({type, value}), copied when it was issued.
linesAn ISSUED document's lines: [{kind, display_name, sku, quantity, unit_price, amount, tax_rate?, tax_amount?}], its own copy of what it bills or credits, never changed after. kind is PRODUCT for a product of the order and SHIPPING for the order's shipping — the way to ship's name, no SKU, one unit at the order's shipping_total, less what refunds gave back of it.
tax_linesAn ISSUED document's tax by name and rate, the highest rate first: [{display_name, rate, amount}], rate a percentage as a decimal string.
subtotalWhat an ISSUED document's lines come to, a google.type.Money.
prices_include_taxWhether an ISSUED document's prices hold the tax, as the order's did.
footer_noteWhat an ISSUED document prints under its lines: a copy of invoicing.footer_note.
included_refund_idsAn ISSUED invoice's: the ids of the order's refunds made before it was issued — its lines count them already, so none of them is given a credit note. Every refund after it is.
seriesAn attached document's series, where its issuer numbers in several — an NF-e's serie: up to 16 characters on one line.
access_keyAn NF-e's access key (chave de acesso): 44 digits, without spaces or dots, the last the check digit of the 43 before it, modulo 11 — INVALID_ARGUMENT otherwise. Required on a document of an order shipped to Brazil. One document per key on the website: a key attached already answers ALREADY_EXISTS.
filesWhere the outside system keeps the document — the DANFE and the XML of an NF-e: [{format, uri}], at most 5, format PDF, XML or OTHER, uri an https address of at most 2000 characters. MooverApp keeps the links, never the files: the shop and its customer open them where they are.
Delete invoice
Deletes a document an outside system attached (origin EXTERNAL): the document itself lives in that system, and attaching it again is a Create. A document MooverApp issued (origin ISSUED) is never deleted — a credit note corrects it — and answers FAILED_PRECONDITION INVOICE_ISSUED.
path Parameters
website_idId of the parent website.
invoice_idId of the parent invoice.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete invoice › Responses
Deleted. No body (§7).
Send (invoice)
Sends a document MooverApp issued (origin ISSUED) to the customer by email again — to the order's email, in the language of the view it was placed on, from the website's invoice_issued or credit_note_issued template (the built-in English email when it has none) — whatever invoicing.send_to_customer says, and sets its send_time. The email says what the document says: its own copy of the seller, the buyer, the lines and the tax, never the order as it is now. A document an outside system attached answers FAILED_PRECONDITION INVOICE_EXTERNAL: sending it is that system's. When the email cannot be handed over for sending, it answers UNAVAILABLE and nothing changes; try again later. {"request_id": "…"} makes the call safe to repeat: a repeat of the last send's key answers the document and sends nothing. The body is optional otherwise. Answers the document as it is after.
path Parameters
website_idId of the parent website.
invoice_idId of the parent invoice.
Send (invoice) › Request Body optional
Send (invoice) › Responses
The affected resource, or the method’s own response object (§10).