POST api/subscriptions/{subscriptionId}/addresses/type/{addressTypeId}

Adds an additional address to the customer and sets it as either billing or shipping address for the specified subscription.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subscriptionId

The ID of the subscription for which to set the billing/shipping address.

integer

Required

addressTypeId

The type of address to set (billing or shipping).

integer

Required

Body Parameters

The address to set (billing or shipping).

AdditionalAddress
NameDescriptionTypeAdditional information
Address

Address

None.

CompanyName

string

None.

CustomerType

integer

None.

Firstname

string

None.

Lastname

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Address": {
    "ApartmentNumber": "sample string 1",
    "Attention": "sample string 2",
    "City": "sample string 3",
    "Co": "sample string 4",
    "ContactEmail": "sample string 5",
    "ContactName": "sample string 6",
    "ContactPhoneNumber": "sample string 7",
    "Country": "sample string 8",
    "Email": "sample string 9",
    "FaxNumber": "sample string 10",
    "Floor": "sample string 11",
    "HouseNumber": "sample string 12",
    "Letter": "sample string 13",
    "PhoneNumber": "sample string 14",
    "PlaceName": "sample string 15",
    "PostBox": "sample string 16",
    "Side": "sample string 17",
    "Street": "sample string 18",
    "ZipCode": "sample string 19"
  },
  "CompanyName": "sample string 1",
  "CustomerType": 2,
  "Firstname": "sample string 3",
  "Lastname": "sample string 4"
}

text/html

Sample:
{"Address":{"ApartmentNumber":"sample string 1","Attention":"sample string 2","City":"sample string 3","Co":"sample string 4","ContactEmail":"sample string 5","ContactName":"sample string 6","ContactPhoneNumber":"sample string 7","Country":"sample string 8","Email":"sample string 9","FaxNumber":"sample string 10","Floor":"sample string 11","HouseNumber":"sample string 12","Letter":"sample string 13","PhoneNumber":"sample string 14","PlaceName":"sample string 15","PostBox":"sample string 16","Side":"sample string 17","Street":"sample string 18","ZipCode":"sample string 19"},"CompanyName":"sample string 1","CustomerType":2,"Firstname":"sample string 3","Lastname":"sample string 4"}

application/xml, text/xml

Sample:
<AdditionalAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Address>
    <ApartmentNumber>sample string 1</ApartmentNumber>
    <Attention>sample string 2</Attention>
    <City>sample string 3</City>
    <Co>sample string 4</Co>
    <ContactEmail>sample string 5</ContactEmail>
    <ContactName>sample string 6</ContactName>
    <ContactPhoneNumber>sample string 7</ContactPhoneNumber>
    <Country>sample string 8</Country>
    <Email>sample string 9</Email>
    <FaxNumber>sample string 10</FaxNumber>
    <Floor>sample string 11</Floor>
    <HouseNumber>sample string 12</HouseNumber>
    <Letter>sample string 13</Letter>
    <PhoneNumber>sample string 14</PhoneNumber>
    <PlaceName>sample string 15</PlaceName>
    <PostBox>sample string 16</PostBox>
    <Side>sample string 17</Side>
    <Street>sample string 18</Street>
    <ZipCode>sample string 19</ZipCode>
  </Address>
  <CompanyName>sample string 1</CompanyName>
  <CustomerType>2</CustomerType>
  <Firstname>sample string 3</Firstname>
  <Lastname>sample string 4</Lastname>
</AdditionalAddress>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The Id of the created additional address.

None.