> ## Documentation Index
> Fetch the complete documentation index at: https://sendcloud.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep your system in sync with your parcels and shipments

> Get parcel and shipment updates efficiently with event subscriptions, incremental polling, and lookups by ID.

Your integration must know when a parcel or shipment changes, for example when its status changes. This guide shows how to get these changes efficiently. It applies to these endpoints:

* API v2: [Retrieve parcels](https://sendcloud.dev/api/v2/parcels/retrieve-parcels.md) (`GET /api/v2/parcels`)
* API v3: [Retrieve shipments](https://sendcloud.dev/api/v3/shipments/retrieve-shipments.md) (`GET /api/v3/shipments`)

In API v3, each item is a shipment. A multicollo shipment contains all of its parcels.

Use these methods, in this order of preference:

1. [Event subscriptions](#use-event-subscriptions): Sendcloud sends each change to you.
2. [Incremental polling](#poll-for-changes-with-updated_after): you request only the items that changed since your last sync.
3. [Lookups by ID](#look-up-known-items-by-id): you request only the items that you know.

## Use event subscriptions

Let Sendcloud send each parcel status change to your endpoint one time. You do not need to poll for status changes.

* API v2: subscribe to the parcel status change webhook (action `parcel_status_changed`). See [Webhooks overview (API v2)](https://sendcloud.dev/api/v2/webhooks/index.md).
* API v3: use the [Event Subscriptions API](https://sendcloud.dev/api/v3/event-subscriptions/index.md) to subscribe to the `parcels.event.created` event with a `webhook` connection.

## Poll for changes with `updated_after`

If you must poll, request only the items that changed since your last sync. Use the `updated_after` filter.

**1. Save the sync start time**

Before you send the first request of a sync, save the current time.

**2. Request the changed items**

Send the start time of the previous sync as `updated_after`. Subtract a small overlap, for example 1 minute.

**3. Follow all pages**

Follow the pagination cursor until there is no next page.

**4. Update your data**

Insert or update each item by its ID. The overlap can return an item two times, so de-duplicate by ID.

**5. Save the new sync time**

When all pages are processed, save the time from step 1 for the next sync.

```http API v2 theme={null}
GET /api/v2/parcels?updated_after=2026-11-27T10:00:00Z&limit=100
```

```http API v3 theme={null}
GET /api/v3/shipments?updated_after=2026-11-27T10:00:00Z&page_size=100
```

### Pagination

Both endpoints use cursor-based pagination.

| | API v2 | API v3 |
| - | - | - |
| Next page | `next` URL in the response body | `next` link in the `Link` response header |
| Last page | `next` is `null` | No `next` link |
| Page size | `limit`, default 100, max 100 | `page_size`, default 40, max 100 |

Use the next page URL as you receive it. Do not build it yourself.

### Sort order

The list is always sorted newest-created first. You cannot change this order. The list is not sorted by update time.

Thus, do not stop early based on the order of the items. An item that was created a long time ago can be updated recently, and it can be on the last page. Always follow all pages.

### Time zones

Always send a time zone in `updated_after`, for example `2026-11-27T10:00:00Z`.

* API v3 requires a time zone.
* API v2 reads a value without a time zone in the time zone of your user account.

### Poll interval

A poll interval of some minutes is sufficient for most integrations. Do not poll every second.

### Example sync loop

```text Pseudocode theme={null}
last_sync = load_saved_sync_time()
sync_start = now()

url = "/api/v3/shipments?page_size=100&updated_after=" + iso8601(last_sync - 1 minute)
while url is not empty:
    response = GET url
    for item in response.items:
        upsert(item.id, item)            # insert or update by ID
    url = next_page_url(response)        # v2: body "next"; v3: "next" link in the Link header

save_sync_time(sync_start)
```

For API v2, use `/api/v2/parcels?limit=100&updated_after=...`. The items are in the `parcels` list of the response body.

## Look up known items by ID

When you create a parcel or shipment, save the ID from the create response. Then you can get the item directly.

Get one item:

```http API v2 theme={null}
GET /api/v2/parcels/{id}
```

```http API v3 theme={null}
GET /api/v3/shipments/{shipment_id}
```

Get up to 100 items in one request:

```http API v2 theme={null}
GET /api/v2/parcels?ids=123,456,789
```

```http API v3 theme={null}
GET /api/v3/shipments?shipment_uuids=<uuid1>,<uuid2>
GET /api/v3/shipments?ids=123,456
```

In API v3, `shipment_uuids` takes shipment IDs and `ids` takes parcel IDs.

Do not look up the same order again and again with `order_number`. Look up an order number one time, save the ID, and then use the ID or event subscriptions.

## Supported filters

The endpoints ignore parameters that they do not support. They do not return an error. They return the unfiltered list.

| Filter | API v2 | API v3 |
| - | - | - |
| `updated_after` | Yes | Yes |
| `updated_before` | No | Yes |
| `announced_after` | Yes | Yes |
| `announced_before` | No | Yes |
| `ids` (parcel IDs, max 100) | Yes | Yes |
| `shipment_uuids` (shipment IDs, max 100) | No | Yes |
| `order_number` (exact, case-insensitive) | Yes | Yes |
| `tracking_number` | Yes | Yes |
| `external_reference` | Yes | No |
| `external_reference_id` | No | Yes |
| `parcel_status` | Status ID | Status ID or name. A parent status also matches its child statuses. |
| `integration_id` | No | Yes |
| `errors=verbose-carrier` | Yes | No |

In API v2, an invalid `updated_after`, `announced_after` or `parcel_status` value returns an empty list, not an error. Make sure that your values are valid.

For all parameters, see the API reference for [API v2](https://sendcloud.dev/api/v2/parcels/retrieve-parcels.md) and [API v3](https://sendcloud.dev/api/v3/shipments/retrieve-shipments.md).

## Rate limits

See [Rate limits](https://sendcloud.dev/docs/getting-started/rate-limits.md).

## Mistakes to avoid

> [accordion] Paging through the full list on every sync
>
> Without `updated_after`, each sync reads all of your parcels or shipments again. This is slow, and you can reach the rate limit. Use [event subscriptions](#use-event-subscriptions) or [`updated_after`](#poll-for-changes-with-updated_after).

> [accordion] Re-reading a fixed date range on every sync
>
> Do not request the same period, for example the last 3 months, on every sync. Request only the changes since your last sync with `updated_after`.

> [accordion] Sending parameters that the endpoint does not support
>
> The endpoint ignores these parameters and returns the unfiltered list.
>
> * API v2 ignores `date_created_after`, `date_created_before` and `ordering`.
> * API v3 ignores `created_after`, `limit`, `ordering` and all other parameters that are not in [Supported filters](#supported-filters). For the page size in API v3, use `page_size`.

> [accordion] Polling one order number in a loop
>
> Do not request the same `order_number` again and again to check for changes. Save the ID and use [event subscriptions](#use-event-subscriptions), or include the item in your [incremental sync](#poll-for-changes-with-updated_after).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.