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 bol user in the database.
  • Get all bol user.
  • Get an existing bol user.
  • Update an existing bol user.
  • Delete an existing bol user.
  1. API
  2. Endpoints

Bol accounts

All endpoints that are created for managing bol accounts.

Create a new bol user in the database.

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

This endpoint creates a new bol user into the database.

Request Body

Name
Type
Description

userId*

Number

db userId.

clientId*

String

Bol clientId

secret*

String

Bol secret

country*

String

Country (Netherlands)

label*

String

Country label (nl, be, nl-be)

{
    "bolUserId": 1
}
{
    "error": "Missing details"
}

{
    "error": "Failed to add account"
}

Get all bol user.

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

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

[
    {
        "userId": 1,
        "bolUserId": 1,
        "clientId": "50343e9d-66b2-3d74-9eda-2e53485674dd6",
        "secret": ".OP!(d?#[p[D6dk?Y^1[rYCviefESOScWD3[I31d?q5!!VLv!WD7tt!xJ}ODszOP",
        "country": "Netherlands",
        "label": "nl",
        "errorCount": 0,
        "lastError": "0000-00-00 00:00:00.000"
    },
    {
        "userId": 1,
        "bolUserId": 2,
        "clientId": "50343e9d-66b2-3d74-9eda-2e53485674dd6",
        "secret": ".OP!(d?#[p[D6dk?Y^1[rYCviefESOScWD3[I31d?q5!!VLv!WD7tt!xJ}ODszOP",
        "country": "Netherlands",
        "label": "nl",
        "errorCount": 0,
        "lastError": "0000-00-00 00:00:00.000"
    }
]
{
    // Response
}
{
    // Response
}

Get an existing bol user.

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

Get a bol user by their identifier.

Path Parameters

Name
Type
Description

bolUserId*

Number

Bol user identifier

{
    "userId": 13,
    "bolUserId": 1,
    "clientId": "50343e9d-66b2-3d74-9eda-2e53485674dd6",
    "secret": ".OP!(d?#[p[D6dk?Y^1[rYCviefESOScWD3[I31d?q5!!VLv!WD7tt!xJ}ODszOP",
    "country": "Netherlands",
    "label": "nl",
    "errorCount": 0,
    "lastError": "0000-00-00 00:00:00.000"
}

Update an existing bol user.

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

Update bol user information.

Path Parameters

Name
Type
Description

bolUserId*

Number

Bol user identifier

Request Body

Name
Type
Description

clientId

String

Bol clientId

secret

String

Bol secret

country

String

Country (Netherlands)

label

String

Country label (nl, be, nl-be)

addError

Number

Add number to the error count.

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

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

Delete an existing bol user.

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

Delete bol user information.

Path Parameters

Name
Type
Description

bolUserId*

String

Bol user identifier

{
    "error": "Bol User not found."
}
PreviousUser accountsNextWoocommerce

Last updated 2 years ago

⚙️