POST api/v1/Contacts?token={token}&inCaseOfErrorReturnHttpCode={inCaseOfErrorReturnHttpCode}

יצירת לקוח חדש

Request Information

URI Parameters

NameDescriptionType/Additional information
token

string
inCaseOfErrorReturnHttpCode

קוד ה-HTTP שיוחזר במקרה של שגיאה. ברירת המחדל היא 400 אבל אתה יכול לשלוח קוד אחר אם יש לך צורך כזה.

HttpStatusCode

Default value is BadRequest

Body Parameters

פרטי הלקוח החדש

CaspitContact

לקוח או ספק בכספית

Request Formats

application/json, text/json

Sample:
{
  "ContactId": "sample string 1",
  "ContactType": 1,
  "Number": 1,
  "BusinessName": "sample string 2",
  "OsekMorshe": "sample string 3",
  "Name": "sample string 4",
  "Address1": "sample string 5",
  "Address2": "sample string 6",
  "City": "sample string 7",
  "PostalCode": "sample string 8",
  "Country": "sample string 9",
  "Phone": "sample string 10",
  "Mobile": "sample string 11",
  "Fax": "sample string 12",
  "Email": "sample string 13",
  "TrxCodeNumber": 1,
  "TrxCode": "sample string 14",
  "OpenBalance": 1.0,
  "Balance": 1.0,
  "BalanceInvoiceIska": 1.0,
  "PriceListNum": 1,
  "Comments1": "sample string 15",
  "Comments2": "sample string 16",
  "Comments3": "sample string 17",
  "InvoiceComment": "sample string 18",
  "BankAcctNumber": "sample string 19",
  "BankAcctBranch": "sample string 20",
  "BankAcctBankId": 1,
  "ChargeVAT": true,
  "IsIsraeli": true,
  "IsOccasional": true,
  "AffiliateId": "sample string 23",
  "CCNumberToken": "sample string 24",
  "CCExpDate": "sample string 26",
  "CVV": "sample string 27",
  "DateCreated": "2024-11-21T15:12:57.5863058+02:00",
  "UserCreated": "sample string 28",
  "DateUpdated": "2024-11-21T15:12:57.5863058+02:00",
  "UserUpdated": "sample string 29"
}

application/xml, text/xml

Sample:
<CaspitContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03">
  <DateCreated>2024-11-21T15:12:57.5863058+02:00</DateCreated>
  <DateUpdated>2024-11-21T15:12:57.5863058+02:00</DateUpdated>
  <UserCreated>sample string 28</UserCreated>
  <UserUpdated>sample string 29</UserUpdated>
  <Address1>sample string 5</Address1>
  <Address2>sample string 6</Address2>
  <AffiliateId>sample string 23</AffiliateId>
  <Balance>1</Balance>
  <BalanceInvoiceIska>1</BalanceInvoiceIska>
  <BankAcctBankId>1</BankAcctBankId>
  <BankAcctBranch>sample string 20</BankAcctBranch>
  <BankAcctNumber>sample string 19</BankAcctNumber>
  <BusinessName>sample string 2</BusinessName>
  <CCExpDate>sample string 26</CCExpDate>
  <CCNumberToken>sample string 24</CCNumberToken>
  <CVV>sample string 27</CVV>
  <ChargeVAT>true</ChargeVAT>
  <City>sample string 7</City>
  <Comments1>sample string 15</Comments1>
  <Comments2>sample string 16</Comments2>
  <Comments3>sample string 17</Comments3>
  <ContactId>sample string 1</ContactId>
  <ContactType>1</ContactType>
  <Country>sample string 9</Country>
  <Email>sample string 13</Email>
  <Fax>sample string 12</Fax>
  <InvoiceComment>sample string 18</InvoiceComment>
  <IsIsraeli>true</IsIsraeli>
  <IsOccasional>true</IsOccasional>
  <Mobile>sample string 11</Mobile>
  <Name>sample string 4</Name>
  <Number>1</Number>
  <OpenBalance>1</OpenBalance>
  <OsekMorshe>sample string 3</OsekMorshe>
  <Phone>sample string 10</Phone>
  <PostalCode>sample string 8</PostalCode>
  <PriceListNum>1</PriceListNum>
  <TrxCode>sample string 14</TrxCode>
  <TrxCodeNumber>1</TrxCodeNumber>
</CaspitContact>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Description

HttpResponseMessage