Address
FIELD | DESCRIPTION |
---|---|
country_code string | Country code (iso 3166-1 alpha 2 format) |
country string | Country name. Prefer using country_code if possible. country_code will have precedence over country |
zip string | Zip code |
state_code string | State code |
city string | City name |
warehouse_merchant_id string | In the context of the 'origin' field, you can specify the warehouse your order originates from. If this warehouse is configured in Shipup, we will use its location as an origin. |
Carrier
FIELD | DESCRIPTION |
---|---|
code string | Carrier code for this shipment. See availabe carrier codes |
service_code string | Carrier service code. A list of available service_codes can be found here. |
Order
FIELD | DESCRIPTION |
---|---|
ordered_at datetime | Time at which the order was placed. If left empty, it will be replaced by the current time (i.e. the customer is currently placing the order) |
merchant_shipping_date date (YYYY-MM-DD string) | Order shipping date. If left blank, Shipup will make a prediction including the shipping time and the delivery time. Only fill this field if you know exactly when the order will be shipped (e.g. for pre-orders or product sent on a specific date of the month) |
PredictionResponse
FIELD | DESCRIPTION |
---|---|
delivery_date_estimations | Array of PredictionObjects. |
best_estimation | A PredictionObject representing the fastest delivery (the best estimate) provided by a service. This is selected by comparing first the delivery_date, then the safe_delivery_date with each other in that order and selecting the smallest for each date. In the case that there are multiple services that provide the exact same best estimate, the service is randomly selected from those options. |
PredictionObject
FIELD | DESCRIPTION |
---|---|
carrier_code string | Carrier code for this shipment. See availabe carrier codes |
service_code string | Carrier service code. A list of available service_codes can be found here. |
delivery_date date (YYYY-MM-DD format) | Optimistic estimated date of delivery |
safe_delivery_date date (YYYY-MM-DD format) | Safer estimation that adds a one-day delay to the optimistic estimation. That delay is added before any post-processing rule is applied. |
cutoff_datetime_utc datetime (ISO format) | The nearest cutoff time for the carrier service in UTC timezone. |