List orders waiting for an NF-e
curl --request GET \
--url https://api.cubbo.com/v1/orders/awaiting-invoice \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cubbo.com/v1/orders/awaiting-invoice"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cubbo.com/v1/orders/awaiting-invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cubbo.com/v1/orders/awaiting-invoice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cubbo.com/v1/orders/awaiting-invoice"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cubbo.com/v1/orders/awaiting-invoice")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/orders/awaiting-invoice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"id": 987654,
"store_id": 1234,
"order_number": "ORD-0001",
"status": "packing",
"order_type": "SALE",
"channel_created_at": "2026-01-10T14:02:11.000Z",
"order_date": "2026-01-10T14:02:11.000Z",
"shipping_date": null,
"pending_at": "2026-01-10T14:05:00.000Z",
"shipping_email": "buyer@example.com",
"shipping_status": null,
"is_paid": true,
"channel_order_id": "5566778899",
"is_cod": false,
"currency": "BRL",
"total_price": "199.9",
"discount_price": "0.0",
"buyer_shipping_price": "15.0",
"extra_fees_price": "0.0",
"shipping": {
"first_name": "Ana",
"last_name": "Example",
"company": null,
"phone": "+5511900000000",
"address_1": "Rua Exemplo",
"address_2": null,
"email": "buyer@example.com",
"zip_code": "01000-000",
"country": "BR",
"state": "SP",
"city": "Sao Paulo",
"number": "10",
"interior_number": null,
"neighborhood": "Centro",
"references": null
},
"billing": {
"first_name": "Ana",
"last_name": "Example",
"company": null,
"phone": "+5511900000000",
"tax_id": "000.000.000-00",
"tax_regime": null,
"state_registration": null,
"address_1": "Rua Exemplo",
"address_2": null,
"number": "10",
"interior_number": null,
"neighborhood": "Centro",
"email": "buyer@example.com",
"zip_code": "01000-000",
"country": "BR",
"state": "SP",
"city": "Sao Paulo"
},
"integration_details": null,
"order_lines": [
{
"id": 5551,
"name": "Red T-shirt M",
"sku": "SKU-RED-M",
"quantity": 1,
"generated": false,
"price_per_item": "199.9",
"discount_per_item": "0.0",
"product": {
"id": 777,
"name": "Red T-shirt M",
"billing_name": "T-shirt",
"description": null,
"has_imei": false,
"is_fragile": false,
"is_kit": false,
"bar_code": "7890000000001",
"is_dropshipping": false,
"is_scannable": true,
"price": "199.9",
"weight": 0.3,
"product_codes": [
{
"id": 9001,
"sku": "SKU-RED-M"
}
]
},
"picked_sku_quantities": [
{
"lot_id": 301,
"lot_sku": "123456",
"quantity": 1,
"lot_unique_code": "123456-LOT01",
"replenishment_invoice_key": "00000000000000000000000000000000000000000000",
"replenishment_id": 2201
}
]
}
],
"related_replenishments": [
{
"replenishment_id": 2201,
"invoice_key": "00000000000000000000000000000000000000000000"
}
]
}
],
"meta": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_pages": 1,
"first_page": true,
"last_page": true,
"per_page": 10,
"total_count": 1
}
}Orders
List orders waiting for an NF-e
Brazil only. Returns the orders of a store that have been picked (or are about to be) and do not yet
have an approved NF-e, so your fiscal system can issue the invoice and attach it with
POST /orders/{order_id}/attach-invoice. Each order
includes its lines, the picked quantities per lot and the replenishment invoices those lots came
from, which lets you reference the inbound NF-e on the outbound one.
- By default (
only_picked_orders=true) only orders inpackingare returned. Withonly_picked_orders=false, orders inpending,processing,pickingandpackingare included. - Orders are sorted by the time of their last status change, oldest first.
- Orders with an approved NF-e are excluded. Use
order_idsto restrict the result to specific orders. picked_sku_quantitieson each line groups the picked units by lot;related_replenishmentson each order lists the replenishment NF-e keys of those lots. Orders whose picked lot codes cannot be parsed into a material code are omitted from the page (but still counted inmeta.total_count).integration_detailscarries the raw sales-channel order for AnyMarket integrations and isnullotherwise.
GET
/
orders
/
awaiting-invoice
List orders waiting for an NF-e
curl --request GET \
--url https://api.cubbo.com/v1/orders/awaiting-invoice \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cubbo.com/v1/orders/awaiting-invoice"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cubbo.com/v1/orders/awaiting-invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cubbo.com/v1/orders/awaiting-invoice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cubbo.com/v1/orders/awaiting-invoice"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cubbo.com/v1/orders/awaiting-invoice")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/orders/awaiting-invoice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"id": 987654,
"store_id": 1234,
"order_number": "ORD-0001",
"status": "packing",
"order_type": "SALE",
"channel_created_at": "2026-01-10T14:02:11.000Z",
"order_date": "2026-01-10T14:02:11.000Z",
"shipping_date": null,
"pending_at": "2026-01-10T14:05:00.000Z",
"shipping_email": "buyer@example.com",
"shipping_status": null,
"is_paid": true,
"channel_order_id": "5566778899",
"is_cod": false,
"currency": "BRL",
"total_price": "199.9",
"discount_price": "0.0",
"buyer_shipping_price": "15.0",
"extra_fees_price": "0.0",
"shipping": {
"first_name": "Ana",
"last_name": "Example",
"company": null,
"phone": "+5511900000000",
"address_1": "Rua Exemplo",
"address_2": null,
"email": "buyer@example.com",
"zip_code": "01000-000",
"country": "BR",
"state": "SP",
"city": "Sao Paulo",
"number": "10",
"interior_number": null,
"neighborhood": "Centro",
"references": null
},
"billing": {
"first_name": "Ana",
"last_name": "Example",
"company": null,
"phone": "+5511900000000",
"tax_id": "000.000.000-00",
"tax_regime": null,
"state_registration": null,
"address_1": "Rua Exemplo",
"address_2": null,
"number": "10",
"interior_number": null,
"neighborhood": "Centro",
"email": "buyer@example.com",
"zip_code": "01000-000",
"country": "BR",
"state": "SP",
"city": "Sao Paulo"
},
"integration_details": null,
"order_lines": [
{
"id": 5551,
"name": "Red T-shirt M",
"sku": "SKU-RED-M",
"quantity": 1,
"generated": false,
"price_per_item": "199.9",
"discount_per_item": "0.0",
"product": {
"id": 777,
"name": "Red T-shirt M",
"billing_name": "T-shirt",
"description": null,
"has_imei": false,
"is_fragile": false,
"is_kit": false,
"bar_code": "7890000000001",
"is_dropshipping": false,
"is_scannable": true,
"price": "199.9",
"weight": 0.3,
"product_codes": [
{
"id": 9001,
"sku": "SKU-RED-M"
}
]
},
"picked_sku_quantities": [
{
"lot_id": 301,
"lot_sku": "123456",
"quantity": 1,
"lot_unique_code": "123456-LOT01",
"replenishment_invoice_key": "00000000000000000000000000000000000000000000",
"replenishment_id": 2201
}
]
}
],
"related_replenishments": [
{
"replenishment_id": 2201,
"invoice_key": "00000000000000000000000000000000000000000000"
}
]
}
],
"meta": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_pages": 1,
"first_page": true,
"last_page": true,
"per_page": 10,
"total_count": 1
}
}