POST api/Customer/AddCustomers

Request Information

URI Parameters

None.

Body Parameters

Customerrequest
NameDescriptionTypeAdditional information
customer

BaseCustomerModel

None.

businessid

integer

None.

address

BaseCustomerAddressModel

None.

iscustomeraddress

boolean

None.

table

string

None.

Request Formats

application/json, text/json

Sample:
{
  "customer": {
    "UserId": 1,
    "CustomerTypeId": 1,
    "TitleId": 1,
    "UnRegistered": true,
    "AccountNo": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Mobile": "sample string 4",
    "WorkNo": "sample string 5",
    "Fax": "sample string 6",
    "PersonalEmail": "sample string 7",
    "EmailWork": "sample string 8",
    "CreditLimit": 1.1,
    "HearAboutUs": "sample string 9",
    "DateOfBirth": "2026-03-20T14:25:20.9293309+00:00",
    "LoyaltyBarcode": "sample string 10",
    "TotalPoints": 1,
    "PointsLastUpdated": "2026-03-20T14:25:20.9293309+00:00",
    "AddressLine1": "sample string 11",
    "AddressLine2": "sample string 12",
    "AddressLine3": "sample string 13",
    "Town": "sample string 14",
    "County": "sample string 15",
    "PostCode": "sample string 16",
    "Country": "sample string 17",
    "Latitude": "sample string 18",
    "Longitude": "sample string 19",
    "TotalValue": 1.1,
    "LicenseExpiryDate": "2026-03-20T14:25:20.9293309+00:00",
    "Active": true,
    "OnHold": true,
    "QRCodePath": "sample string 20",
    "IsDeleted": true,
    "TotalRedeemed": 1,
    "table": "sample string 21",
    "CreatedBy": 1,
    "ModifiedBy": 1,
    "CreatedDate": "2026-03-20T14:25:20.9293309+00:00",
    "LastUpdated": "2026-03-20T14:25:20.9293309+00:00",
    "Id": 1
  },
  "businessid": 1,
  "address": {
    "CustomerId": 1,
    "AddressLine1": "sample string 1",
    "AddressLine2": "sample string 2",
    "AddressLine3": "sample string 3",
    "Town": "sample string 4",
    "County": "sample string 5",
    "Country": "sample string 6",
    "PostCode": "sample string 7",
    "Tel": "sample string 8",
    "Latitude": "sample string 9",
    "Longitude": "sample string 10",
    "IsDeleted": true,
    "CreatedBy": 1,
    "ModifiedBy": 1,
    "CreatedDate": "2026-03-20T14:25:20.9293309+00:00",
    "LastUpdated": "2026-03-20T14:25:20.9293309+00:00",
    "Id": 1
  },
  "iscustomeraddress": true,
  "table": "sample string 3"
}

application/xml, text/xml

Sample:
<Customerrequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <address xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:CreatedDate>2026-03-20T14:25:20.9293309+00:00</d2p1:CreatedDate>
    <d2p1:LastUpdated>2026-03-20T14:25:20.9293309+00:00</d2p1:LastUpdated>
    <d2p1:CreatedBy>1</d2p1:CreatedBy>
    <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
    <d2p1:AddressLine1>sample string 1</d2p1:AddressLine1>
    <d2p1:AddressLine2>sample string 2</d2p1:AddressLine2>
    <d2p1:AddressLine3>sample string 3</d2p1:AddressLine3>
    <d2p1:Country>sample string 6</d2p1:Country>
    <d2p1:County>sample string 5</d2p1:County>
    <d2p1:CustomerId>1</d2p1:CustomerId>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:Latitude>sample string 9</d2p1:Latitude>
    <d2p1:Longitude>sample string 10</d2p1:Longitude>
    <d2p1:PostCode>sample string 7</d2p1:PostCode>
    <d2p1:Tel>sample string 8</d2p1:Tel>
    <d2p1:Town>sample string 4</d2p1:Town>
  </address>
  <businessid>1</businessid>
  <customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:CreatedDate>2026-03-20T14:25:20.9293309+00:00</d2p1:CreatedDate>
    <d2p1:LastUpdated>2026-03-20T14:25:20.9293309+00:00</d2p1:LastUpdated>
    <d2p1:CreatedBy>1</d2p1:CreatedBy>
    <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
    <d2p1:AccountNo>sample string 1</d2p1:AccountNo>
    <d2p1:Active>true</d2p1:Active>
    <d2p1:AddressLine1>sample string 11</d2p1:AddressLine1>
    <d2p1:AddressLine2>sample string 12</d2p1:AddressLine2>
    <d2p1:AddressLine3>sample string 13</d2p1:AddressLine3>
    <d2p1:Country>sample string 17</d2p1:Country>
    <d2p1:County>sample string 15</d2p1:County>
    <d2p1:CreditLimit>1.1</d2p1:CreditLimit>
    <d2p1:CustomerTypeId>1</d2p1:CustomerTypeId>
    <d2p1:DateOfBirth>2026-03-20T14:25:20.9293309+00:00</d2p1:DateOfBirth>
    <d2p1:EmailWork>sample string 8</d2p1:EmailWork>
    <d2p1:Fax>sample string 6</d2p1:Fax>
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:HearAboutUs>sample string 9</d2p1:HearAboutUs>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:Latitude>sample string 18</d2p1:Latitude>
    <d2p1:LicenseExpiryDate>2026-03-20T14:25:20.9293309+00:00</d2p1:LicenseExpiryDate>
    <d2p1:Longitude>sample string 19</d2p1:Longitude>
    <d2p1:LoyaltyBarcode>sample string 10</d2p1:LoyaltyBarcode>
    <d2p1:Mobile>sample string 4</d2p1:Mobile>
    <d2p1:OnHold>true</d2p1:OnHold>
    <d2p1:PersonalEmail>sample string 7</d2p1:PersonalEmail>
    <d2p1:PointsLastUpdated>2026-03-20T14:25:20.9293309+00:00</d2p1:PointsLastUpdated>
    <d2p1:PostCode>sample string 16</d2p1:PostCode>
    <d2p1:QRCodePath>sample string 20</d2p1:QRCodePath>
    <d2p1:TitleId>1</d2p1:TitleId>
    <d2p1:TotalPoints>1</d2p1:TotalPoints>
    <d2p1:TotalRedeemed>1</d2p1:TotalRedeemed>
    <d2p1:TotalValue>1.1</d2p1:TotalValue>
    <d2p1:Town>sample string 14</d2p1:Town>
    <d2p1:UnRegistered>true</d2p1:UnRegistered>
    <d2p1:UserId>1</d2p1:UserId>
    <d2p1:WorkNo>sample string 5</d2p1:WorkNo>
    <d2p1:table>sample string 21</d2p1:table>
  </customer>
  <iscustomeraddress>true</iscustomeraddress>
  <table>sample string 3</table>
</Customerrequest>

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 'Customerrequest'.

Response Information

Resource Description

UpsertCustomerResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

BaseObject

BaseCustomerModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "BaseObject": {
    "UserId": 1,
    "CustomerTypeId": 1,
    "TitleId": 1,
    "UnRegistered": true,
    "AccountNo": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Mobile": "sample string 4",
    "WorkNo": "sample string 5",
    "Fax": "sample string 6",
    "PersonalEmail": "sample string 7",
    "EmailWork": "sample string 8",
    "CreditLimit": 1.1,
    "HearAboutUs": "sample string 9",
    "DateOfBirth": "2026-03-20T14:25:21.2574627+00:00",
    "LoyaltyBarcode": "sample string 10",
    "TotalPoints": 1,
    "PointsLastUpdated": "2026-03-20T14:25:21.2574627+00:00",
    "AddressLine1": "sample string 11",
    "AddressLine2": "sample string 12",
    "AddressLine3": "sample string 13",
    "Town": "sample string 14",
    "County": "sample string 15",
    "PostCode": "sample string 16",
    "Country": "sample string 17",
    "Latitude": "sample string 18",
    "Longitude": "sample string 19",
    "TotalValue": 1.1,
    "LicenseExpiryDate": "2026-03-20T14:25:21.2574627+00:00",
    "Active": true,
    "OnHold": true,
    "QRCodePath": "sample string 20",
    "IsDeleted": true,
    "TotalRedeemed": 1,
    "table": "sample string 21",
    "CreatedBy": 1,
    "ModifiedBy": 1,
    "CreatedDate": "2026-03-20T14:25:21.2574627+00:00",
    "LastUpdated": "2026-03-20T14:25:21.2574627+00:00",
    "Id": 1
  }
}

application/xml, text/xml

Sample:
<UpsertCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <BaseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:CreatedDate>2026-03-20T14:25:21.2574627+00:00</d2p1:CreatedDate>
    <d2p1:LastUpdated>2026-03-20T14:25:21.2574627+00:00</d2p1:LastUpdated>
    <d2p1:CreatedBy>1</d2p1:CreatedBy>
    <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
    <d2p1:AccountNo>sample string 1</d2p1:AccountNo>
    <d2p1:Active>true</d2p1:Active>
    <d2p1:AddressLine1>sample string 11</d2p1:AddressLine1>
    <d2p1:AddressLine2>sample string 12</d2p1:AddressLine2>
    <d2p1:AddressLine3>sample string 13</d2p1:AddressLine3>
    <d2p1:Country>sample string 17</d2p1:Country>
    <d2p1:County>sample string 15</d2p1:County>
    <d2p1:CreditLimit>1.1</d2p1:CreditLimit>
    <d2p1:CustomerTypeId>1</d2p1:CustomerTypeId>
    <d2p1:DateOfBirth>2026-03-20T14:25:21.2574627+00:00</d2p1:DateOfBirth>
    <d2p1:EmailWork>sample string 8</d2p1:EmailWork>
    <d2p1:Fax>sample string 6</d2p1:Fax>
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:HearAboutUs>sample string 9</d2p1:HearAboutUs>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:Latitude>sample string 18</d2p1:Latitude>
    <d2p1:LicenseExpiryDate>2026-03-20T14:25:21.2574627+00:00</d2p1:LicenseExpiryDate>
    <d2p1:Longitude>sample string 19</d2p1:Longitude>
    <d2p1:LoyaltyBarcode>sample string 10</d2p1:LoyaltyBarcode>
    <d2p1:Mobile>sample string 4</d2p1:Mobile>
    <d2p1:OnHold>true</d2p1:OnHold>
    <d2p1:PersonalEmail>sample string 7</d2p1:PersonalEmail>
    <d2p1:PointsLastUpdated>2026-03-20T14:25:21.2574627+00:00</d2p1:PointsLastUpdated>
    <d2p1:PostCode>sample string 16</d2p1:PostCode>
    <d2p1:QRCodePath>sample string 20</d2p1:QRCodePath>
    <d2p1:TitleId>1</d2p1:TitleId>
    <d2p1:TotalPoints>1</d2p1:TotalPoints>
    <d2p1:TotalRedeemed>1</d2p1:TotalRedeemed>
    <d2p1:TotalValue>1.1</d2p1:TotalValue>
    <d2p1:Town>sample string 14</d2p1:Town>
    <d2p1:UnRegistered>true</d2p1:UnRegistered>
    <d2p1:UserId>1</d2p1:UserId>
    <d2p1:WorkNo>sample string 5</d2p1:WorkNo>
    <d2p1:table>sample string 21</d2p1:table>
  </BaseObject>
  <Message>sample string 2</Message>
  <Status>true</Status>
</UpsertCustomerResponse>