Fictional API example. This page demonstrates documentation features; its operations do not describe a live service.
This reference is generated from the OpenAPI description. It shows the operation contract; follow any related guides below for task steps and context.
OpenAPI for this operation: Download JSON.
GET /Search/parcels/{scope}
List parcel records
List records for an account or region. Use downloadAs to request a
file; the same successful status can return JSON, CSV, or a spreadsheet.
Servers
https://sandbox.api.cedar-parcel.example/v1 — Sandbox
https://api.cedar-parcel.example/v1 — Production
Authentication
Use one of these authentication options:
Bearer token
HTTP bearer (JWT).
Short-lived service token.
API key
API key in header X-Parcel-Key.
Long-lived account key.
Parameters
scope (path)
Required
The account or region identifier.
string
Default example: "region-demo"
Filters (query)
Optional
OpenAPI calls this placeholder parameters. Send a filter expression directly in the query string, without parameters=.
Query form: ?declaredValue(gt)=100. Replace the field, operator, and value for your filter.
Source notes, accepted fields, and operators
Placeholder for field/operator filters. Do not send parameters=.
Put each expression directly in the URL, for example
declaredValue(gt)=100.
Accepted fields: createdAt (gt, ge, lt, le, eq),
declaredValue (gt, ge, lt, le, eq), carrier (eq, ne, in),
recipientCity (eq, ct), and status (eq, ne, in).
in values are separated by |.
object
Additional-key schema:
string
High declared value: declaredValue(gt)=100
City contains text: recipientCity(ct)=port
downloadAs (query)
Optional
Return a file instead of JSON when specified.
string
skipRows (query)
Optional
Number of records to skip.
integer; default: 0
maxRows (query)
Optional
Maximum records to return. Zero or a negative value requests all records.
integer; default: 20
Responses
200: OK
application/json
text/csv
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
A page of records, or a downloadable file if downloadAs is set.
The response format depends on the query value.
application/json
minProperties: 3; maxProperties: 3
3 properties
-
recordslist of objectalways present ⓘuniqueItems: true
Array items:
5 properties
-
parcelIdstringalways present ⓘ -
statusenum<string>always present ⓘ -
declaredValuenumberalways present ⓘminimum: 0; multipleOf: 0.01
Value in currency units, to the nearest cent.
-
recipientobjectalways present ⓘ2 properties
-
citystringalways present ⓘ -
postalCodestringalways present ⓘ
-
-
eventslist of objectmay be absent ⓘTracking history in chronological order.
Array items:
object
3 properties
-
kindenum<string>always present ⓘ -
atstringalways present ⓘformat: date-time
-
detailsstringmay be absent nullable ⓘ
-
-
-
totalRecordsintegeralways present ⓘminimum: 0
-
nextCursorstringalways present nullable ⓘAlways present; null on the last page.
Additional properties: not allowed.
text/csv
string
CSV rows with a header line.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
string; format: binary
A spreadsheet download.
400: Bad Request
application/problem+json
A field name or comparison operator is unsupported.
4 properties
-
typestringalways present ⓘformat: uri
-
titlestringalways present ⓘ -
statusintegeralways present ⓘ -
detailstringmay be absent ⓘ