This method get possible rates for labels between two addresses.
transaction_id required | string <guid> A randomly generated transaction ID, used to correlate the request and response. |
advanced_options | object This is a schemaless object. It is for open ended customizations unique to particular carriers. If the field is absent it should be interpreted as the default value for any applicable options, e.g. false for booleans. |
required | object (Auth) Authentication properties |
confirmation | string (DeliveryConfirmation) This is the list of valid values for delivery confirmation types. |
object (Customs) Customs declarations for this package. | |
object (Fulfillment Plan Details) An fulfillment plan details object representing a fulfilment plan. | |
insurance_provider | string The insurance provider for the insured value of the label, carrier indicates that the user is requesting insurance from the carrier directly, anything else is extra information that should not result in a transaction. |
international | boolean Indicates Whether the shipment is international. |
is_return_label | boolean Indicates whether the label is a return. |
is_residential | boolean Indicates whether the label is to a residential address. |
next_day | boolean Indicates whether this shipment is expected to use a next day service class. If the field is absent it should be interpreted as false |
packages | string All the packages that make up this shipment. There will always be at least one package defined. |
object (PickupLocationDetails) Pickup/Dropoff location address used by carriers. | |
service_code | string Code used to map to what the carrier uses to identify the service. |
ship_datetime | string When the package is expected to ship. Not guaranteed to be in the future. Formatted per the https://tools.ietf.org/html/rfc3339 spec. Will always be in UTC. |
object (ShippingAddress) An address object representing address information. | |
object (ShippingAddress) An address object representing address information. | |
object (ShippingAddress) An address object representing address information. |
OK
{- "transaction_id": "8e4e3181-2a7e-4153-ba6a-f2d6e121500b",
- "advanced_options": { },
- "auth": {
- "access_token": "0cbf28e21b84443b9a9b31c4067d4771",
- "fulfillment_provider_api_code": "test"
}, - "confirmation": "None",
- "customs": {
- "customs": {
- "contents": "None",
- "non_delivery": "return_to_sender",
- "customs_items": [
- {
- "description": "string",
- "quantity": 0,
- "value": {
- "amount": 0,
- "currency": "string"
}, - "country_of_origin": "AF",
- "harmonized_tariff_code": "string",
- "sku": "string",
- "sku_description": "string",
- "item_weight": {
- "weight_in_ounces": 0,
- "weight_in_grams": 0,
- "source_weight": 0,
- "source_weight_unit": "string"
}
}
], - "buyer_shipping_amount_paid": {
- "amount": 0,
- "currency": "string"
}, - "duties_paid": {
- "value": 0,
- "currency": "string"
}
}
}, - "fulfillment_plan_details": {
- "external_sales_order_identifiers": [
- {
- "type": "string",
- "value": "string"
}
], - "items": [
- { }
], - "raw_external_source": {
- "marketplace_code": "string"
}
}, - "insurance_provider": "None",
- "international": true,
- "is_return_label": true,
- "is_residential": true,
- "next_day": true,
- "packages": "string",
- "pickup_location": {
- "pickup_address": {
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone_number": "string",
- "company_name": "string",
- "address_lines": [
- "string"
], - "city_locality": "string",
- "state_province": "string",
- "postal_code": "string",
- "country_code": "AF",
- "address_residential_indicator": "unknown",
- "is_eu": true,
- "address_metadata": { },
- "tax_identifiers": {
- "id": "string",
- "type": "tin",
- "registration_county": "string",
- "description": "string"
}
}, - "location_notes": "string",
- "pickup_options": { }
}, - "service_code": "string",
- "ship_datetime": "string",
- "ship_from": {
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone_number": "string",
- "company_name": "string",
- "address_lines": [
- "string"
], - "city_locality": "string",
- "state_province": "string",
- "postal_code": "string",
- "country_code": "AF",
- "address_residential_indicator": "unknown",
- "is_eu": true,
- "address_metadata": { },
- "tax_identifiers": {
- "id": "string",
- "type": "tin",
- "registration_county": "string",
- "description": "string"
}
}, - "ship_from_display": {
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone_number": "string",
- "company_name": "string",
- "address_lines": [
- "string"
], - "city_locality": "string",
- "state_province": "string",
- "postal_code": "string",
- "country_code": "AF",
- "address_residential_indicator": "unknown",
- "is_eu": true,
- "address_metadata": { },
- "tax_identifiers": {
- "id": "string",
- "type": "tin",
- "registration_county": "string",
- "description": "string"
}
}, - "ship_to": {
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone_number": "string",
- "company_name": "string",
- "address_lines": [
- "string"
], - "city_locality": "string",
- "state_province": "string",
- "postal_code": "string",
- "country_code": "AF",
- "address_residential_indicator": "unknown",
- "is_eu": true,
- "address_metadata": { },
- "tax_identifiers": {
- "id": "string",
- "type": "tin",
- "registration_county": "string",
- "description": "string"
}
}
}
{- "rates": [
- {
- "billing_line_items": [
- {
- "billing_category": "uncategorized",
- "carrier_description": "string",
- "carrier_billing_code": "string",
- "memo": "string",
- "amount": {
- "amount": "string",
- "currency": "string"
}
}
], - "error_messages": [
- "string"
], - "estimated_delivery_datetime": "string",
- "negotiated_rate": true,
- "service_code": "string",
- "ship_datetime": "string",
- "warning_messages": [
- "string"
]
}
]
}