Skip to main content

List Shipping Notes

Retrieve the shipping notes of your store, newest first, with filters and cursor-based pagination.


Endpoint​

GET /api/v3/shipping-notes

The list returns only the notes of your own store and never a note in pending status. See Which notes the API returns.


Request Examples​

# First page, 50 notes
curl -X GET "https://yourstore.publica.la/api/v3/shipping-notes?per_page=50" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"

# Notes on their way, with the buyer and the products to ship
curl -g -X GET "https://yourstore.publica.la/api/v3/shipping-notes?filter[status]=in-transit&include=user,products" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"

# The notes of one order, by your order identifier
curl -g -X GET "https://yourstore.publica.la/api/v3/shipping-notes?filter[order_external_id]=ORD-1001" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"

# Notes changed since a date, oldest change first
curl -g -X GET "https://yourstore.publica.la/api/v3/shipping-notes?filter[updated_at][from]=2026-11-20%2000:00:00&sort=updated_at" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"

Response​

The response to GET /api/v3/shipping-notes?per_page=50, trimmed to its first note:

{
"data": [
{
"id": "7215",
"uuid": "0d4e8a6b-3f21-4c9a-8e57-b1c2d3e4f5a6",
"status": "in-transit",
"type": "delivery",
"shipment_number": 1,
"period_length": 1,
"order_id": "1001",
"payment_id": "4003",
"amount": 5.5,
"currency_id": "USD",
"coupon_code": null,
"tracking_number": "TRK123456789",
"tracking_url": "https://tracking.example.com/TRK123456789",
"carrier": {
"id": "701",
"title": "Home delivery",
"description": "3 to 5 business days"
},
"recipient": {
"name": "Jane Buyer",
"national_id": "20123456789",
"phone": "+54 11 5555 0100",
"address_line_1": "Av. Example 123",
"address_line_2": null,
"city": "Buenos Aires",
"state": "C",
"country": "AR",
"postal_code": "C1001",
"other_information": null,
"extra_1": null,
"extra_2": null
},
"created_at": "2026-11-20T14:30:10.000000Z",
"updated_at": "2026-11-21T09:12:44.000000Z"
}
],
"links": {
"next": "https://yourstore.publica.la/api/v3/shipping-notes?per_page=50&cursor=eyJ...",
"prev": null
},
"meta": {
"has_more": true
}
}

Each item is a shipping note object. Without include, each item ends at updated_at.

Pagination Workflow​

  1. Make the first request without cursor.
  2. Follow links.next as it is: it already carries your other parameters.
  3. Stop when meta.has_more is false.
Best Practice

Always use meta.has_more to detect the end of results, not the number of items. These responses carry no total count.


Query Parameters​

Pagination​

ParameterTypeDefaultDescription
per_pageinteger100Items per page, an integer between 1 and 500. Any other value answers 422
cursorstring-Cursor token from links.next or links.prev

Sorting​

ParameterTypeDefaultDescription
sortstring-created_atOne sort field. Prefix with - for descending

Allowed sort fields: created_at, updated_at

sort takes one field. A list such as created_at,updated_at answers 422. Notes that share a sort value are ordered by id, so pages never repeat or skip a note.

Filters​

Each filter takes one value. A comma is part of that value, not a separator, so a filter cannot ask for two values at once: filter[status]=in-transit,delivered answers 422, and filter[order_external_id]=ORD,1001 finds only the order whose identifier is exactly ORD,1001. To read two statuses, send one request per status.

ParameterTypeDescription
filter[status]stringOne status: order-generated, in-transit, pickup, delivered, completed or cancelled. pending answers 422
filter[type]stringOne type: delivery or warehouse. An operator that dispatches only home deliveries sends filter[type]=delivery
filter[order_id]integerThe id of the order, as the Orders API returns it
filter[order_external_id]stringThe order's external_id, up to 64 characters
filter[user_id]integerThe buyer's internal ID
filter[user_external_id]stringThe buyer's external ID, up to 255 characters
filter[user_email]stringThe buyer's email, a valid email address up to 200 characters
filter[product_id]integerThe id of an entry of the products block. See Product filters
filter[product_external_id]stringThe external_id of an entry of the products block, up to 255 characters. See Product filters

filter[order_id], filter[user_id] and filter[product_id] take an integer. Any other value, such as 1001abc or a list like 1001,1002, answers 422.

Product Filters​

filter[product_id] and filter[product_external_id] return the notes whose order has a physical line with that product. They take the values of id and external_id in the products block:

Linefilter[product_id]filter[product_external_id]
contentThe content's IDThe content's external_id, or any other identifier of the content, compared without case and ignoring characters that are not letters or digits
subscriptionThe plan's IDThe plan's external_id

The filters do not take a line type. filter[product_id]=301 matches a content line whose content ID is 301 and a subscription line whose plan ID is 301.

The digital lines of the order are never matched: an order that ships a printed book and also sells an ebook is not found by the ebook's ID.

Date Range Filters​

# Notes created on November 20, 2026, the whole day in UTC
curl -g -X GET "https://yourstore.publica.la/api/v3/shipping-notes?filter[created_at][from]=2026-11-20%2000:00:00&filter[created_at][to]=2026-11-20%2023:59:59" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"
ParameterTypeDescription
filter[created_at][from]datetimeNotes whose created_at is at or after this moment
filter[created_at][to]datetimeNotes whose created_at is at or before this moment
filter[updated_at][from]datetimeNotes whose updated_at is at or after this moment
filter[updated_at][to]datetimeNotes whose updated_at is at or before this moment

Send dates in UTC, with no offset. Two forms work:

  • 2026-11-24 15:46:51
  • 2026-11-24T15:46:51.000000Z, the form of created_at and updated_at in the responses, so you can send back a value you received

A date without a time means 00:00:00 of that day. to=2026-11-20 leaves out the notes of November 20. To include that day, send to=2026-11-20 23:59:59.

A UTC offset is ignored

The API does not convert a value with an offset. It drops the offset and reads the clock time as UTC. to=2026-11-24T12:46:51-03:00 is the same instant as 15:46:51 UTC, but the API reads it as 12:46:51 UTC: it answers 200 and leaves out the notes of the next three hours, with no error.

Any saved change to a note moves its updated_at, a status change included. So filter[updated_at][from] with the updated_at of the last note of your previous sync returns every note that changed since then.

Included Blocks​

ParameterTypeDescription
includestringComma-separated: order, user, products, payment. See Included blocks

Fields Selection​

ParameterTypeDescription
fieldsstringComma-separated list of fields to return. Applied after include, so it cannot add a block alone

Errors​

StatusCondition
401Missing or invalid X-User-Token
403The store does not have the feature of the Orders API. See Requirements
422Invalid query parameter: per_page outside 1 to 500, an unknown sort field, an unknown filter, a filter value that breaks the rules above, an include other than order, user, products or payment, a start date after the end date, or a sort, filter or include of the wrong shape, such as include sent as an array

The messages of the errors this endpoint writes itself:

ParameterMessage
sortInvalid sort field. Allowed: created_at, updated_at
filter.<name>The selected filter.<name> is invalid.
includeInvalid include: <value>. Allowed: order, user, products, payment
filter.created_at.from or filter.updated_at.fromStart date must be before end date

For example, ?per_page=501&filter[created_at][from]=2026-02-01&filter[created_at][to]=2026-01-01 answers:

{
"message": "The per page may not be greater than 500. (and 1 more error)",
"errors": {
"per_page": ["The per page may not be greater than 500."],
"filter.created_at.from": ["Start date must be before end date"]
}
}

See Also​