Inferences
Shipping Label Inference
You can have the inference via the API or the vision-SDK while the vision-SDK will do the network request for you, the responses from this document will remain the same.
New Inference
To create a new inference for shipping-labels, you'll need to pass the image_url
as a base64 encoded data URL or public web URL. There's a soft cap of about 7.5MB per image for the base64 URL.
You're also able to specify what type of image the parser is looking at, so it can better extract data accurately along with other helpful information listed below:
image_url string
(required)
Base64 encoded data URL.
barcode_values Array.<String>
Any existing values you've already extracted from the barcode.
location_id String
The ID of the location you want to attribute to this scan.
options Object
Option contains different other optional parameters you can provide along with the image. Those parameters are described below
Show Details
match Object
All the options associated with matching contacts logic.
(These parameter are only required if you are using contact matching)
Show Details
postprocess Object
Optional postprocessing parameters
Show Details
tracker Object
This parameter is optional and serves to track the package. It is only required if you intend to create a tracker object. If you are using the OCR API only, you do not need to specify these parameters.
Show Details
chained_status TrackingStatusOutstanding
options?.tracker?.chained_status
auto_close_shipments_option TrackerCloseShipmentsOption
options?.tracker?.auto_close_shipments_option
This option determines how to handle outstanding shipments:
on_provider_updates
: Outstanding shipments will be closed only when the provider sends a tracking update to the shipment.
on_all_updates
: Outstanding shipments will be closed on any tracking update to the shipment.
off
: Outstanding shipments will be ignored.
Default: on_provider_updates
auto_close_shipments_status TrackerCloseShipmentsStatus
options?.tracker?.auto_close_shipments_status
When on_all_updates
or on_provider_updates
is active, you can select the following completed non-exception statuses for outstanding shipments: