Assignees

Manage pick-pack assignees

Adding an assignee to an order

post

Adds an assignee to a specified order.

Note: If the order has the packingStatus set to CANCELLED, it is not possible to modify the assignee for that order.


Required scopes

  • pickpack.pickpack_manage

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
orderIdstringRequired

Order's unique identifier.

Query parameters
forcebooleanOptional

If set to true, the new assignee will replace the old one. If set to false, a bad request will be returned if the order already has an assignee.

Default: true
Body
idstringRequired

Identifier of an assignment

Example: 123
siteCodestringRequired

Code of a site

Example: main
firstNamestringRequired

First name of assignee

Example: John
lastNamestringRequired

Last name of assignee

Example: Smith
Responses
200
Event creation response
application/json
post
POST /pick-pack/{tenant}/orders/{orderId}/assignees HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "id": "123",
  "firstName": "John",
  "lastName": "Smith",
  "siteCode": "main"
}
{
  "message": "Success",
  "code": 200
}

Deleting an assignee from an order

delete

Deletes a specified assignee from a specified order.


Required scopes

  • pickpack.pickpack_manage

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name.

Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
orderIdstringRequired

Order's unique identifier.

assigneeIdstring · min: 3 · max: 16Required

assignee which will be removed from order

Pattern: [a-zA-Z0-9_-]+
Responses
204
The request has succeeded.
delete
DELETE /pick-pack/{tenant}/orders/{orderId}/assignees/{assigneeId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Was this helpful?