POST api/Accounts/CreateAccount

Request Information

URI Parameters

None.

Body Parameters

Account
NameDescriptionTypeAdditional information
account_num

integer

None.

account_type

integer

Required

parent_record_num

integer

None.

last_name

string

Required

String length: inclusive between 0 and 40

first_name

string

String length: inclusive between 0 and 40

bank_account_num

string

String length: inclusive between 0 and 40

bank_num

string

None.

bank_branch_num

integer

None.

id_num

string

String length: inclusive between 0 and 16

accounting_key

string

String length: inclusive between 0 and 16

contactperson

string

String length: inclusive between 0 and 40

country_code

integer

None.

city_code

integer

None.

street

string

String length: inclusive between 0 and 33

home

integer

None.

entrance

string

String length: inclusive between 0 and 2

apartment_num

string

String length: inclusive between 0 and 4

p_o_b

integer

None.

zip

string

String length: inclusive between 0 and 7

phone1

string

String length: inclusive between 0 and 12

phone2

string

String length: inclusive between 0 and 12

phone3

string

Max length: 12

escort_phone

string

Max length: 12

mobilephone

string

String length: inclusive between 0 and 12

fax

string

Max length: 12

email

string

Max length: 60

website

string

Max length: 256

creation_date

date

None.

remark

string

String length: inclusive between 0 and 254

active

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

palestinian

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

occasional

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

creditdays

integer

None.

currentcredit

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

mainregister

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

defmainregister

integer

None.

discountinform

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

withholdingtaxuntil

date

None.

clearwitholdingtaxpercent

decimal number

None.

nochecks

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

nocredits

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

discountpercent

decimal number

None.

discountform

decimal number

None.

discountline

decimal number

None.

linewithvat

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

parent_business_branch_account

integer

None.

customers

Collection of Customer

None.

insurers

Collection of Insurer

None.

businessbranches

Collection of BusinessBranch

None.

FullName

string

None.

FullAddress

string

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.