PUT api/Customer

Request Information

URI Parameters

None.

Body Parameters

CustomerProfileUpdateRequestModel
NameDescriptionTypeAdditional information
CustomerID

integer

None.

FirstName

string

None.

LastName

string

None.

CryptoAddress

string

None.

PhoneNo

string

None.

Description

string

None.

Address1

string

None.

Address2

string

None.

Country

string

None.

State

string

None.

City

string

None.

ZIPCode

string

None.

EmailID

string

None.

ShippingAddress1

string

None.

ShippingAddress2

string

None.

ShippingCountry

string

None.

ShippingState

string

None.

ShippingCity

string

None.

ShippingZIPCode

string

None.

IsShippingSameAsBilling

boolean

None.

Request Formats

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

Sample:
{
  "customerID": 1,
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "cryptoAddress": "sample string 3",
  "phoneNo": "sample string 4",
  "description": "sample string 5",
  "address1": "sample string 6",
  "address2": "sample string 7",
  "country": "sample string 8",
  "state": "sample string 9",
  "city": "sample string 10",
  "zipCode": "sample string 11",
  "emailID": "sample string 12",
  "shippingAddress1": "sample string 13",
  "shippingAddress2": "sample string 14",
  "shippingCountry": "sample string 15",
  "shippingState": "sample string 16",
  "shippingCity": "sample string 17",
  "shippingZIPCode": "sample string 18",
  "isShippingSameAsBilling": true
}

application/xml, text/xml

Sample:
<CustomerProfileUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel">
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <City>sample string 10</City>
  <Country>sample string 8</Country>
  <CryptoAddress>sample string 3</CryptoAddress>
  <CustomerID>1</CustomerID>
  <Description>sample string 5</Description>
  <EmailID>sample string 12</EmailID>
  <FirstName>sample string 1</FirstName>
  <IsShippingSameAsBilling>true</IsShippingSameAsBilling>
  <LastName>sample string 2</LastName>
  <PhoneNo>sample string 4</PhoneNo>
  <ShippingAddress1>sample string 13</ShippingAddress1>
  <ShippingAddress2>sample string 14</ShippingAddress2>
  <ShippingCity>sample string 17</ShippingCity>
  <ShippingCountry>sample string 15</ShippingCountry>
  <ShippingState>sample string 16</ShippingState>
  <ShippingZIPCode>sample string 18</ShippingZIPCode>
  <State>sample string 9</State>
  <ZIPCode>sample string 11</ZIPCode>
</CustomerProfileUpdateRequestModel>

multipart/form-data

Sample:
<CustomerProfileUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><Address1>sample string 6</Address1><Address2>sample string 7</Address2><City>sample string 10</City><Country>sample string 8</Country><CryptoAddress>sample string 3</CryptoAddress><CustomerID>1</CustomerID><Description>sample string 5</Description><EmailID>sample string 12</EmailID><FirstName>sample string 1</FirstName><IsShippingSameAsBilling>true</IsShippingSameAsBilling><LastName>sample string 2</LastName><PhoneNo>sample string 4</PhoneNo><ShippingAddress1>sample string 13</ShippingAddress1><ShippingAddress2>sample string 14</ShippingAddress2><ShippingCity>sample string 17</ShippingCity><ShippingCountry>sample string 15</ShippingCountry><ShippingState>sample string 16</ShippingState><ShippingZIPCode>sample string 18</ShippingZIPCode><State>sample string 9</State><ZIPCode>sample string 11</ZIPCode></CustomerProfileUpdateRequestModel>

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

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/NFTWards.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/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>