POST api/Address/AddAddressV2
Request Information
URI Parameters
None.
Body Parameters
AddAddressV2RequestName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
AddressType | integer |
None. |
|
AddressName | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
Address1 | string |
None. |
|
CountryCode | string |
None. |
|
Country | string |
None. |
|
City | string |
None. |
|
CityCode | string |
None. |
|
District | string |
None. |
|
DistrictCode | string |
None. |
|
Town | string |
None. |
|
TownCode | string |
None. |
|
PhoneNumber | string |
None. |
|
BillingType | integer |
None. |
|
CompanyName | string |
None. |
|
TaxNumber | string |
None. |
|
TaxOffice | string |
None. |
|
CitizenId | string |
None. |
|
Nationality | integer |
None. |
|
IsEBillResponsible | boolean |
None. |
|
AddressRefId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "250c9349-af31-4b08-893a-d853a0c4c47d", "AddressType": 3, "AddressName": "sample string 4", "FirstName": "sample string 5", "LastName": "sample string 6", "Address1": "sample string 7", "CountryCode": "sample string 8", "Country": "sample string 9", "City": "sample string 10", "CityCode": "sample string 11", "District": "sample string 12", "DistrictCode": "sample string 13", "Town": "sample string 14", "TownCode": "sample string 15", "PhoneNumber": "sample string 16", "BillingType": 17, "CompanyName": "sample string 18", "TaxNumber": "sample string 19", "TaxOffice": "sample string 20", "CitizenId": "sample string 21", "Nationality": 22, "IsEBillResponsible": true, "AddressRefId": "be19f341-2a2a-4288-bba0-e9946c40d33d" }
application/xml, text/xml
Sample:
<AddAddressV2Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Request"> <Address1>sample string 7</Address1> <AddressName>sample string 4</AddressName> <AddressRefId>be19f341-2a2a-4288-bba0-e9946c40d33d</AddressRefId> <AddressType>3</AddressType> <BillingType>17</BillingType> <CitizenId>sample string 21</CitizenId> <City>sample string 10</City> <CityCode>sample string 11</CityCode> <CompanyName>sample string 18</CompanyName> <Country>sample string 9</Country> <CountryCode>sample string 8</CountryCode> <District>sample string 12</District> <DistrictCode>sample string 13</DistrictCode> <FirstName>sample string 5</FirstName> <Id>250c9349-af31-4b08-893a-d853a0c4c47d</Id> <IsEBillResponsible>true</IsEBillResponsible> <LastName>sample string 6</LastName> <Nationality>22</Nationality> <PhoneNumber>sample string 16</PhoneNumber> <TaxNumber>sample string 19</TaxNumber> <TaxOffice>sample string 20</TaxOffice> <Town>sample string 14</Town> <TownCode>sample string 15</TownCode> <UserId>69f61e66-7fbb-42b0-882a-30faab5ac5f1</UserId> </AddAddressV2Request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseBaseV2Name | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Data | Object |
None. |
|
Error | ErrorResponse |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Data": {}, "Error": { "Code": 1, "Level": "sample string 2", "Message": "sample string 3", "SubMessage": "sample string 4" } }
application/xml, text/xml
Sample:
<ResponseBaseV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Common"> <Data /> <Error xmlns:d2p1="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Response"> <d2p1:Code>1</d2p1:Code> <d2p1:Level>sample string 2</d2p1:Level> <d2p1:Message>sample string 3</d2p1:Message> <d2p1:SubMessage>sample string 4</d2p1:SubMessage> </Error> <Success>true</Success> </ResponseBaseV2>