How to indicate if the forwarding is "Residential" in the UPS API?

I am using api UPS (JSON) from ups.com development kit.

1) I need a shipment rating list with Residential Shipment. 2) I need to add a shipment with a "residential address".

I add ResidentialAddressIndicatoras 1 to the ShipToaddress (I refer to the UPS document). But that failed.

2) Example code:

...........
...........
 "ShipTo": {
    "Name": "Ship To Name",
    "AttentionName": "Ship To Attn Name",
    "Phone": {
      "Number": "1234567890"
    },
    "Address": {
      "AddressLine": "195 N main st",
      "City": "Sebastopol",
      "StateProvinceCode": "CA",
      "PostalCode": "95472",
      "CountryCode": "US",
      "ResidentialAddressIndicator":"1" //I am refer from UPS doc.        
    }       
  },
..........
..........

Your answers are highly appreciated!

+3
source share
1 answer

in <ShipTo> element add <Residential Address />, you can find this in the UPS XML Delivery Package Developer's Guide.

+3
source

Source: https://habr.com/ru/post/1738774/


All Articles