Prerequisites
- A test store. Contact Cubbo’s support team or your account manager to create it. Run this quickstart there, never in your production account.
- The
client_idandclient_secretof an Open API integration created in the Cubbo app. See Set up your integration. - The
store_idof your test store. The app shows it under Authorized Stores when you create the integration. - At least one shipping method mapped in the integration. Its name is the
shipping_line_codeyou send with the order.
Steps
1
Get a token
Exchange your credentials for a bearer token. Tokens last up to 24 hours (
expires_in, in seconds).
Cache the token and reuse it until it expires: do not request a new one per call.2
Create a product
Register the product you will sell. Every field is described in Create a product.
skus and the barcode (upc) must be unique in the store. Send the weight
and dimensions so Cubbo can choose the right package and quote shipping. Grams are converted to kilograms.3
Check the inventory
List the store’s inventory and confirm the SKU appears.
A new product has no stock until the warehouse receives it. Send it with a replenishment
(
POST /v1/replenishments). An order for a product without stock waits in backorder until stock arrives.4
Create an order
Send the buyer’s shipping address and the products to ship. The response is the created order, including its Cubbo
order_number is your own reference and
must be unique within the store.id and its status.5
Follow the order
Poll
GET /v1/orders?store_id=1234&order_number=ORD-0001, or configure a
webhook and let Cubbo notify you when the order is fulfilled or its shipment changes.Next steps
Authentication
Token lifetime, store access and how unauthorized requests fail.
Create an order
Every field you can send with an order.
Errors
Status codes and the error body.
Webhooks
Events, payloads and signature verification.