Create a Wholesale Role

This API allows you to create custom wholesale role.

Method

Endpoint

POST

/wp-json/wholesale/v1/roles/

Body Parameters

Type

Required

Description

role_key

string

yes

Wholesale Role key to be created.

role_name

string

yes

Wholesale Role name.

description

string

no

Wholesale Role description.

shipping_class_name

string

no

Shipping class name.

shipping_class_term_id

int

no

Shipping term ID.

only_allow_wholesale_purchases

string

no

Only allow wholesale purchases for this specific role. Value should be "yes" or "no".

Last updated