UpdateCustomer

RazorCart > Integration > REST API
Usage
Update a customer information
Basic URI
/DesktopModules/RazorCart/Services/v1/Customers/{id}
Parameters
int id               The customer Id
Data
customer         The customer object
AUTH
Bearer JWT
Required Scope(s)
customers, edit
 
Request
PUT https://domain.com/DesktopModules/RazorCart/Services/v1/Customers/15 HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"HomePhone":"314-591-1111","BillingAdress":"4458 Blane Street","BillingZip":"63101","AnniversaryDate":"2017-03-15"}
 
Response
{
  "CustomerID": 15,
  "FirstName": "Edgar",
  "LastName": "Sanchez",
  "Address1": "4458 Blane Street",
  "Address2": "Apt 21",
  "City": "Stlouis",
  "Country": "US",
  "State": "MO",
  "Zip": "63101",
  "HomePhone": "314-591-1111",
  "CellPhone": "314-591-3495",
  "WorkPhone": null,
  "Email": "EdgarSSanchez@armyspy.com ",
  "AccountNo": null,
  "MaskAccountNo": null,
  "ABAExpire": null,
  "BillingAdress": "4458 Blane Street",
  "BillingZip": "63101",
  "DNNLogin": "edsan11",
  "DateCreated": "2017-03-03T13:27:19.087",
  "Contact": false,
  "IPAddress": null,
  "UDF": null,
  "PortalID": 0,
  "CompanyName": "Smith Consulting",
  "BuyerRole": null,
  "AnniversaryDate": "2017-03-15T00:00:00",
  "CreditLimit": 0,
  "BidLimit": 0,
  "ModifiedBy": "host",
  "DateModified": "2017-03-03T13:59:17.7915286-08:00",
  "TaxID": null,
  "StoreID": 1
}