POST
/
api
/
v2
/
platform
/
users
curl --request POST \
  --url http://{defaultHost}/api/v2/platform/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": {
    "email": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "password": "<string>",
    "password_confirmation": "<string>",
    "selected_locale": "<string>",
    "ship_address_id": "<string>",
    "bill_address_id": "<string>",
    "public_metadata": {},
    "private_metadata": {}
  }
}'
{
  "data": {
    "id": "136",
    "type": "user",
    "attributes": {
      "email": "[email protected]",
      "first_name": "Zenia",
      "last_name": "King",
      "selected_locale": "pl",
      "created_at": "2022-11-08T19:35:54.351Z",
      "updated_at": "2022-11-08T19:35:54.351Z",
      "public_metadata": {},
      "private_metadata": {},
      "average_order_value": [],
      "lifetime_value": [],
      "store_credits": []
    },
    "relationships": {
      "bill_address": {
        "data": null
      },
      "ship_address": {
        "data": null
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Body

application/json
user
object
required

Response

201
application/vnd.api+json
Record created
data
object
required