Skip to main content
POST
/
delivery_item
Create delivery_item
curl --request POST \
  --url https://api.truecold.io/delivery_item \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "item": "<string>",
  "delivery_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "material_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "delivery_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "item": "<string>",
  "material_code": "<string>",
  "material_name": "<string>",
  "soft_deleted": "2023-11-07T05:31:56Z",
  "soft_deleted_by": "<string>",
  "material_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact your administrator to get an API key.

Body

application/json

Delivery_item input data for creation/update

item
string

Item identifier

delivery_id
string<uuid>

Related delivery ID

material_id
string<uuid>

Related material ID (optional)

Response

Successfully created delivery_item

Delivery_item entity (API response)

id
string<uuid>

Unique identifier

created_at
string<date-time>

Creation timestamp

delivery_id
string<uuid>

Delivery ID

item
string

Item

material_code
string

material code

material_name
string

material name

soft_deleted
string<date-time>

Soft deletion timestamp

soft_deleted_by
string

User who soft deleted the record

material_id
string<uuid>

Material ID

updated_at
string<date-time>

Last update timestamp