Replace passport custody
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/custody \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transfers": [
{
"external_id": "TR-1",
"from_party": "Northwind Textiles Ltd",
"to_party": "Harbor Outfitters Inc",
"transfer_date": "2026-10-20",
"from_country": "VN",
"material_external_id": "MAT-BODY",
"evidence": [
{
"document_external_id": "DOC-BOL-1",
"evidence_kind": "bill_of_lading"
}
]
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/custody"
payload = { "transfers": [
{
"external_id": "TR-1",
"from_party": "Northwind Textiles Ltd",
"to_party": "Harbor Outfitters Inc",
"transfer_date": "2026-10-20",
"from_country": "VN",
"material_external_id": "MAT-BODY",
"evidence": [
{
"document_external_id": "DOC-BOL-1",
"evidence_kind": "bill_of_lading"
}
]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transfers: [
{
external_id: 'TR-1',
from_party: 'Northwind Textiles Ltd',
to_party: 'Harbor Outfitters Inc',
transfer_date: '2026-10-20',
from_country: 'VN',
material_external_id: 'MAT-BODY',
evidence: [{document_external_id: 'DOC-BOL-1', evidence_kind: 'bill_of_lading'}]
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/custody', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"transfers": [
{
"externalId": "XFER-1",
"fromParty": "Azienda Agricola Esempio",
"toParty": "Conceria Esempio S.p.A.",
"fromCountry": "IT",
"fromRegion": null,
"transferDate": "2026-01-12",
"description": "Raw hides",
"materialExternalId": "MAT-BODY",
"supplierExternalId": null,
"quantity": 1200,
"uom": "kg",
"evidence": [
{
"documentExternalId": "DOC-TANNERY-DECLARATION",
"evidenceKind": "certificate"
}
]
}
],
"coverage": {
"covered": 1,
"total": 2,
"gaps": [
{
"id": "transfer-unevidenced:XFER-2",
"label": "Transfer XFER-2 has no supporting evidence document"
}
],
"perTransfer": [
{
"externalId": "XFER-1",
"evidenceCount": 1,
"covered": true
}
],
"originAnchored": true
},
"request_id": "05dd0838-ea35-43ea-860c-768d73ca025f"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Product passports
Replace passport custody
Replace chain-of-custody transfers. Transfers written from confirmed origin evidence are kept.
Key scope: ingest. Module: dpp.
PUT
/
v1
/
passports
/
{id}
/
custody
Replace passport custody
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/custody \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transfers": [
{
"external_id": "TR-1",
"from_party": "Northwind Textiles Ltd",
"to_party": "Harbor Outfitters Inc",
"transfer_date": "2026-10-20",
"from_country": "VN",
"material_external_id": "MAT-BODY",
"evidence": [
{
"document_external_id": "DOC-BOL-1",
"evidence_kind": "bill_of_lading"
}
]
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/custody"
payload = { "transfers": [
{
"external_id": "TR-1",
"from_party": "Northwind Textiles Ltd",
"to_party": "Harbor Outfitters Inc",
"transfer_date": "2026-10-20",
"from_country": "VN",
"material_external_id": "MAT-BODY",
"evidence": [
{
"document_external_id": "DOC-BOL-1",
"evidence_kind": "bill_of_lading"
}
]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transfers: [
{
external_id: 'TR-1',
from_party: 'Northwind Textiles Ltd',
to_party: 'Harbor Outfitters Inc',
transfer_date: '2026-10-20',
from_country: 'VN',
material_external_id: 'MAT-BODY',
evidence: [{document_external_id: 'DOC-BOL-1', evidence_kind: 'bill_of_lading'}]
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/custody', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"transfers": [
{
"externalId": "XFER-1",
"fromParty": "Azienda Agricola Esempio",
"toParty": "Conceria Esempio S.p.A.",
"fromCountry": "IT",
"fromRegion": null,
"transferDate": "2026-01-12",
"description": "Raw hides",
"materialExternalId": "MAT-BODY",
"supplierExternalId": null,
"quantity": 1200,
"uom": "kg",
"evidence": [
{
"documentExternalId": "DOC-TANNERY-DECLARATION",
"evidenceKind": "certificate"
}
]
}
],
"coverage": {
"covered": 1,
"total": 2,
"gaps": [
{
"id": "transfer-unevidenced:XFER-2",
"label": "Transfer XFER-2 has no supporting evidence document"
}
],
"perTransfer": [
{
"externalId": "XFER-1",
"evidenceCount": 1,
"covered": true
}
],
"originAnchored": true
},
"request_id": "05dd0838-ea35-43ea-860c-768d73ca025f"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Path Parameters
Body
application/json