Add a shipment to one or more shipment groups
post
/custom-actions/addToGroup/shipments/{shipment id}
Request
Header Parameters
-
Prefer: string
An optional header parameter that allows you to process the request asynchronously. Set the request header "Prefer" to "respond-async" for asynchronous processing. For synchronous processing, leave the parameter blank or do not define it.
Supported Media Types
- application/json
Nested Schema : actionRequest
Type:
Show Source
object-
pks: array
pks
Object primary keys that supports one or more multi-part (compound) keys
-
reasonCodeGid: string
A code describing the reason for the action.
-
responsiblePartyGid: string
Describes the person or people that will be affected by the action.
-
statusCodeGid: string
A code associated with the action to be performed.
Nested Schema : type
Type:
Show Source
object-
shipGroupPks(required): array
shipGroupPks
The type of the shipment group to find or create.
Nested Schema : pks
Type:
arrayObject primary keys that supports one or more multi-part (compound) keys
Show Source
Nested Schema : shipGroupPks
Type:
arrayThe type of the shipment group to find or create.
Show Source
Response
Supported Media Types
- application/json
400 Response
Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Root Schema : errorResponse
Type:
Show Source
object-
detail(required): string
Provides more information about the error.
-
status(required): number
HTTP status code.
-
title(required): string
Provides a short summary message.
401 Response
Unauthorized, the request was not successful because it lacks valid authentication credentials for the requested resource.
Root Schema : errorResponse
Type:
Show Source
object-
detail(required): string
Provides more information about the error.
-
status(required): number
HTTP status code.
-
title(required): string
Provides a short summary message.
403 Response
Access to the specified resource has been forbidden.
Root Schema : errorResponse
Type:
Show Source
object-
detail(required): string
Provides more information about the error.
-
status(required): number
HTTP status code.
-
title(required): string
Provides a short summary message.
500 Response
The server encountered something unexpected that prevented it from completing the request.
Root Schema : errorResponse
Type:
Show Source
object-
detail(required): string
Provides more information about the error.
-
status(required): number
HTTP status code.
-
title(required): string
Provides a short summary message.
Default Response
Default Response.
Nested Schema : addToGroupResponse-allOf[1]
Type:
Show Source
object-
failed: array
failed
The type of the shipment group to find or create.
-
passed: array
passed
The type of the shipment group to find or create.
Nested Schema : addToGroupResultItem
Type:
Show Source
object-
shipGroupPk: string
Target shipment group.
-
shipmentPk: string
The primary key for the shipment.
Nested Schema : addToGroupResultItemWithError-allOf[1]
Type:
Show Source
object-
error: string
Error trying to add shipment to the target group.