Postcodes / Zipcodes
Postcodes are user-scoped and domain-scoped. For Amazon domains, creating a postcode triggers asynchronous cookie generation in a background thread; the record starts with status `in-progress` and becomes `active` once cookies are ready. For non-scraping domains (REST API / CSV import) the postcode is immediately set `active`.
Create Zipcode
https://multicartapi.com/api/v1/zipcodes/create-zipcode/Create a new postcode for a domain; triggers background cookie generation for Amazon (scraping) domains.
curl "https://multicartapi.com/api/v1/zipcodes/create-zipcode/" \
-X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": 1, "zipcode": "4500"}'Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | integer | Required | Domain ID (from /settings/domains/) |
zipcode | string | Required | Postcode value e.g. "4500" |
{"domain": 1, "zipcode": "4500"}{"code": 200, "data": {"id": 15, "zipcode": "4500", "domain": {"id": 1, "domain": "amazon.com.au", "supplier_type": "scraping"}, "status": "in-progress", "created_at": "2026-06-20T10:00:00Z", "updated_at": "2026-06-20T10:00:00Z"}, "status": 1}Notes
List Zipcodes
https://multicartapi.com/api/v1/zipcodes/get-zipcodes/List all zipcodes belonging to the authenticated user, with optional filters by status or domain.
curl "https://multicartapi.com/api/v1/zipcodes/get-zipcodes/" \
-X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "active", "domain": 1}'Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | Optional | Filter by status: active, pending, in-progress, inactive, or failed |
domain | integer | Optional | Filter by domain ID |
{"status": "active", "domain": 1}{"code": 200, "data": [{"id": 15, "zipcode": "4500", "domain": {"id": 1, "domain": "amazon.com.au", "country_code": "AU", "supplier_type": "scraping", "status": "active"}, "status": "active", "created_at": "2026-06-20T10:00:00Z", "updated_at": "2026-06-20T10:05:00Z"}], "status": 1}Notes
Update Zipcode
https://multicartapi.com/api/v1/zipcodes/update-zipcode/Partially update the domain or postcode value of an existing zipcode record.
curl "https://multicartapi.com/api/v1/zipcodes/update-zipcode/" \
-X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"zipcode_id": 15, "zipcode": "2000"}'Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
zipcode_id | integer | Required | Zipcode row ID to update |
domain | integer | Optional | New domain ID |
zipcode | string | Optional | New postcode value |
{"zipcode_id": 15, "zipcode": "2000"}{"code": 200, "data": {"id": 15, "zipcode": "2000", "domain": {"id": 1, "domain": "amazon.com.au"}, "status": "in-progress", "updated_at": "2026-06-20T11:00:00Z"}, "status": 1}Notes
Delete Zipcode
https://multicartapi.com/api/v1/zipcodes/delete-zipcode/Permanently delete a zipcode record by its row ID.
curl "https://multicartapi.com/api/v1/zipcodes/delete-zipcode/" \
-X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"zipcode_id": 15}'Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
zipcode_id | integer | Required | Zipcode row ID to delete |
{"zipcode_id": 15}{"code": 200, "data": "Zipcode deleted successfully.", "status": 1}Notes
Search Zipcodes
https://multicartapi.com/api/v1/zipcodes/search-zipcodes/Search the authenticated user's zipcodes by partial postcode value or domain name.
curl "https://multicartapi.com/api/v1/zipcodes/search-zipcodes/" \
-X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"search": "450"}'Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | Optional | Partial match string applied against the zipcode value and domain name fields. Omit or pass an empty string to return all records. |
{"search": "450"}{"code": 200, "data": [{"id": 15, "zipcode": "4500", "domain": {"id": 1, "domain": "amazon.com.au"}, "status": "active", "created_at": "2026-06-20T10:00:00Z", "updated_at": "2026-06-20T10:05:00Z"}], "status": 1}Notes
