POST api/accounts

יצירת ארגון חדש

Request Information

URI Parameters

None.

Body Parameters

Account
NameDescriptionTypeAdditional information
Name

שם הארגון

string

None.

ucc_VAT

ח.פ

string

None.

Telephone1

מספר הטלפון

string

None.

ucc_city_id

עיר

ucc_city

None.

ucc_street_id

רחוב

ucc_street

None.

ucc_house_number

מספר

string

None.

ucc_postalcode_id

מיקוד

ucc_postalcode

None.

Id

Dynamics 365 primary key.

globally unique identifier

None.

CreatedOn

נוצר ב

date

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "ucc_VAT": "sample string 2",
  "telephone1": "sample string 3",
  "ucc_city_id": {
    "displayName": "sample string 1",
    "id": "cfe5d693-bd20-44d5-b2c5-3e0a2e7332e1",
    "createdOn": "2026-06-03T18:11:52.1197909+00:00",
    "modifiedOn": "2026-06-03T18:11:52.1197909+00:00"
  },
  "ucc_street_id": {
    "displayName": "sample string 1",
    "id": "02190674-4325-4ff4-bae2-f0df8bd553e1",
    "createdOn": "2026-06-03T18:11:52.1197909+00:00",
    "modifiedOn": "2026-06-03T18:11:52.1197909+00:00"
  },
  "ucc_house_number": "sample string 4",
  "ucc_postalcode_id": {
    "displayName": "sample string 1",
    "id": "1eb0089c-76cf-4656-b068-82a56d0115ca",
    "createdOn": "2026-06-03T18:11:52.1197909+00:00",
    "modifiedOn": "2026-06-03T18:11:52.1197909+00:00"
  },
  "id": "d83b1587-1e44-44e6-a2b8-72c61fe0d457",
  "createdOn": "2026-06-03T18:11:52.1197909+00:00",
  "modifiedOn": "2026-06-03T18:11:52.1197909+00:00"
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Youcc.D365.ICPA.DataModel">
  <CreatedOn>2026-06-03T18:11:52.1197909+00:00</CreatedOn>
  <Id>d83b1587-1e44-44e6-a2b8-72c61fe0d457</Id>
  <ModifiedOn>2026-06-03T18:11:52.1197909+00:00</ModifiedOn>
  <Name>sample string 1</Name>
  <Telephone1>sample string 3</Telephone1>
  <ucc_VAT>sample string 2</ucc_VAT>
  <ucc_city_id>
    <CreatedOn>2026-06-03T18:11:52.1197909+00:00</CreatedOn>
    <Id>cfe5d693-bd20-44d5-b2c5-3e0a2e7332e1</Id>
    <ModifiedOn>2026-06-03T18:11:52.1197909+00:00</ModifiedOn>
    <DisplayName>sample string 1</DisplayName>
  </ucc_city_id>
  <ucc_house_number>sample string 4</ucc_house_number>
  <ucc_postalcode_id>
    <CreatedOn>2026-06-03T18:11:52.1197909+00:00</CreatedOn>
    <Id>1eb0089c-76cf-4656-b068-82a56d0115ca</Id>
    <ModifiedOn>2026-06-03T18:11:52.1197909+00:00</ModifiedOn>
    <DisplayName>sample string 1</DisplayName>
  </ucc_postalcode_id>
  <ucc_street_id>
    <CreatedOn>2026-06-03T18:11:52.1197909+00:00</CreatedOn>
    <Id>02190674-4325-4ff4-bae2-f0df8bd553e1</Id>
    <ModifiedOn>2026-06-03T18:11:52.1197909+00:00</ModifiedOn>
    <DisplayName>sample string 1</DisplayName>
  </ucc_street_id>
</Account>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Account'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.