Skip to main content
POST
Create passport event

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Headers

Idempotency-Key
string

Makes a retry safe for 24 hours: the same key and body replays the first answer (Idempotency-Replayed: true), another body is 422 idempotency_key_reused, a request still running is 409 idempotency_key_in_use

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]{1,128}$

Path Parameters

id
required

The record's id (a UUID), or ext:<external_id> with your own id for it, URL-encoded

Body

application/json
external_id
string
required

Your id for the event; sending it again updates the event

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.:@/-]+$
event_type
enum<string>
required

The kind of lifecycle event

Available options:
manufactured,
quality_checked,
shipped,
received,
sold,
repaired,
refurbished,
resold,
returned,
recycled,
disposed,
recalled,
inspected
occurred_at
string<date-time>
required
min_audience
enum<string>
default:consumer

Who may see it

Available options:
consumer,
recycler,
authority,
internal
actor_kind
string
Maximum string length: 60
actor_name
string
Maximum string length: 200
country_code
string

ISO 3166-1 alpha-2 country code

Pattern: ^[A-Za-z]{2}$
location_external_id
string

One of your locations; an unknown id is ignored

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.:@/-]+$
document_external_id
string
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.:@/-]+$
details
object

Free-form details of the event

Response

Created

event
object
required
completeness
object
required
request_id
string
required

Quote this when asking about the request; also the X-Request-ID header