跳转到主要内容
POST
/
client
/
batch
/
{batchNumber}
/
removeShipment
Remove shipments from a batch
curl --request POST \
  --url https://api.ship.uniuni.com/prod/client/batch/{batchNumber}/removeShipment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "shipments": [
    "UNI033642B16"
  ]
}
'
{
  "message": "Shipments removed from batch successfully",
  "code": 0,
  "data": {
    "batchNumber": "URB0717000000000837",
    "batchName": "test-17",
    "status": "PENDING",
    "printedLabel": false,
    "shipmentCount": 0,
    "shipments": []
  }
}

授权

Authorization
string
header
必填

API access token generated from the UniUni Platform dashboard.

路径参数

batchNumber
string
必填

The unique batch number (e.g. URB0714000000000687).

请求体

application/json
shipments
string[]
必填

List of order numbers.

响应

200 - application/json

Shipments removed or error

message
string
必填

Additional information about the request status.

code
integer
必填

Status code. 0 indicates success.

data
object

Partial batch summary returned after add/remove shipment operations.