Developer Portal
Breadcrumbs

Editing of Stock Advice

Update Stock Advice

A stock advice can be edited while in the “on_hold” or “awaiting_inbound” status, before it transitions to “in_progress”. During this phase, you can update details such as the expected date, supplier, or item quantities to ensure the warehouse has accurate information before receiving the goods.


Request structure

Endpoint:

PUT /api/stock-advice/{id}

URL (prod):

https://app.mailship.eu/api/stock-advice/{id}

Headers:

Authorization: Bearer YOUR_ACCESS_TOKEN
Accept: application/json

Request body:

For detailed request body specifications, please refer to our API Doc.

Request Example (cURL):

curl --location --request PUT "https://app.mailship.eu/api/stock-advice/599e2ba8-539c-4225-aa75-9af90ebf847f" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {{token}}" \
--data "{
    \"name\": \"test Stock Advice Dev Portal\",
    \"description\": \"test stock advice\"
}"

Path parameter:

Parameter

Type

Required

Description

id

string

The unique stock advice identifier. Example: 599e2ba8-539c-4225-aa75-9af90ebf847f

 

Response

If successful, the API returns the updated stock advice entity in JSON format.

See more details in the API Doc.