Replies: 5 comments 1 reply
-
|
Hi @MarcoWel , Can you share some anonymized requests of the scenarios you described above? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @danh91,
With "Add A Return Address"Karrio is getting the wrong services - return shipments needs to be UPS Express Saver Worldwide, not Standard or Express EU.
karrio Request: {
"label_type": "PDF",
"options": {
"shipping_date": "2026-02-09T00:17"
},
"parcels": [
{
"dimension_unit": "CM",
"height": 18.2,
"is_document": false,
"length": 10,
"packaging_type": "your_packaging",
"weight": 1,
"weight_unit": "KG",
"width": 33.7
}
],
"payment": {
"paid_by": "sender"
},
"recipient": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
},
"return_address": {
"address_line1": "001 Test Blvd",
"city": "San Francisco",
"company_name": "US Company",
"country_code": "US",
"id": "adr_261ac794dc5744aea175f807c03b72fd",
"meta": {
"is_default": false,
"label": "US Test"
},
"object_type": "address",
"person_name": "Test Person",
"postal_code": "94102",
"residential": false,
"state_code": "CA"
},
"shipper": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
}
}UPS Request: {
"RateRequest": {
"Request": {
"RequestOption": "Shoptimeintransit",
"SubVersion": "2409",
"TransactionReference": {
"CustomerContext": "fetch rates"
}
},
"Shipment": {
"DeliveryTimeInformation": {
"PackageBillType": "03",
"Pickup": {
"Date": "20260209"
}
},
"InvoiceLineTotal": {
"CurrencyCode": "USD",
"MonetaryValue": "1.0"
},
"Package": [
{
"Dimensions": {
"Height": "18.2",
"Length": "10.0",
"UnitOfMeasurement": {
"Code": "CM",
"Description": "Dimension"
},
"Width": "33.7"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Weight"
},
"Weight": "1.0"
},
"PackagingType": {
"Code": "02",
"Description": "Packaging Type"
}
}
],
"PaymentDetails": {
"ShipmentCharge": [
{
"BillShipper": {
"AccountNumber": "xxx"
},
"Type": "01"
}
]
},
"RatingMethodRequestedIndicator": "Y",
"Service": {
"Code": "11",
"Description": "Weight"
},
"ShipFrom": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name"
},
"ShipTo": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name"
},
"ShipmentDate": "20260209",
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": "Y"
},
"ShipmentTotalWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Dimension"
},
"Weight": "1.0"
},
"Shipper": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name",
"ShipperNumber": "xxx"
},
"TaxInformationIndicator": "Y"
}
}
}karrio Response: {
"rates": [
{
"id": "rat_abb51918a434405d85310afac9ef24b8",
"object_type": "rate",
"carrier_name": "ups",
"carrier_id": "UPS",
"currency": "EUR",
"service": "ups_standard_eu",
"total_charge": x.xx,
"transit_days": 1,
"extra_charges": [
{
"name": "BASE CHARGE",
"amount": x.xx,
"currency": "EUR"
},
{
"name": "FUEL SURCHARGE",
"amount": x.xx,
"currency": "EUR"
},
{
"name": "MWST",
"amount": x.xx,
"currency": "EUR"
}
],
"meta": {
"service_name": "UPS STANDARD EU",
"rate_zone": "1",
"ext": "ups",
"carrier": "ups",
"rate_provider": "ups",
"carrier_connection_id": "car_662a8310b3c740f1909725b60ad7b630"
},
"test_mode": false
},
...
]
}UPS response: {
"RateResponse": {
"Response": {
"ResponseStatus": {
"Code": "1",
"Description": "Success"
},
"Alert": [
{
"Code": "110971",
"Description": "Your invoice may vary from the displayed reference rates"
}
],
"TransactionReference": {
"CustomerContext": "fetch rates"
}
},
"RatedShipment": [
...,
{
"Disclaimer": [
{
"Code": "01",
"Description": "Taxes are included in the shipping cost and apply to the transportation charges but additional duties/taxes may apply and are not reflected in the total amount due."
}
],
"Service": {
"Code": "11",
"Description": ""
},
"Zone": "1",
"RatedShipmentAlert": [
{
"Code": "110971",
"Description": "Your invoice may vary from the displayed reference rates"
}
],
"RatingMethod": "01",
"BillableWeightCalculationMethod": "02",
"BillingWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Kilograms"
},
"Weight": "1.5"
},
"TransportationCharges": {
"CurrencyCode": "EUR",
"MonetaryValue": "17.75"
},
"BaseServiceCharge": {
"CurrencyCode": "EUR",
"MonetaryValue": "14.55"
},
"ItemizedCharges": [
{
"Code": "375",
"CurrencyCode": "EUR",
"MonetaryValue": "x.xx"
}
],
"ServiceOptionsCharges": {
"CurrencyCode": "EUR",
"MonetaryValue": "0.00"
},
"TotalCharges": {
"CurrencyCode": "EUR",
"MonetaryValue": "17.75"
},
"NegotiatedRateCharges": {
"BaseServiceCharge": {
"CurrencyCode": "EUR",
"MonetaryValue": "x.xx"
},
"ItemizedCharges": [
{
"Code": "375",
"CurrencyCode": "EUR",
"MonetaryValue": "x.xx"
}
],
"TaxCharges": [
{
"Type": "MWST",
"MonetaryValue": "x.xx"
}
],
"TotalCharge": {
"CurrencyCode": "EUR",
"MonetaryValue": "x.xx"
},
"TotalChargesWithTaxes": {
"CurrencyCode": "EUR",
"MonetaryValue": "x.xx"
}
},
"RatedPackage": [
{
"NegotiatedCharges": {
"BaseServiceCharge": {
"CurrencyCode": "EUR",
"MonetaryValue": "0.00"
},
"TransportationCharges": {
"CurrencyCode": "EUR",
"MonetaryValue": "0.00"
},
"ServiceOptionsCharges": {
"CurrencyCode": "EUR",
"MonetaryValue": "0.00"
},
"TotalCharge": {
"CurrencyCode": "EUR",
"MonetaryValue": "0.00"
}
},
"Weight": "1.0"
}
],
"TimeInTransit": {
"PickupDate": "20260209",
"PackageBillType": "03",
"AutoDutyCode": "02",
"Disclaimer": "Services listed as guaranteed are backed by a money-back guarantee for transportation charges only. See Terms and Conditions in the Service Guide for details. Certain commodities and high value shipments may require additional transit time for customs clearance.",
"ServiceSummary": {
"Service": {
"Description": "UPS Standard"
},
"EstimatedArrival": {
"Arrival": {
"Date": "20260210",
"Time": "233000"
},
"BusinessDaysInTransit": "1",
"Pickup": {
"Date": "20260209",
"Time": "190000"
},
"DayOfWeek": "TUE",
"CustomerCenterCutoff": "170000",
"TotalTransitDays": "1"
},
"Disclaimer": "UPS Standard is available to UPS Account holders only.",
"SaturdayDelivery": "0"
}
}
}
]
}
}Without "Add A Return Address"
karrio Request: {
"label_type": "PDF",
"options": {
"shipping_date": "2026-02-09T00:17"
},
"parcels": [
{
"dimension_unit": "CM",
"height": 18.2,
"is_document": false,
"length": 10,
"packaging_type": "your_packaging",
"weight": 1,
"weight_unit": "KG",
"width": 33.7
}
],
"payment": {
"paid_by": "sender"
},
"recipient": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
},
"shipper": {
"address_line1": "001 Test Blvd",
"city": "San Francisco",
"company_name": "US Company",
"country_code": "US",
"id": "adr_261ac794dc5744aea175f807c03b72fd",
"meta": {
"is_default": false,
"label": "US Test"
},
"object_type": "address",
"person_name": "Test Person",
"postal_code": "94102",
"residential": false,
"state_code": "CA"
}
}UPS Request: {
"RateRequest": {
"Request": {
"RequestOption": "Shoptimeintransit",
"SubVersion": "2409",
"TransactionReference": {
"CustomerContext": "fetch rates"
}
},
"Shipment": {
"DeliveryTimeInformation": {
"PackageBillType": "03",
"Pickup": {
"Date": "20260209"
}
},
"InvoiceLineTotal": {
"CurrencyCode": "USD",
"MonetaryValue": "1.0"
},
"Package": [
{
"Dimensions": {
"Height": "7.17",
"Length": "3.94",
"UnitOfMeasurement": {
"Code": "IN",
"Description": "Dimension"
},
"Width": "13.27"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "LBS",
"Description": "Weight"
},
"Weight": "2.21"
},
"PackagingType": {
"Code": "02",
"Description": "Packaging Type"
}
}
],
"PaymentDetails": {
"ShipmentCharge": [
{
"BillShipper": {
"AccountNumber": "xxxxx"
},
"Type": "01"
}
]
},
"RatingMethodRequestedIndicator": "Y",
"Service": {
"Code": "11",
"Description": "Weight"
},
"ShipFrom": {
"Address": {
"AddressLine": [
"001 Test Blvd"
],
"City": "San Francisco",
"CountryCode": "US",
"PostalCode": "94102",
"StateProvinceCode": "CA"
},
"AttentionName": "Test Person"
},
"ShipTo": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name"
},
"ShipmentDate": "20260209",
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": "Y"
},
"ShipmentTotalWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Dimension"
},
"Weight": "1.0"
},
"Shipper": {
"Address": {
"AddressLine": [
"001 Test Blvd"
],
"City": "San Francisco",
"CountryCode": "US",
"PostalCode": "94102",
"StateProvinceCode": "CA"
},
"AttentionName": "Test Person",
"ShipperNumber": "xxx"
},
"TaxInformationIndicator": "Y"
}
}
}karrio Response: {
"messages": [
{
"carrier_id": "UPS",
"carrier_name": "ups",
"code": "111617",
"level": "error",
"message": "The country associated with Shippers ShipperNumber must be the same as the shipments Shippers country."
}
]
}UPS response: {
"response": {
"errors": [
{
"code": "111617",
"message": "The country associated with Shippers ShipperNumber must be the same as the shipments Shippers country."
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Hi @danh91, |
Beta Was this translation helpful? Give feedback.
-
|
Update 2026.1.17: Rate fetching for international return shipments now seems to work for There is still an issue for UPS though. Return shipment US->DE is giving the error Requesting in kg - Error "Invalid Unit of Measurement"karrio request: {
"label_type": "PDF",
"options": {
"shipping_date": "2026-03-04T12:27"
},
"parcels": [
{
"dimension_unit": "CM",
"height": 18.2,
"is_document": false,
"length": 10,
"packaging_type": "your_packaging",
"weight": 1,
"weight_unit": "KG",
"width": 33.7
}
],
"payment": {
"paid_by": "sender"
},
"recipient": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
},
"return_address": {
"address_line1": "001 Test Blvd",
"city": "San Francisco",
"company_name": "US Company",
"country_code": "US",
"id": "adr_261ac794dc5744aea175f807c03b72fd",
"meta": {
"is_default": false,
"label": "US Test"
},
"object_type": "address",
"person_name": "Test Person",
"postal_code": "94102",
"residential": false,
"state_code": "CA"
},
"shipper": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
}
}UPS request: {
"RateRequest": {
"Request": {
"RequestOption": "Shoptimeintransit",
"SubVersion": "2409",
"TransactionReference": {
"CustomerContext": "fetch rates"
}
},
"Shipment": {
"DeliveryTimeInformation": {
"PackageBillType": "03",
"Pickup": {
"Date": "20260304"
}
},
"InvoiceLineTotal": {
"CurrencyCode": "USD",
"MonetaryValue": "1.0"
},
"Package": [
{
"Dimensions": {
"Height": "18.2",
"Length": "10.0",
"UnitOfMeasurement": {
"Code": "CM",
"Description": "Dimension"
},
"Width": "33.7"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Weight"
},
"Weight": "1.0"
},
"PackagingType": {
"Code": "02",
"Description": "Packaging Type"
}
}
],
"PaymentDetails": {
"ShipmentCharge": [
{
"BillShipper": {
"AccountNumber": "xxx"
},
"Type": "01"
}
]
},
"RatingMethodRequestedIndicator": "Y",
"Service": {
"Code": "11",
"Description": "Weight"
},
"ShipFrom": {
"Address": {
"AddressLine": [
"001 Test Blvd"
],
"City": "San Francisco",
"CountryCode": "US",
"PostalCode": "94102",
"StateProvinceCode": "CA"
},
"AttentionName": "Test Person"
},
"ShipTo": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name"
},
"ShipmentDate": "20260304",
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": "Y"
},
"ShipmentTotalWeight": {
"UnitOfMeasurement": {
"Code": "KGS",
"Description": "Dimension"
},
"Weight": "1.0"
},
"Shipper": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name",
"ShipperNumber": "xxx"
},
"TaxInformationIndicator": "Y"
}
}
}Requesting in g - works finekarrio request: {
"label_type": "PDF",
"options": {
"shipping_date": "2026-03-04T12:27"
},
"parcels": [
{
"dimension_unit": "CM",
"height": 18.2,
"is_document": false,
"length": 10,
"packaging_type": "your_packaging",
"weight": 1000,
"weight_unit": "G",
"width": 33.7
}
],
"payment": {
"paid_by": "sender"
},
"recipient": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
},
"return_address": {
"address_line1": "001 Test Blvd",
"city": "San Francisco",
"company_name": "US Company",
"country_code": "US",
"id": "adr_261ac794dc5744aea175f807c03b72fd",
"meta": {
"is_default": false,
"label": "US Test"
},
"object_type": "address",
"person_name": "Test Person",
"postal_code": "94102",
"residential": false,
"state_code": "CA"
},
"shipper": {
"address_line1": "Teststr. 1",
"city": "Karlsruhe",
"company_name": "Test Company",
"country_code": "DE",
"id": "adr_052cabccc9164ca8aa404c40fa683eb7",
"meta": {
"is_default": false,
"label": "Germany Test"
},
"object_type": "address",
"person_name": "Person Name",
"postal_code": "76131",
"residential": false
}
}UPS request: {
"RateRequest": {
"Request": {
"RequestOption": "Shoptimeintransit",
"SubVersion": "2409",
"TransactionReference": {
"CustomerContext": "fetch rates"
}
},
"Shipment": {
"DeliveryTimeInformation": {
"PackageBillType": "03",
"Pickup": {
"Date": "20260304"
}
},
"InvoiceLineTotal": {
"CurrencyCode": "USD",
"MonetaryValue": "1.0"
},
"Package": [
{
"Dimensions": {
"Height": "7.17",
"Length": "3.94",
"UnitOfMeasurement": {
"Code": "IN",
"Description": "Dimension"
},
"Width": "13.27"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "LBS",
"Description": "Weight"
},
"Weight": "2.2"
},
"PackagingType": {
"Code": "02",
"Description": "Packaging Type"
}
}
],
"PaymentDetails": {
"ShipmentCharge": [
{
"BillShipper": {
"AccountNumber": "xxx"
},
"Type": "01"
}
]
},
"RatingMethodRequestedIndicator": "Y",
"Service": {
"Code": "11",
"Description": "Weight"
},
"ShipFrom": {
"Address": {
"AddressLine": [
"001 Test Blvd"
],
"City": "San Francisco",
"CountryCode": "US",
"PostalCode": "94102",
"StateProvinceCode": "CA"
},
"AttentionName": "Test Person"
},
"ShipTo": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name"
},
"ShipmentDate": "20260304",
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": "Y"
},
"ShipmentTotalWeight": {
"UnitOfMeasurement": {
"Code": "LBS",
"Description": "Dimension"
},
"Weight": "2.2"
},
"Shipper": {
"Address": {
"AddressLine": [
"1 Teststr."
],
"City": "Karlsruhe",
"CountryCode": "DE",
"PostalCode": "76131"
},
"AttentionName": "Person Name",
"ShipperNumber": "xxx"
},
"TaxInformationIndicator": "Y"
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
Hi @MarcoWel, Thanks for the update. We've noted the UPS kg unit conversion issue and will look into it. The return shipment API is still a work in progress; we have yet to finish the full implementation and documentation. We'll let you know once that's done. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Dear karrio Team,
Can we generate import shipments (UPS calls them return shipments)?
Example 1:
Result in karrio:
Example 2:
Result in karrio:
Beta Was this translation helpful? Give feedback.
All reactions