Core

Core plugin endpoints

Core plugin endpoints

Fetch snippets

get

Get a List of snippets

Responses
get
/snippets
200

Found snippets

Add employee to company

post

Add employee to company

Responses
post
/b2b/employee/add
200Success

Save employee

post

Create new employee

Body
anyOptional
Responses
post
/b2b/employee
200

Employee

No content

Get employee

get

Get a employee

Query parameters
isstringRequired

The required id can be found within the "employee" response:

query["response"]["elements"]["employee"]["id"]

Responses
get
/b2b/employee/{id}
200Success

No content

Delete employee

delete

Delete a employee

Query parameters
idstringRequired

The required id can be found within the "employee" response:

query["response"]["elements"]["employee"]["id"]

Responses
delete
/b2b/employee/{id}
200

success

No content

Update employee

patch

Update existing employee

Query parameters
idstringRequired

The required id can be found within the "employee" response:

query["response"]["elements"]["employee"]["id"]

Body
anyOptional
Responses
patch
/b2b/employee/{id}
200Success

Fetch employees

post

Get a List of employees

Responses
post
/b2b/employees
200Success

No content

Fetch customers of employee

post

Get a List of customers

Body
anyOptional
Responses
post
/b2b/employee-customers
200Success

No content

Send email with login link

post

Send email with login link

Responses
post
/passwordless-login
200

Success

No content

Login without password

post

Login without password

Query parameters
hashstringRequired

hash

Responses
post
/passwordless-login/{hash}
200Success

Fetch Customer Activity Types

get

Customer Activity Type

Responses
get
/sales-representative/customer-activity-type
200Success

No content

Fetch Customer Activity Types

get

Customer Activity Type

Responses
get
/sales-representative/customer-activity-type/list
200Success

No content

Get Customer Activity Type by ID

post

This route is used to load the Customer Activity Type.

Authorizations
sw-context-tokenstringRequired
Path parameters
customerActivityTypeIdstringRequired

Customer Activity Type ID

Responses
post
/sales-representative/customer-activity-type/{id}
200Success

No content

Fetch Platform CMS page

get

Get a rendered Platform CMS page

Query parameters
idstringRequired

pageId

Responses
get
/platform-cms/{id}
200

rendered Platform CMS page

Fetch Order by employeeId

post

This route is used to load the orders by Employee.

Authorizations
sw-context-tokenstringRequired
Path parameters
employeeIdstringRequired

Employee ID

Responses
post
/sales-representative/customer-activity-order/{id}
200Success

No content

post

This route is used create a Customer Activity.

Body
anyOptional
Responses
post
/sales-representative/customer-activity
200Success

No content

put

This route is used update a Customer Activity.

Body
anyOptional
Responses
put
/sales-representative/customer-activity
200Success

No content

get

This route is used to list the Customer Activity.

Body
anyOptional
Responses
get
/sales-representative/customer-activity/list
200Success

No content

Customer Activity

get

This route is used to load the Customer Activity.

Authorizations
sw-context-tokenstringRequired
Path parameters
customerActivityIdstringRequired

Customer Activity ID

Responses
get
/sales-representative/customer-activity/{id}
200Success

No content

delete

This route is used to delete the Customer Activity.

Path parameters
customerActivityIdstringRequired

Customer Activity ID

Responses
delete
/sales-representative/customer-activity/{id}
200Success

Import employees

post

Import employees as CSV

Body
Responses
post
/b2b/employee-import
200

Status Info

No content

Export employees

post

Exports all employees as CSV

Responses
post
/b2b/employee-export
200

The CSV containing all employees

Fetch Customer Prices

post

Get a List of Customer Prices

Responses
post
/customer-prices
200Success

No content

Fetch Login Targets

get

Get a List of Login Targets

Responses
get
/login-targets
200Success

No content

Fetch employee order

get

Get a employee order

Query parameters
idstringRequired

id of the order

Responses
get
/b2b/employee-order/{id}
200Success

No content

Fetch employee orders

post

Get a List of employee orders

Responses
post
/b2b/employee-orders
200Success

Update sales representative

patch

update existing sales representative

Query parameters
idstringRequired

id of sales representative

Responses
patch
/sales-representative/{id}
200Success

Fetch sales representative for current customer

get

Get sales representative for current customer

Responses
get
/sales-representative
200Success

Fetch orders for sales representative

post

Get a list of orders

Responses
post
/sales-representative/orders
200Success

Fetch employees for sales representative

post

Get a list of employees

Responses
post
/sales-representative/employees
200Success

No content

Search products

post

Get a List of products

Body
anyOptional
Responses
post
/b2b/fast-order-product-search
200

Found products

No content

Fetch ordered products

post

Get a list od ordered products

Responses
post
/ordered-products
200Success

No content

Fetch product table

post

Get product table

Body
anyOptional
Responses
post
/product-table-listing
200Success

Fetch sales statistics

post

Get a sales statistics

Query parameters
customerIdstringRequired

Customer ID

Responses
post
/sales-representative/sales-statistics
200Success

No content

Request Account

post

Request Account for new employee

Body
anyOptional
Responses
post
/account-request
200

empty response

No content

Fetch Customer Documents

post

Get a List of Customer Documents

Responses
post
/customer-documents/
200Success

No content

Get the document

get

reads the requested document

Responses
get
/customer-document/{fileName}
200

the document

No content

Send a password recovery mail

post

This operation is Step 1 of the password reset flow. Make sure to implement Step 2 "Reset password with recovery credentials" in order to allow for the complete flow in your application. Sends a recovery mail containing a link with credentials that allows a customer to reset their password.

Authorizations
sw-context-tokenstringRequired
Body
emailstringRequired

E-Mail address to identify the customer

storefrontUrlstringRequired

URL of the storefront to use for the generated reset link. It has to be a domain that is configured in the sales channel domain settings.

Responses
post
/b2b/employee/recovery-password
200

If email corresponds to an existing customer, a mail will be sent out to that customer containing a link assembled using the following schema:

Returns a success indicating a successful initialisation of the reset flow.

No content

Delete Employee Role

delete

Delete an existing Employee Role

Query parameters
idstringRequired

Id of Employee Role to delete

Responses
delete
/b2b/employee-roles/{id}
200

Success

No content

Update Employee Role

patch

Update an existing Employee Role

Query parameters
idstringRequired

Id of Employee Role to update

Responses
patch
/b2b/employee-roles/{id}
200

Success

No content

Save Employee Role

post

Create a new Employee Role

Responses
post
/b2b/employee-roles/create
200

Success

No content

Fetch Employee Roles

post

Get a List of Employee Roles

Responses
post
/b2b/employee-roles
200Success

No content

Switch address

get

replace billing or shipping address

Query parameters
addressIdstringRequired

Id of the address to be set

typeundefined · enumRequired

type of address to switch

Possible values:
Responses
get
/b2b/address/switch-{type}/{addressId}
200

Success

No content

Search customers

post

search for customers

Body
anyOptional
Responses
post
/sales-representative/customer-search
200Success

No content

Fetch sales ranking

post

Get a sales ranking

Body
customerIdstringOptional

Customer

Pattern: ^[0-9a-f]{32}$
Responses
post
/sales-representative/customer-sales-ranking
200Success

No content

Fetch customers

post

Get a List customers

Responses
post
/sales-representative/customers
200Success

No content

Fetch last orders of customer

post

Get a List of last orders of customer

Responses
post
/sales-representative/customer-last-orders
200

Found orders

No content

Fetch orders of customer

get

Get a List of orders of customer

Authorizations
sw-context-tokenstringRequired
Query parameters
customerIdstringRequired

customer id

Responses
get
/sales-representative/customer-orders/{customerId}
200

An array of orders from the requested customer

No content

Fetch Employee Permissions

post

Get a List of Employee Permissions

Responses
post
/b2b/employee-permissions
200Success

No content

Get employee invitations

get

Get employee invitations

Responses
get
/b2b/employee-invitations
200Success

No content

Get employee invitation

get

Get employee invitation

Query parameters
idstringRequired

employee invitation id

Responses
get
/b2b/employee-invitation/{id}
200Success

No content

Delete employee invitation

delete

Delete employee invitation

Query parameters
idstringRequired

employee invitation id

Responses
delete
/b2b/employee-invitation/{id}
200

Success

No content

Create employee from invite

post

Import employees as CSV

Query parameters
hashstringRequired

hash from invitation

Responses
post
/invitation-employee/{hash}
200

Status Info

No content

Create an invitation

post

creates an invitation for an employee

Responses
post
/create-invitation
200

Status Info

No content

Fetch express checkout setting

get

Get express checkout setting

Responses
get
/express-checkout-setting
200Success

No content

Update express checkout setting

patch

Update express checkout setting

Body
anyOptional
Responses
patch
/express-checkout-setting
200

Success

No content

Fetch Employee Permission Groups

post

Get a List of Employee Permission Groups

Responses
post
/b2b/employee-permission-groups
200Success

No content

Add products to cart

post

add products to cart

Body
anyOptional
Responses
post
/b2b/add-to-cart
200

Success

No content

list products

post

Get a List of products

Body
anyOptional
Responses
post
/b2b/product-details
200

Found products

No content

Search products

post

Get a list of products

Body
anyOptional
Responses
post
/platform-product-search
200Success

get price for product

post

Calculates the price for a given product and quantity

Query parameters
quantitynumberRequired

quantity of product

idstringRequired

product id

Responses
post
/product-price/{id}/{quantity}
200Success

No content

Fetch platform menu

get

Fetch platform menu

Query parameters
depthintegerRequired

depth

Responses
get
/b2b/platform-menu
200

Found Fetch platform menu

No content

Fetch platform menu

post

Fetch platform menu

Query parameters
depthintegerRequired

depth

Responses
post
/b2b/platform-menu
200

Found Fetch platform menu

No content

Last updated

Was this helpful?