Minty Bol Connector
  • Introduction
  • ⚙️API
    • Introduction
    • Authentication
    • Endpoints
      • User accounts
      • Bol accounts
      • Woocommerce
      • Modules
      • User Modules
      • Delivery Options
      • Cancel Order
      • Send Order
Powered by GitBook
On this page
  • Create a new user in the database & Api Key.
  • Get all users
  • Get an existing user.
  • Update an existing user.
  • Delete an existing user.
  1. API
  2. Endpoints

User accounts

All endpoints that are created for managing user accounts.

Create a new user in the database & Api Key.

POST https://dev.bol.mintycloud.nl/api/v1/accounts/user

This endpoint creates a new user into the database and adds an API Key. New accounts will have the roleType demo_client by default. This may be changed with other endpoints.

Request Body

Name
Type
Description

email*

String

Email name

verified

Boolean

User verified of unverified

{
    "userId": 1,
    "apiKey": "c8e8db4743daa0d616c842bb164f5c154a1521ce9db6e5db165bf26e786c6c5c"
}
{
    "error": "Email field is required for creating new accounts."
}

Get all users

GET https://dev.bol.mintycloud.nl/api/v1/accounts/user

This endpoint is used for getting all users from the database.

[
    {
        "userId": 1,
        "verified": 1,
        "email": "tickets@example.nl",
        "roleType": "demo_client",
        "licenseKey": "261caef326f21d109c90486719cfdea2",
        "licenseIsActive": 1,
        "licenseExpiryDate": "2022-11-23T13:03:35.789Z",
        "createdAt": "2022-09-09T13:03:35.789Z",
        "errorCount": 5,
        "lastError": "2022-09-09T14:08:26.704Z"
    },
    {
        "userId": 2,
        "verified": 0,
        "email": "support@example.nl",
        "roleType": "demo_client",
        "licenseKey": "2e1d92e4233b32cc22def66d0abe497b",
        "licenseIsActive": 1,
        "licenseExpiryDate": "2022-10-05T10:41:35.877Z",
        "createdAt": "2022-09-21T10:41:35.877Z",
        "errorCount": 0,
        "lastError": null
    },
    {
        "userId": 3,
        "verified": 0,
        "email": "info@example.nl",
        "roleType": "demo_client",
        "licenseKey": "e771197d1bd4a3c3f702d5799e562269",
        "licenseIsActive": 1,
        "licenseExpiryDate": "2022-10-05T14:48:23.395Z",
        "createdAt": "2022-09-21T14:48:23.395Z",
        "errorCount": 0,
        "lastError": null
    }
]
{
    // Response
}
{
    // Response
}

Get an existing user.

GET https://dev.bol.mintycloud.nl/api/v1/accounts/user/:userId

Get a user by their identifier.

Path Parameters

Name
Type
Description

userId*

Number

User identifier

{
    "userId": 1,
    "verified": 1,
    "email": "info@example.nl",
    "roleType": "demo_client",
    "licenseKey": "361caef336f21c109c90486719cfdea2",
    "licenseIsActive": 1,
    "licenseExpiryDate": "2022-11-23T13:03:35.789Z",
    "createdAt": "2022-09-09T13:03:35.789Z",
    "errorCount": 5,
    "lastError": "2022-09-09T14:08:26.704Z"
}
{
    "error": "User not found."
}

Update an existing user.

PUT https://dev.bol.mintycloud.nl/api/v1/accounts/user/:userId

Update user information.

Path Parameters

Name
Type
Description

userId*

Number

User identifier

Request Body

Name
Type
Description

email

String

Set user's email

verified

Boolean

Verified or unverified

roleType

Enum

'admin', 'verified_client', 'demo_client'

licenseIsActive

Boolean

Set the license true or false (active or inactive)

addError

Number

Add number to the error count.

licenseExpiryDate

String

Date string

{
    "message": "User 1 updated."
}
{
    "error": "No data provided."
}

{
    "error": "No valid data provided."
}
{
    "error": "Didn't update any user information."
}

Delete an existing user.

DELETE https://dev.bol.mintycloud.nl/api/v1/accounts/user/:userId

Delete user information.

Path Parameters

Name
Type
Description

userId*

Number

User identifier

{
    "error": "User not found."
}
PreviousEndpointsNextBol accounts

Last updated 2 years ago

⚙️