Shipping Type Resources

compared with
Current by Martin Breest
on Aug 22, 2012 07:52.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History

|| Url | .../v1/shops/\{shopId\}/shippingTypes/\{shippingTypeId\} ||
|| Sample | [http://api.spreadshirt.net/api/v1/shops/205909/shippingTypes/61] ||
|| Type | Entity ||
|| Method | GET ||
| shippingCountry | Representation of a platform shipping country. |
| shippingCountry/name | The name of this shipping country, e.g. Germany. |
| shippingCountry/isoCode | The isoCode of this shipping country, e.g. US, that can be used to set the correct countryCode in a shipping address for example. |
| shippingCountry/shippingRegion | The shipping region this shipping country belongs to, e.g. Germany belongs to shipping region Western Europe. |
| shippingCountry/shippingSupported | Indicates whether shipping is supported to this shipping country for this shipping type, i.e. orders are created via Spreadshirt checkout. |
| shippingCountry/externalFulfillmentSupported | Indicates whether shipping is supported to this shipping country for this shipping type for external fulfillment orders, i.e. orders are created via an external checkout (partner implemented checkout). |
| shippingCountry/trackingLink | A link to the shipping carriers web site that allows to track the progress of a package delivery, e.g. link to DHL web site. |
| shippingCountry/shippingStates | A list of shipping states that belong to the shipping country, e.g. California (CA) belongs to the United States (US). |


<shippingCountry id="1">
<name>Germany</name>
<isoCode>DE</isoCode>
<shippingRegion id="1"/>
<shippingSupported>true</shippingSupported>
{code}

or&nbsp;

{code}
<shippingCountry id="86">
<name>United States</name>
<isoCode>US</isoCode>
<shippingRegion id="1"/>
<shippingSupported>true</shippingSupported>
<externalFulfillmentSupported>true</externalFulfillmentSupported>
<shippingStates>
...
</shippingStates>
</shippingCountry>
{code}

h2. ShippingState

|| Field || Description ||
| shippingState | Representation of a platform shipping state. |
| shippingState/name | The name of this shipping state, e.g. California. |
| shippingState/isoCode | The isoCode of this shipping state, e.g. US, that can be used to set the correct stateCode in a shipping address for example. |
| shippingState/shippingRegion | The shipping region this shipping state belongs to, e.g. California belongs to shipping region North America. |
| shippingState/shippingSupported | Indicates whether shipping is supported to this shipping state for this shipping type, i.e. orders are created via Spreadshirt checkout. |
| shippingState/externalFulfillmentSupported | Indicates whether shipping is supported to this shipping state for this shipping type for external fulfillment orders, i.e. orders are created via an external checkout (partner implemented checkout). |
| shippingState/trackingLink | A link to the shipping carriers web site that allows to track the progress of a package delivery, e.g. link to DHL web site. |

Example:

{code}
<shippingState id="200">
<name>California</name>
<isoCode>CA</isoCode>
<shippingRegion id="1"/>
<shippingSupported>true</shippingSupported>
<externalFulfillmentSupported>true</externalFulfillmentSupported>
</shippingState>
{code}

h2. ShippingRegion