๐Ÿ™‹โ€โ™‚๏ธ Users

Users are account types to interact with TurinPay services

Create user

POST https://api.turinpay.com/users/

This endpoint allows you to create a user instance.

Query Parameters

Name
Type
Description

email

string

User email for authentication purposes

password

string

User password for authentication purposes

Request Body

Name
Type
Description

email

string

User email for authentication purposes

password

string

User password for authentication purposes

props

string

Additional properties are welcome to add

{
    "_id": "d7e96ab-622f-471f-b2b1-487937941eb",
    "balance": 0,
    "email": "[email protected]"
}

Retrieve user

GET https://api.turinpay.com/users/

This endpoint allows you to retrieve a user instance by id

Headers

Name
Type
Description

X-API-Key

string

Authorisation token from the API key belonging to the user

{
    "_id": "d7e96ab-622f-471f-b2b1-487937941eb",
    "balance": 0,
    "email": "[email protected]"
}

Last updated

Was this helpful?