Update Document Request Items
Update line items on a draft document request (HS codes, values, regulatory profiles).
/regulatory-documents/request/:request_id
PUT https://api.terminal.africa/v1/regulatory-documents/request/:request_id
Re-matches available_documents after item changes. Clears HS-code validation errors when fixed.
Draft: add new items (omit item_id) or update existing items (include item_id).
After purchase (failed-doc recovery): only existing items may be updated. item_id is required on every item.
Path Parameters
request_id*
String
Document request id. e.g. DRQ-ABC1234567.
Headers
Authorization*
String
Set value to Bearer SECRET_KEY
Content-Type*
String
Set value to application/json
Request Body
items*
Array
One or more item objects (see below).
Item object
item_id
String
Required to update an existing item. Omit to append a new item (draft only).
description*
String
Item description.
hs_code*
String
Harmonized System code. e.g. 0901.21.
value*
Number
Item value.
currency*
String
Item value currency. 3-letter code. e.g. USD.
quantity*
Number
Quantity.
weight*
Number
Weight per unit.
weight_unit*
String
Weight unit. e.g. kg.
manufacturer_country
String
ISO country code. e.g. NG.
manufacturers_profile
Object or String
Manufacturer address snapshot or address id.
regulatory_profiles
Object
Map of document slug → profile fields. See Update Item Regulatory Profile.
Sample body: fix missing HS code
Sample body : add new item (draft only)
Returns the full document request object (same shape as Get Document Request).
Last updated
Was this helpful?