Methods
Entity Properties
delivery_label.info
delivery_label.info (int $labelId, array $fields = [])
Retrieve delivery label information.
Parameters
Delivery label internal id
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
code | message |
---|---|
100 | Requested delivery label does not exist. |
delivery_label.search
delivery_label.search(object|null $filters = [], array|null $options = [], array|null $fields = [])
An array of objects. Each object will contain Delivery Label Properties.
Parameters
null
- Retrieve list of all delivery labels.object
- Retrieve list of delivery labels using specified Search Filters.
null
- No options will be applied.object
- Apply specified Search Options.
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
code | message |
---|---|
101 | Invalid filters given. Details in error message. |
delivery_label.create
delivery_label.create (string $incrementId, object $address, array $packages, object $options)
Create a new delivery label.
Parameters
Delivery # (i.e., the ASN # or RMA # depending on the type)
Destination Address. See Delivery Label Address Properties.
Array of delivery label packages. See Delivery Label Package Properties.
Options. See Delivery Label Options.
Return Value
An object with Delivery Label Properties.Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
100 | Requested delivery label does not exist. |
101 | Invalid filters given. Details in error message. |
102 | Invalid data given. Details in error message. |
103 | Cannot void the delivery label. Details in error message. |
104 | An unexpected error occurred while creating the delivery label. |
105 | Requested delivery does not exist. |
delivery_label.void
delivery_label.void (int $labelId)
Void delivery label.
Parameters
Delivery label internal id
Return Value
true
if the Delivery Label was voided.
Example Request
Request
Example Response
Response
Error Codes
code | message |
---|---|
103 | Cannot void the delivery label. Details in error message. |