POST api/transportCompany
Save or update a transport company
Request Information
URI Parameters
None.
Body Parameters
Transport company to save
TransportCompany| Name | Description | Type | Additional information |
|---|---|---|---|
| Identifier | Collection of byte |
None. |
|
| IdentifierGuid | globally unique identifier |
None. |
|
| CompanyName | string |
None. |
|
| ABN | string |
None. |
|
| Address1 | string |
None. |
|
| Address2 | string |
None. |
|
| Telephone | string |
None. |
|
| PrimaryContactGuid | Collection of byte |
None. |
|
| PrimaryContactID | globally unique identifier |
None. |
|
| PrimaryContact | Contact |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{
"identifier": "1BotVP02uUKUGKihow37Fw==",
"identifierGuid": "542d1ad4-36fd-42b9-9418-a8a1a30dfb17",
"companyName": "sample string 1",
"abn": "sample string 2",
"address1": "sample string 3",
"address2": "sample string 4",
"telephone": "sample string 5",
"primaryContactGuid": "a4Nwuzd9wk6XwiLH8xRdzQ==",
"primaryContactID": "bb70836b-7d37-4ec2-97c2-22c7f3145dcd",
"primaryContact": {
"$id": "2",
"id": "e2cc84b0-7e4a-4aac-bb3a-c17f0dde7ea1",
"identifier": "i92ZNKQq8k+B4A42s71wKw==",
"identifierGuid": "3499dd8b-2aa4-4ff2-81e0-0e36b3bd702b",
"familyName": "sample string 1",
"givenNames": "sample string 2",
"otherNames": "sample string 3",
"title": "sample string 4",
"dateOfBirth": "sample string 5",
"sex": "sample string 6",
"address": "sample string 7",
"address1": "sample string 8",
"address2": "sample string 9",
"town": "sample string 10",
"state": "sample string 11",
"country": "sample string 12",
"postalCode": "sample string 13",
"telephone": "sample string 14",
"mobile": "sample string 15",
"email": "sample string 16",
"fax": "sample string 17",
"primary": true
}
}
application/xml, text/xml
Sample:
<TransportCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager">
<ABN>sample string 2</ABN>
<Address1>sample string 3</Address1>
<Address2>sample string 4</Address2>
<CompanyName>sample string 1</CompanyName>
<Identifier>1BotVP02uUKUGKihow37Fw==</Identifier>
<IdentifierGuid>542d1ad4-36fd-42b9-9418-a8a1a30dfb17</IdentifierGuid>
<PrimaryContact xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.Accounts">
<d2p1:Address>sample string 7</d2p1:Address>
<d2p1:Address1>sample string 8</d2p1:Address1>
<d2p1:Address2>sample string 9</d2p1:Address2>
<d2p1:Country>sample string 12</d2p1:Country>
<d2p1:DateOfBirth>sample string 5</d2p1:DateOfBirth>
<d2p1:Email>sample string 16</d2p1:Email>
<d2p1:FamilyName>sample string 1</d2p1:FamilyName>
<d2p1:Fax>sample string 17</d2p1:Fax>
<d2p1:GivenNames>sample string 2</d2p1:GivenNames>
<d2p1:ID>e2cc84b0-7e4a-4aac-bb3a-c17f0dde7ea1</d2p1:ID>
<d2p1:Identifier>i92ZNKQq8k+B4A42s71wKw==</d2p1:Identifier>
<d2p1:IdentifierGuid>3499dd8b-2aa4-4ff2-81e0-0e36b3bd702b</d2p1:IdentifierGuid>
<d2p1:Mobile>sample string 15</d2p1:Mobile>
<d2p1:OtherNames>sample string 3</d2p1:OtherNames>
<d2p1:PostalCode>sample string 13</d2p1:PostalCode>
<d2p1:Primary>true</d2p1:Primary>
<d2p1:Sex>sample string 6</d2p1:Sex>
<d2p1:State>sample string 11</d2p1:State>
<d2p1:Telephone>sample string 14</d2p1:Telephone>
<d2p1:Title>sample string 4</d2p1:Title>
<d2p1:Town>sample string 10</d2p1:Town>
</PrimaryContact>
<PrimaryContactGuid>a4Nwuzd9wk6XwiLH8xRdzQ==</PrimaryContactGuid>
<PrimaryContactID>bb70836b-7d37-4ec2-97c2-22c7f3145dcd</PrimaryContactID>
<Telephone>sample string 5</Telephone>
</TransportCompany>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Identifier of saved company
globally unique identifierResponse Formats
application/json, text/json
Sample:
"a37b3d30-0000-416e-bb8f-131ff366b6ef"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">a37b3d30-0000-416e-bb8f-131ff366b6ef</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK 3�\E�e� 5 xl/workbook.xml � (� ����0Ew$�!���R�v����nR�D4%A��IS��|��s��ƽƼ�GM��"[3�@�d,�8�S�tOf�Qr�
+ԁYvf'�h/��t�����!^ 5�(R��x �Y>�K�}����]L��%���$�~�Ѡ��=�$9ס�9%����U1���
�X�R���ew_PK 3�\���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
3�\Od�' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R5d40a0bea8fc4137" /></Relationships>PK 3�\�+�2% � xl/worksheets/sheet1.xml � (� �Q�n� ��}%Yڤ��T��j�M;lg�85�Ȑ��? �4i� [~~���ǻ�
�i�
�7g`;쵽4|��Þ�zA�:�Y�[w��+遼�S`���6�$#}H�"pt'�f�,+�(}�rJO��l��r��3�TFj�ۺׁ=�gCßr�D['仆���Y������Y?�sR~%�� �ѿ����|��.�t8�t3���83��E�^5��6�|[�UY�}^p��Σ�X˫K��$͓�� F��c�q�iwa�[���{� �o�k�
[:#z����s�PK 3�\��͒� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞؎ݯ�vÆm���8��ؑ�=�����ĂMg3������|���ކ��P��w�B #g|ݹ��s�K�m7{�1��vcd����)�kΣii�X��\�XL�
ќ�!^
1�aʀ[&;\F��[�z��<�K�����%`
�
~Z�'Yd*������%�F��,J`�nj1]z��^�z"�Z٣P��3-t��2-��S�?=u��'j����V������~PK 3�\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK 3�\Q@g� � xl/sharedStrings.xml � (� 5��N�0C%�{6��J�$� > m'�Hͤt���p��'۲���n�.�F.�ܖB�>���
K�%m�p�dP��E�*����b�+�ė�#u'��&�x<���WD���Z�MM�@��$鳠N*�'��s(1HL�yr���v�����[փrv�Os0��˛�*�PK- 3�\E�e� 5 xl/workbook.xmlPK- 3�\���� � � [Content_Types].xmlPK-
3�\Od�' ' T _rels/.relsPK- 3�\�+�2% � � xl/worksheets/sheet1.xmlPK- 3�\��͒� P 7 xl/_rels/workbook.xml.relsPK- 3�\Ѓc'2 E
| xl/styles.xmlPK- 3�\Q@g� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK 3�\H�÷