Skip to main content
POST
Create passport

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}$

Body

application/json
external_id
string
required

Your id for the passport

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.:@/-]+$
granularity
enum<string>
required
Available options:
model,
batch,
item
item_external_id
string
required

The item's external id

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

The lot's external id. Required when granularity is batch

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

The unit's tag. Required when granularity is item

Maximum string length: 128
gtin
string

GTIN-8, 12, 13 or 14: digits only, with a valid check digit. Returned as 14 digits

Pattern: ^([0-9]{8}|[0-9]{12,14})$
batch_lot
string

Batch or lot number: letters, digits and ! " % & ' ( ) * + , - . / : ; < = > ? _ (no spaces)

Required string length: 1 - 20
Pattern: ^[A-Za-z0-9!"%&'()*+,./:;<=>?_-]+$
serial
string

Serial number: letters, digits and ! " % & ' ( ) * + , - . / : ; < = > ? _ (no spaces)

Required string length: 1 - 20
Pattern: ^[A-Za-z0-9!"%&'()*+,./:;<=>?_-]+$
title

The product's name: a string (read as English), or one string per language, keyed by language tag (en, fr, pt-BR)

brand
string
Maximum string length: 200
category
string
Maximum string length: 200

Response

Created

passport
object
required
request_id
string
required

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