Skip to main content

Shipping Notes API Overview

Read the shipping notes of your store. A shipping note is one shipment of physical products that your store sends to the buyer or hands over at a pickup point. Publica.la creates the notes, and your store's staff change their status on the Shipments page of the dashboard. This API only reads them.

To be told when a note is created or its status changes, subscribe to the shipping_note.status_changed webhook. Use this API to read the notes you missed or to sync them in bulk.

Features​

  • List and get the shipping notes of your store
  • Filters by status, type, order, buyer, product and date ranges
  • Response shaping with include and fields to control the payload size
  • Cursor-based pagination of up to 500 notes per page

Authentication​

HeaderExampleDescription
X-User-Tokenyour-api-tokenAPI token generated in your dashboard (how). Header-only for security.
Acceptapplication/jsonRequired. Without it, errors come back as redirects or HTML pages instead of the status codes on this page

All requests must be performed over HTTPS.

curl -X GET "https://yourstore.publica.la/api/v3/shipping-notes" \
-H "X-User-Token: your-api-token" \
-H "Accept: application/json"

Requirements​

The Shipping Notes API needs the same store feature as the Orders API. On a store without it, every endpoint answers 403 Forbidden:

{
"message": "This action is unauthorized."
}

A request is checked in this order: the token (401), the store feature (403), the query parameters (422), and then the note in the URL (404). So an invalid include on a note that does not exist answers 422.


Endpoints​

MethodPathDescription
GET/api/v3/shipping-notesList shipping notes
GET/api/v3/shipping-notes/{shippingNote}Get a shipping note

{shippingNote} is the note's id.


Which Notes the API Returns​

Both endpoints return only the notes of your own store.

Notes in pending status are never returned: the list leaves them out, filter[status]=pending answers 422, and getting one by its id answers 404. Every other status is returned: order-generated, in-transit, pickup, delivered, completed and cancelled. See Statuses for what the dashboard shows for each one.


The Shipping Note Object​

A note of a home delivery, as ?include=order,user,products,payment returns it:

{
"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",
"order": {
"id": "1001",
"uuid": "9b2f6c1e-4a7d-4e8b-9f3a-2c5d8e1f0a42",
"external_id": "ORD-1001",
"type": "sale",
"status": "approved",
"unit_price": 32.48,
"currency_id": "USD",
"created_at": "2026-11-20T14:30:00.000000Z",
"updated_at": "2026-11-20T14:30:05.000000Z"
},
"user": {
"id": "501",
"uuid": "3e7a1d2c-8b4f-4c6e-a9d1-7f2b5c8e0d13",
"external_id": "USR-501",
"email": "[email protected]"
},
"products": [
{
"id": "301",
"external_id": "9780000000001",
"type": "content",
"name": "An Example Book",
"quantity": 1,
"unit_price": 13.49,
"currency_id": "USD"
},
{
"id": "302",
"external_id": "9780000000002",
"type": "content",
"name": "Another Example Book",
"quantity": 2,
"unit_price": 8.99,
"currency_id": "USD"
}
],
"payment": {
"recurring_cycle": null,
"tax": 0.95,
"tax_rate": 21
}
}
FieldTypeDescription
idstringShipping note ID
uuidstringShipping note UUID
statusstringAny status except pending. See Which notes the API returns
typestringdelivery for a delivery to an address, warehouse for a pickup at a pickup point
shipment_numberintegerNumber of this shipment among the notes of payment_id, starting at 1. On an annual plan, the number of the shipment within the paid year, from 1 to 12
period_lengthintegerShipments that payment_id pays for: 12 on an annual plan, 1 otherwise
order_idstringID of the order the note ships. It is the id of the order in the Orders API, not its uuid. To read the order with the note, use include=order
payment_idstringID of the shipping payment the note belongs to. An empty string (""), not null, when the note has no shipping payment
amountnumberShipping amount of this shipment, tax included, after the shipping discount of coupon_code
currency_idstringISO 4217 currency code of amount, and of payment.tax
coupon_codestring | nullCode of the coupon that discounted the shipping. null when no coupon discounted it
tracking_numberstring | nullTracking number of the parcel. null when the note has none
tracking_urlstring | nullURL to track the parcel. null when the note has none
carrierobjectThe shipping method the buyer chose. See Carrier and recipient
recipientobjectThe person who receives the shipment, and where. See Carrier and recipient
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 last update timestamp. A status change updates it
orderobjectIncluded block. See Order
userobjectIncluded block. See User
productsarrayIncluded block. See Products
paymentobjectIncluded block. See Payment

Carrier and Recipient​

carrier and recipient are the note's snapshot of the order's shipping details, taken when the note is created.

carrier:

FieldTypeDescription
idstringCarrier ID
titlestring | nullName of the carrier or pickup point
descriptionstring | nullDescription of the carrier, such as a delivery time or a pickup point's address. null when empty

recipient has these fields, each a string or null. An empty value comes back as null.

FieldDescription
nameName of the person who receives the shipment
national_idNational ID number
phonePhone number
address_line_1First line of the address
address_line_2Second line of the address
cityCity
stateState or province, usually a subdivision code without the country prefix, such as C
countryISO 3166-1 alpha-2 country code
postal_codePostal code
other_informationAdditional information the buyer entered
extra_1First extra field of your store's shipping settings
extra_2Second extra field of your store's shipping settings

On a pickup note (type warehouse), the address fields are always null: every field except name, national_id and phone.


Included Blocks​

include takes any combination of order, user, products and payment, separated by commas. Without include, each note ends at updated_at. Any other value answers 422:

{
"message": "Invalid include: shipments. Allowed: order, user, products, payment",
"errors": {
"include": [
"Invalid include: shipments. Allowed: order, user, products, payment"
]
}
}

order​

The order the note ships, with the same fields as the base order of the Orders API: id, uuid, external_id, type, status, unit_price, currency_id, created_at and updated_at. It carries none of the Orders API's own included blocks.

user​

The buyer of the order: id, uuid, external_id and email. id is a string.

products​

The physical lines of the order, sorted by line. The digital lines of the same order are left out. Every note of an order lists the same lines, so a subscription that ships every month lists its plan on each note.

FieldTypeDescription
idstringFor a content line, the ID of the content. For a subscription line, the plan ID
external_idstring | nullFor a content line, the content's primary identifier, such as its ISBN. For a subscription line, the plan's external_id
typestringcontent or subscription
namestringName of the content or the plan
quantityintegerUnits on the line
unit_pricenumber | nullPrice of one unit
currency_idstringISO 4217 currency code of unit_price

payment​

The shipping payment payment_id as it applies to this note:

FieldTypeDescription
recurring_cycleinteger | nullBilling cycle of the shipping payment payment_id. null when that payment has no cycle
taxnumber | nullThe part of the shipping payment's tax that this note's amount covers, not the tax of the whole payment. See the example below
tax_ratenumber | nullTax rate of the shipping payment, as a percentage. It reads 0 when the gateway computed the tax (Stripe Tax), so rely on tax

payment.tax is not the tax of the whole payment. It is the share of that tax that matches the note's amount, in the currency of currency_id. For example, a shipping payment of 20 with a tax of 1.74 and a note with an amount of 10 give payment.tax 0.87, because the note covers 10 of the 20.

When the note has no shipping payment, payment is not null: it is {"recurring_cycle": null, "tax": null, "tax_rate": null}.

The fields Parameter​

fields keeps only the top-level keys you name, separated by commas, and ignores names that do not exist. It applies after include, so it can leave out a block you included, but it never adds a block you did not include. ?include=user,order&fields=id,user returns only id and user.


Errors​

Error messages are always in English, whatever the language of your store. A 422 answers with the first error in message and every error under its parameter in errors.

StatusCondition
401Missing or invalid X-User-Token. See the Orders API errors for the messages
403The store does not have the feature of the Orders API. See Requirements
404The note does not exist, is pending, belongs to another store, or the id is not made only of digits. See Get a shipping note
422Invalid query parameter. See List shipping notes and Get a shipping note

Rate Limiting​

The limits of the rest of the API apply, and every request to these endpoints counts against the daily read quota. See the API Overview.


See Also​