On this page
article
400 - Too Few Elements
The error code
too_few_elements will be returned if you do not provide enough values in a collection when creating or updating an object.This error code would be returned, for example, if you attempt to create a new shipment but do not provide a sufficient number of addresses.
A
shipment requires a minimum of 2 addresses - an origin and a destination.This error code may apply in other circumstances as well. For example:
- an insufficient number of
contentsin ashipment(at least 1 is required) - an insufficient number of
addressesin ashipment(at least 2 are required) - an insufficient number of
shipmentswhen attempting to allocate multipleshipments(at least oneshipmentreference is required)