Update picking batch line items
POST
/merchants/{merchantCode}/pickingBatches/{pickingBatchId}/lineItems
const url = 'https://order.shopgate.io/v1/merchants/example/pickingBatches/example/lineItems';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '[{"lineItemId":"123e4567-e89b-12d3-a456-426655440000","quantity":3,"pickedQuantity":3,"quantityChangeReason":"wrongItem"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://order.shopgate.io/v1/merchants/example/pickingBatches/example/lineItems \ --header 'Content-Type: application/json' \ --data '[ { "lineItemId": "123e4567-e89b-12d3-a456-426655440000", "quantity": 3, "pickedQuantity": 3, "quantityChangeReason": "wrongItem" } ]'Update picking batch line items
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
Unique merchant code which represents the unique “merchant account”.
pickingBatchId
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
Array<object>
object
lineItemId
required
string
Example
123e4567-e89b-12d3-a456-426655440000quantity
number
Example
3pickedQuantity
number
Example
3quantityChangeReason
Reason for a quantity change. Needs to be set if a new quantity is set. Deprecated reasons:
- wrongAttribute
- wrongProduct
- changedMind
- brokenOrDamaged
- outOfStock
string
Responses
Section titled “Responses”Line items updated
Media typeapplication/json
Increasing the line item quantity is not possible
Media typeapplication/json
Merchant, Picking Batch or Line items not found
Media typeapplication/json
Picking Batch Line items not updatable anymore
Media typeapplication/json

