Skip to main content

Methods


Entity Properties


delivery_label.info

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

Parameters

integer
Delivery label internal id
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

object | null
  • null - Retrieve list of all delivery labels.
  • object - Retrieve list of delivery labels using specified Search Filters.
array | null
  • null - No options will be applied.
  • object - Apply specified Search Options.
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

string
Delivery # (i.e., the ASN # or RMA # depending on the type)
object
Destination Address. See Delivery Label Address Properties.
array
Array of delivery label packages. See Delivery Label Package Properties.
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

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