Skip to main content

Methods


Entity Properties


delivery_label.info

delivery_label.info (int $labelId, array $fields = []) Retrieve delivery label information.

Parameters

labelId
integer
Delivery label internal id
fields
array
  • null - Basic label data.
  • array - Array of fields. Allowed: “packages”, “destination_address”, “origin_address”

Return Value

An object with Delivery Label Properties.

Example Request

Request

Example Response

Response

Error Codes


delivery_label.search(object|null $filters = [], array|null $options = [], array|null $fields = []) An array of objects. Each object will contain Delivery Label Properties.

Parameters

filters
object | null
  • null - Retrieve list of all delivery labels.
  • object - Retrieve list of delivery labels using specified Search Filters.
options
array | null
  • null - No options will be applied.
  • object - Apply specified Search Options.
fields
array | null
  • null - Basic label data.
  • array - Array of fields. Allowed: “packages”, “destination_address”, “origin_address”

Return Value

An array of objects. Each object will contain Delivery Label Properties.

Example Request

Request

Example Response

Response

Error Codes


delivery_label.create

delivery_label.create (string $incrementId, object $address, array $packages, object $options) Create a new delivery label.

Parameters

incrementId
string
Delivery # (i.e., the ASN # or RMA # depending on the type)
address
object
Destination Address. See Delivery Label Address Properties.
packages
array
Array of delivery label packages. See Delivery Label Package Properties.
options
object

Return Value

An object with Delivery Label Properties.

Example Request

Request

Example Response

Response

Error Codes


delivery_label.void

delivery_label.void (int $labelId) Void delivery label.

Parameters

labelId
integer
Delivery label internal id

Return Value

true if the Delivery Label was voided.

Example Request

Request

Example Response

Response

Error Codes

Entity Properties

Delivery Label Properties

Delivery Label Package Properties

Delivery Label Address Properties

Delivery Label Options

Delivery Label File Properties