Page tree
Skip to end of metadata
Go to start of metadata

On this page:

 

Authentication

Access to the resource requires a valid and current access token.

 

Bulk selection of offers

 

POST /v1/organizations/:organization_id/shipments/select_offers

Parameters

ParameterTypeDescriptionValidation
shipments

Array[Hash]

Shipment Select Offers Form

May be used to select offers in bulk

ParameterTypeDescription
idStringThe unique identifier of the shipment, which allows the user to return the validation error information assigned to a particular shipment.
shipment_idIntegerShipment identifier
offer_idIntegerOffer identifier
The table may consist of maximum 100 elements.

Request example

curl -X POST https://api-shipx-pl.easypack24.net/v1/organizations/1/shipments/select_offers -H 'authorization: Bearer token' -H 'content-type: application/json' -d '{
  "shipments":[
  	{"id": 1, "shipment_id": 235, "offer_id": 284},
    {"id": 2, "shipment_id": 236, "offer_id": 285} 
  ]
}'

Response

HTTP/1.1 204 No Content
Content-Type: application/json

Information about errors

The server may return the following errors

  • validation_failed - validation error
  • forbidden -  the user has no access rights to the specific organization
  • token_invalid - token is invalid

 

  • No labels