POST api/Shopify/PostCustomer

API to import orders from shopify

Request Information

URI Parameters

None.

Body Parameters

CodatCustomerRequestModel
NameDescriptionTypeAdditional information
CustomerID

integer

None.

CodatCustomerId

string

None.

CustomerName

string

None.

ContactName

string

None.

DefaultCurrency

string

None.

Phone

string

None.

EmailAddress

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

City

string

None.

Region

string

None.

Country

string

None.

PostalCode

string

None.

FirstName

string

None.

LastName

string

None.

ShipToAddressLine1

string

None.

ShipToAddressLine2

string

None.

ShipToCity

string

None.

ShipToRegion

string

None.

ShipToCountry

string

None.

ShipToPostalCode

string

None.

Status

string

None.

Request Formats

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

Sample:
{
  "customerID": 1,
  "codatCustomerId": "sample string 2",
  "customerName": "sample string 3",
  "contactName": "sample string 4",
  "defaultCurrency": "sample string 5",
  "phone": "sample string 6",
  "emailAddress": "sample string 7",
  "addressLine1": "sample string 8",
  "addressLine2": "sample string 9",
  "city": "sample string 10",
  "region": "sample string 11",
  "country": "sample string 12",
  "postalCode": "sample string 13",
  "firstName": "sample string 14",
  "lastName": "sample string 15",
  "shipToAddressLine1": "sample string 16",
  "shipToAddressLine2": "sample string 17",
  "shipToCity": "sample string 18",
  "shipToRegion": "sample string 19",
  "shipToCountry": "sample string 20",
  "shipToPostalCode": "sample string 21",
  "status": "sample string 22"
}

application/xml, text/xml

Sample:
<CodatCustomerRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <AddressLine1>sample string 8</AddressLine1>
  <AddressLine2>sample string 9</AddressLine2>
  <City>sample string 10</City>
  <CodatCustomerId>sample string 2</CodatCustomerId>
  <ContactName>sample string 4</ContactName>
  <Country>sample string 12</Country>
  <CustomerID>1</CustomerID>
  <CustomerName>sample string 3</CustomerName>
  <DefaultCurrency>sample string 5</DefaultCurrency>
  <EmailAddress>sample string 7</EmailAddress>
  <FirstName>sample string 14</FirstName>
  <LastName>sample string 15</LastName>
  <Phone>sample string 6</Phone>
  <PostalCode>sample string 13</PostalCode>
  <Region>sample string 11</Region>
  <ShipToAddressLine1>sample string 16</ShipToAddressLine1>
  <ShipToAddressLine2>sample string 17</ShipToAddressLine2>
  <ShipToCity>sample string 18</ShipToCity>
  <ShipToCountry>sample string 20</ShipToCountry>
  <ShipToPostalCode>sample string 21</ShipToPostalCode>
  <ShipToRegion>sample string 19</ShipToRegion>
  <Status>sample string 22</Status>
</CodatCustomerRequestModel>

multipart/form-data

Sample:
<CodatCustomerRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><AddressLine1>sample string 8</AddressLine1><AddressLine2>sample string 9</AddressLine2><City>sample string 10</City><CodatCustomerId>sample string 2</CodatCustomerId><ContactName>sample string 4</ContactName><Country>sample string 12</Country><CustomerID>1</CustomerID><CustomerName>sample string 3</CustomerName><DefaultCurrency>sample string 5</DefaultCurrency><EmailAddress>sample string 7</EmailAddress><FirstName>sample string 14</FirstName><LastName>sample string 15</LastName><Phone>sample string 6</Phone><PostalCode>sample string 13</PostalCode><Region>sample string 11</Region><ShipToAddressLine1>sample string 16</ShipToAddressLine1><ShipToAddressLine2>sample string 17</ShipToAddressLine2><ShipToCity>sample string 18</ShipToCity><ShipToCountry>sample string 20</ShipToCountry><ShipToPostalCode>sample string 21</ShipToPostalCode><ShipToRegion>sample string 19</ShipToRegion><Status>sample string 22</Status></CodatCustomerRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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>