POST api/Customer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Title

string

None.

LastName

string

None.

FirstName

string

None.

IdNumber

string

None.

Cell

string

None.

Home

string

None.

PartnerName

string

None.

PartnerCell

string

None.

AddressPostal

string

None.

CodePostal

string

None.

AddressResidential

string

None.

CodeResidential

string

None.

Email

string

None.

EmailAlternative

string

None.

EmergenyName

string

None.

EmergencyCell

string

None.

Notes

string

None.

PracticeId

integer

None.

CreatedDate

date

None.

IsDeleted

boolean

None.

DeletedReason

string

None.

DeletedDate

date

None.

LocationGPS

DbGeography

None.

AddressResidentialGeoCode

string

None.

EditKey

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Title": "sample string 2",
  "LastName": "sample string 3",
  "FirstName": "sample string 4",
  "IdNumber": "sample string 5",
  "Cell": "sample string 6",
  "Home": "sample string 7",
  "PartnerName": "sample string 8",
  "PartnerCell": "sample string 9",
  "AddressPostal": "sample string 10",
  "CodePostal": "sample string 11",
  "AddressResidential": "sample string 12",
  "CodeResidential": "sample string 13",
  "Email": "sample string 14",
  "EmailAlternative": "sample string 15",
  "EmergenyName": "sample string 16",
  "EmergencyCell": "sample string 17",
  "Notes": "sample string 18",
  "PracticeId": 19,
  "CreatedDate": "2024-12-21T05:34:43.2426505+00:00",
  "IsDeleted": true,
  "DeletedReason": "sample string 22",
  "DeletedDate": "2024-12-21T05:34:43.2426505+00:00",
  "LocationGPS": null,
  "AddressResidentialGeoCode": "sample string 23",
  "EditKey": "4902320b-a3d9-4554-a22f-b6eca7835486"
}

text/html

Sample:
{"CustomerId":1,"Title":"sample string 2","LastName":"sample string 3","FirstName":"sample string 4","IdNumber":"sample string 5","Cell":"sample string 6","Home":"sample string 7","PartnerName":"sample string 8","PartnerCell":"sample string 9","AddressPostal":"sample string 10","CodePostal":"sample string 11","AddressResidential":"sample string 12","CodeResidential":"sample string 13","Email":"sample string 14","EmailAlternative":"sample string 15","EmergenyName":"sample string 16","EmergencyCell":"sample string 17","Notes":"sample string 18","PracticeId":19,"CreatedDate":"2024-12-21T05:34:43.2426505+00:00","IsDeleted":true,"DeletedReason":"sample string 22","DeletedDate":"2024-12-21T05:34:43.2426505+00:00","LocationGPS":null,"AddressResidentialGeoCode":"sample string 23","EditKey":"4902320b-a3d9-4554-a22f-b6eca7835486"}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.CustomerLedger' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.CustomerLedger' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

Customer
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Title

string

None.

LastName

string

None.

FirstName

string

None.

IdNumber

string

None.

Cell

string

None.

Home

string

None.

PartnerName

string

None.

PartnerCell

string

None.

AddressPostal

string

None.

CodePostal

string

None.

AddressResidential

string

None.

CodeResidential

string

None.

Email

string

None.

EmailAlternative

string

None.

EmergenyName

string

None.

EmergencyCell

string

None.

Notes

string

None.

PracticeId

integer

None.

CreatedDate

date

None.

IsDeleted

boolean

None.

DeletedReason

string

None.

DeletedDate

date

None.

LocationGPS

DbGeography

None.

AddressResidentialGeoCode

string

None.

EditKey

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Title": "sample string 2",
  "LastName": "sample string 3",
  "FirstName": "sample string 4",
  "IdNumber": "sample string 5",
  "Cell": "sample string 6",
  "Home": "sample string 7",
  "PartnerName": "sample string 8",
  "PartnerCell": "sample string 9",
  "AddressPostal": "sample string 10",
  "CodePostal": "sample string 11",
  "AddressResidential": "sample string 12",
  "CodeResidential": "sample string 13",
  "Email": "sample string 14",
  "EmailAlternative": "sample string 15",
  "EmergenyName": "sample string 16",
  "EmergencyCell": "sample string 17",
  "Notes": "sample string 18",
  "PracticeId": 19,
  "CreatedDate": "2024-12-21T05:34:43.3520156+00:00",
  "IsDeleted": true,
  "DeletedReason": "sample string 22",
  "DeletedDate": "2024-12-21T05:34:43.3520156+00:00",
  "LocationGPS": null,
  "AddressResidentialGeoCode": "sample string 23",
  "EditKey": "a42345ca-3ae0-47a5-afa4-408d8972c086"
}

text/html

Sample:
{"CustomerId":1,"Title":"sample string 2","LastName":"sample string 3","FirstName":"sample string 4","IdNumber":"sample string 5","Cell":"sample string 6","Home":"sample string 7","PartnerName":"sample string 8","PartnerCell":"sample string 9","AddressPostal":"sample string 10","CodePostal":"sample string 11","AddressResidential":"sample string 12","CodeResidential":"sample string 13","Email":"sample string 14","EmailAlternative":"sample string 15","EmergenyName":"sample string 16","EmergencyCell":"sample string 17","Notes":"sample string 18","PracticeId":19,"CreatedDate":"2024-12-21T05:34:43.3520156+00:00","IsDeleted":true,"DeletedReason":"sample string 22","DeletedDate":"2024-12-21T05:34:43.3520156+00:00","LocationGPS":null,"AddressResidentialGeoCode":"sample string 23","EditKey":"a42345ca-3ae0-47a5-afa4-408d8972c086"}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VetAPI.DataModel.CustomerLedger' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VetAPI.DataModel.CustomerLedger' contains cycles and cannot be serialized if reference tracking is disabled.