Request

Security
OAuth2(Required scopes: FullAccessShopper)
Query
anonUserTokenstringrequired

Anon user token of the user.

Bodyapplication/jsonrequired
Usernamestring, <= 100 charactersrequired

Must be unique across all organizations.

Example:""
FirstNamestring, <= 100 charactersrequired
Example:""
LastNamestring, <= 100 charactersrequired
Example:""
Emailstring, <= 200 charactersrequired
Example:""
Activebooleanrequired

If false, authentication is prohibited.

Example:false
IDstring, <= 100 characters
Example:""
Passwordstring, (password)
Example:""
Phonestring, <= 100 characters
Example:""
TermsAcceptedstring, (date-time)
Example:"2018-01-01T00:00:00-06:00"
xpobject
Example:
{}
curl -i -X PUT \
  'https://api.ordercloud.io/v1/me/register?anonUserToken=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "Buyer": {
      "ID": "",
      "DefaultCatalogID": ""
    },
    "Supplier": {
      "ID": ""
    },
    "Seller": {
      "ID": ""
    },
    "ID": "",
    "CompanyID": "",
    "Username": "",
    "Password": "",
    "FirstName": "",
    "LastName": "",
    "Email": "",
    "Phone": "",
    "TermsAccepted": "2018-01-01T00:00:00-06:00",
    "Active": false,
    "xp": {},
    "AvailableRoles": [
      ""
    ],
    "Locale": {
      "ID": "",
      "OwnerID": "",
      "Currency": "",
      "Language": ""
    },
    "DateCreated": "2018-01-01T00:00:00-06:00",
    "LastActive": "2018-01-01T00:00:00-06:00",
    "PasswordLastSetDate": "2018-01-01T00:00:00-06:00"
  }'

Responses

Bodyapplication/json
access_tokenstring
Example:""
Response
{ "access_token": "" }