Skip to main content
Skip table of contents

Creating a user

POST/api/v1/billing/user/manage

Headers

Accept

application/json

Body

json

JSON
{
    "login": "test@mail.com",
    "password": "qweasdzxc",
    "type": "type_value",
    "billing_info": {
        "billing_id": "123123123",
        "billing_extra": []
    },
    "status": "active",
    "billing_properties": [
        {
            "type": "phone",
            "value": "+80283289362"
        }
    ]
}

loginrequired

string

user login

passwordrequired

string

password

typerequired

string

user type

billing_inforequired

array

additional information about the user obtained from billing

propertiesrequired

string

property value

statusrequired

string

user status

Response

200

Returns the user object

JSON
{
    "id": 1,
    "login": "test@mail.com",
    "name": null,
    "type": "type_value",
    "status": "active",
    "created_at": "2023-05-02T10:18:50.000000Z",
    "updated_at": "2023-05-02T10:18:50.000000Z",
    "deleted_at": null,
    "can_update_password": false,
    "billing_properties": [
        {
            "type": "phone",
            "value": "+80283289362"
        }
    ]
}
422

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The reason for the error will be described here."
        ]
    }
}

Example

JSON
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "password": "string",
    "type": "string",
    "billing_info": [],
    "properties": "string",
    "status": "string"
}'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.