The type that defines the fields for a shipping address. For restrictions, see Shipping restrictions.
Note: If the address cannot be validated, a warning message will be returned.
Types that use ShippingAddress
CheckoutSessionResponseCreateSignInCheckoutSessionRequestPurchaseOrder
Calls that use ShippingAddress
Fields
addressLine1
The first line of the street address where the item is being shipped.
Maximum characters:
Maximum characters:
- AU, CA, & US: 40
- DE & GB: 35
- All other marketplaces: 50
addressLine2
The second line of the street address where the item is being shipped. This optional field can be used for information such as 'Suite Number' or 'Apt Number'.
Maximum characters:
Maximum characters:
- AU, CA, & US: 40
- DE & GB: 35
- All other marketplaces: 50
phoneNumber
The phone number of the person receiving the package.
Note: It is highly recommended that when entering the phone number you include the country code.
For example, if a US phone number is
You can find the country code at https://countrycode.org.
Note: It is highly recommended that when entering the phone number you include the country code.
For example, if a US phone number is
4********4
you would enter +14********4
. If you do not include this code, the service will use the country specified in the country field. You can find the country code at https://countrycode.org.
postalCode
The postal code of the address where the item is being shipped.
Note: This is optional when shipping to EBAY_HK - Hong Kong (ebay.com.hk).
stateOrProvince
The state or province of the address.
Note: For the US marketplace, this is a 2 character value. For a list of these, see US State and Canada Province Codes.