Docs

Orders

Retrieve your store's orders including line items, customer addresses, and fulfillment status.

List Orders

GET/api/v1/orders
Permission required: orders:read

Query Parameters

ParameterTypeDefaultDescription
marketstring | arrayNoneFilter orders by market. Pass a single value (market=US) or multiple (market[]=US&market[]=EU). Max 20 values, each a 2-letter country code.
limitinteger20Number of results per page. Range: 1–50.
pageinteger1Page number for pagination. Min: 1.
sort_fieldstringcreated_atField to sort by. Options: created_at, updated_at.
sort_orderstringDESCSort direction. Options: ASC, DESC.

Example Request

cURL
curl -X GET "https://api.storeep.com/v1/orders?market[]=US&market[]=EU&limit=5&sort_field=updated_at" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

200 OK
{
    "data": [
        {
            "id": 298437652918374563,
            "number": 1042,
            "subtotal": 59.98,
            "discount": 5.00,
            "shipping": 4.99,
            "vat": 0,
            "total": 59.97,
            "currency": "USD",
            "market": "US",
            "shipping_method": "Standard Shipping",
            "payment_method": "Credit Card",
            "status": "confirmed",
            "is_abandoned": false,
            "is_duplicated": false,
            "is_returning": false,
            "is_paid": true,
            "is_test": false,
            "created_at": "2025-02-10 08:15:00",
            "updated_at": "2025-02-10 09:30:00",
            "utm_source": "facebook",
            "utm_medium": "cpc",
            "utm_campaign": "summer_sale",
            "utm_term": null,
            "utm_content": "video_ad",
            "items": [
                {
                    "name": "Classic Cotton T-Shirt",
                    "price": 29.99,
                    "quantity": 2,
                    "sku": "SHIRT-M-BLUE",
                    "barcode": "1234567890123",
                    "weight": 0.25,
                    "variants": [
                        {
                            "type": "text",
                            "name": "Size",
                            "options": [{ "name": "M" }]
                        }
                    ]
                }
            ],
            "addresses": [
                {
                    "type": "shipping",
                    "fullname": "John Doe",
                    "firstname": "John",
                    "lastname": "Doe",
                    "company": null,
                    "address1": "123 Main St",
                    "address2": "Apt 4B",
                    "national_id": null,
                    "neighborhood": "Downtown",
                    "district": null,
                    "apartment": "4B",
                    "floor": "4",
                    "state_or_region": "California",
                    "city": "Los Angeles",
                    "commune": null,
                    "province": null,
                    "postal_code": "90001",
                    "phone": "+1234567890",
                    "whatsapp": null,
                    "link": null,
                    "color": null,
                    "note": "Leave at door"
                }
            ]
        }
    ],
    "meta": {
        "pagination": {
            "total": 230,
            "count": 5,
            "per_page": 5,
            "current_page": 1,
            "total_pages": 46,
            "links": {
                "next": "https://api.storeep.com/v1/orders?limit=5&sort_field=updated_at&page=2"
            }
        }
    }
}

Get Order

GET/api/v1/orders/{order_id}
Permission required: orders:read

Retrieve a single order by its id. The response holds the same order object the list endpoint returns, without the pagination wrapper. The list parameters (market, limit, page, sort_field and sort_order) do not apply here.

Example Request

cURL
curl -X GET "https://api.storeep.com/v1/orders/298437652918374563" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

200 OK
{
    "data": {
        "id": 298437652918374563,
        "number": 1042,
        "subtotal": 59.98,
        "discount": 5.00,
        "shipping": 4.99,
        "vat": 0,
        "total": 59.97,
        "currency": "USD",
        "market": "US",
        "shipping_method": "Standard Shipping",
        "payment_method": "Credit Card",
        "status": "confirmed",
        "is_abandoned": false,
        "is_duplicated": false,
        "is_returning": false,
        "is_paid": true,
        "is_test": false,
        "created_at": "2025-02-10 08:15:00",
        "updated_at": "2025-02-10 09:30:00",
        "utm_source": "facebook",
        "utm_medium": "cpc",
        "utm_campaign": "summer_sale",
        "utm_term": null,
        "utm_content": "video_ad",
        "items": [
            {
                "name": "Classic Cotton T-Shirt",
                "price": 29.99,
                "quantity": 2,
                "sku": "SHIRT-M-BLUE",
                "barcode": "1234567890123",
                "weight": 0.25,
                "variants": [
                    {
                        "type": "text",
                        "name": "Size",
                        "options": [{ "name": "M" }]
                    }
                ]
            }
        ],
        "addresses": [
            {
                "type": "shipping",
                "fullname": "John Doe",
                "firstname": "John",
                "lastname": "Doe",
                "company": null,
                "address1": "123 Main St",
                "address2": "Apt 4B",
                "national_id": null,
                "neighborhood": "Downtown",
                "district": null,
                "apartment": "4B",
                "floor": "4",
                "state_or_region": "California",
                "city": "Los Angeles",
                "commune": null,
                "province": null,
                "postal_code": "90001",
                "phone": "+1234567890",
                "whatsapp": null,
                "link": null,
                "color": null,
                "note": "Leave at door"
            }
        ]
    }
}
404 Not Found
{
    "status": "error",
    "errors": [
        "order not found"
    ]
}

Response Fields

Order Object

FieldTypeDescription
idintegerUnique order identifier.
numbernumberSequential order number.
subtotalfloatSubtotal before discounts and shipping.
discountfloatDiscount amount applied, 0 when there is none.
shippingfloatShipping cost, 0 when the order ships for free.
vatfloatVAT/tax amount, 0 when no VAT is charged.
totalfloatFinal order total.
currencystringCurrency code (e.g., "USD").
marketstringMarket the order was placed in.
shipping_methodstring | nullShipping method name.
payment_methodstring | nullPayment method used.
statusstringCurrent order status.
is_abandonedbooleanWhether the order was abandoned.
is_duplicatedbooleanWhether the order is a duplicate (matched a prior order within the last 5 days).
is_returningbooleanWhether the customer is returning (matched a prior order older than 5 days).
is_paidbooleanWhether payment has been received.
is_testbooleanWhether this is a test order.
created_atstringCreation timestamp (UTC).
updated_atstringLast update timestamp (UTC).
utm_sourcestring | nullCampaign source from the link the customer landed on (e.g., "facebook"). Null when the link had no UTM parameters.
utm_mediumstring | nullCampaign medium (e.g., "cpc").
utm_campaignstring | nullCampaign name.
utm_termstring | nullCampaign keyword.
utm_contentstring | nullCampaign content, used to tell ads apart.
itemsarrayLine items in the order.
addressesarrayShipping and billing addresses.

Item Object

FieldTypeDescription
namestringProduct name at time of purchase.
pricefloatUnit price.
quantityintegerNumber of units ordered.
skustring | nullStock keeping unit.
barcodestring | nullProduct barcode.
weightfloat | nullItem weight.
variantsarray | nullSelected variant options for this item.

Address Object

FieldTypeDescription
typestringAddress type (shipping or billing).
fullnamestring | nullThe name the customer gave, a first and last name form is stored joined.
firstnamestring | nullFirst word of fullname.
lastnamestring | nullThe rest of fullname after its first word, null for a one word name.
companystring | nullCompany name.
address1string | nullPrimary address line.
address2string | nullSecondary address line.
national_idstring | nullNational ID number.
neighborhoodstring | nullNeighborhood name.
districtstring | nullDistrict name.
apartmentstring | nullApartment number.
floorstring | nullFloor number.
state_or_regionstring | nullState or region.
citystring | nullCity.
communestring | nullCommune.
provincestring | nullProvince.
postal_codestring | nullPostal or ZIP code.
phonestring | nullPhone number.
whatsappstring | nullWhatsApp number.
linkstring | nullCustomer-provided URL.
colorstring | nullCustomer-selected color (hex).
notestring | nullCustomer delivery note.