CreateCustomer

RazorCart > Integration > REST API
Usage
Create a new customer
Basic URI
/DesktopModules/RazorCart/Services/v1/Customers
Data
customer               The customer object
AUTH
Bearer JWT
Required Scope(s)
customers, create
 
Request
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Customers HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

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