POST api/OdooExtension/InsertUpdateCustomer

Create Invoice

Request Information

URI Parameters

None.

Body Parameters

CustomerCommonImportDataModel
NameDescriptionTypeAdditional information
CompanyName

string

None.

FirstName

string

None.

lastName

string

None.

EmailID

string

None.

Phone

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

Country

string

None.

State

string

None.

City

string

None.

ZipCode

string

None.

Currency

string

None.

CustomerID

integer

None.

ImportedID

integer

None.

PersonnelUserId

string

None.

UserId

integer

Required

APIKey

string

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "companyName": "sample string 1",
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "emailID": "sample string 4",
  "phone": "sample string 5",
  "addressLine1": "sample string 6",
  "addressLine2": "sample string 7",
  "country": "sample string 8",
  "state": "sample string 9",
  "city": "sample string 10",
  "zipCode": "sample string 11",
  "currency": "sample string 12",
  "customerID": 13,
  "importedID": 14,
  "personnelUserId": "sample string 15",
  "userId": 16,
  "apiKey": "sample string 17"
}

application/xml, text/xml

Sample:
<CustomerCommonImportDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel">
  <APIKey xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">sample string 17</APIKey>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">16</UserId>
  <AddressLine1>sample string 6</AddressLine1>
  <AddressLine2>sample string 7</AddressLine2>
  <City>sample string 10</City>
  <CompanyName>sample string 1</CompanyName>
  <Country>sample string 8</Country>
  <Currency>sample string 12</Currency>
  <CustomerID>13</CustomerID>
  <EmailID>sample string 4</EmailID>
  <FirstName>sample string 2</FirstName>
  <ImportedID>14</ImportedID>
  <PersonnelUserId>sample string 15</PersonnelUserId>
  <Phone>sample string 5</Phone>
  <State>sample string 9</State>
  <ZipCode>sample string 11</ZipCode>
  <lastName>sample string 3</lastName>
</CustomerCommonImportDataModel>

multipart/form-data

Sample:
<CustomerCommonImportDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><APIKey xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">sample string 17</APIKey><UserId xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">16</UserId><AddressLine1>sample string 6</AddressLine1><AddressLine2>sample string 7</AddressLine2><City>sample string 10</City><CompanyName>sample string 1</CompanyName><Country>sample string 8</Country><Currency>sample string 12</Currency><CustomerID>13</CustomerID><EmailID>sample string 4</EmailID><FirstName>sample string 2</FirstName><ImportedID>14</ImportedID><PersonnelUserId>sample string 15</PersonnelUserId><Phone>sample string 5</Phone><State>sample string 9</State><ZipCode>sample string 11</ZipCode><lastName>sample string 3</lastName></CustomerCommonImportDataModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Action Status

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>