POST api/GetLocations_V1

Get All Locations informations

Request Information

URI Parameters

None.

Body Parameters

Webservice Key provided by 2ship support

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WS_Repository.Models.Responses.Location.LocationReply
NameDescriptionTypeAdditional information
Locations

Array of Locations linked to your user

Collection of WS_Repository.Models.Responses.Location.Location

None.

Response Formats

application/json, text/json

Sample:
{
  "Locations": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Address": {
        "ContactName": "sample string 1",
        "CompanyName": "sample string 2",
        "Country": "sample string 3",
        "State": "sample string 4",
        "City": "sample string 5",
        "PostalCode": "sample string 6",
        "Address1": "sample string 7",
        "Address2": "sample string 8",
        "Address3": "sample string 9",
        "Telephone": "sample string 10",
        "Email": "sample string 11",
        "IsResidential": true
      }
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Address": {
        "ContactName": "sample string 1",
        "CompanyName": "sample string 2",
        "Country": "sample string 3",
        "State": "sample string 4",
        "City": "sample string 5",
        "PostalCode": "sample string 6",
        "Address1": "sample string 7",
        "Address2": "sample string 8",
        "Address3": "sample string 9",
        "Telephone": "sample string 10",
        "Email": "sample string 11",
        "IsResidential": true
      }
    }
  ]
}

application/xml, text/xml

Sample:
<LocationReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WS_Repository.Models.Responses.Location">
  <Locations>
    <Location>
      <Address>
        <Address1>sample string 7</Address1>
        <Address2>sample string 8</Address2>
        <Address3>sample string 9</Address3>
        <City>sample string 5</City>
        <CompanyName>sample string 2</CompanyName>
        <ContactName>sample string 1</ContactName>
        <Country>sample string 3</Country>
        <Email>sample string 11</Email>
        <IsResidential>true</IsResidential>
        <PostalCode>sample string 6</PostalCode>
        <State>sample string 4</State>
        <Telephone>sample string 10</Telephone>
      </Address>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Location>
    <Location>
      <Address>
        <Address1>sample string 7</Address1>
        <Address2>sample string 8</Address2>
        <Address3>sample string 9</Address3>
        <City>sample string 5</City>
        <CompanyName>sample string 2</CompanyName>
        <ContactName>sample string 1</ContactName>
        <Country>sample string 3</Country>
        <Email>sample string 11</Email>
        <IsResidential>true</IsResidential>
        <PostalCode>sample string 6</PostalCode>
        <State>sample string 4</State>
        <Telephone>sample string 10</Telephone>
      </Address>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </Location>
  </Locations>
</LocationReply>