HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelogLog In
API Reference

Add a new CustomerGroup

Add a new CustomerGroup

Log in to see full request history
Body Params

CustomerGroup object that needs to be added.

boolean
Defaults to true

CustomerGroup can be used only if active is true.

boolean

If active discount will be auto applied when Order is made bycustomer from this CustomerGroup.

uri
required

URI of the user that created CustomerGroup resource.

date-time

Date and time when CustomerGroup resource was created.

discounts
array of uris

List of discounts that are applicable on this CustomerGroup.

discounts
string
required
length ≤ 100
Defaults to Name of this CustomerGroup object.
int64
required
≥ 0

Numerical value that represents the sorting order for the resources displayed in the UI. Lower values appear higher on the list.

tax_codes
array of strings

List of URI of TaxCode API objects representing tax codes related to the product

tax_codes
boolean
Defaults to false

If true, discounts on this CustomerGroup are not taxed.

tax_free_taxes
array of uris

Only applicable if tax_free is true. If list is empty all taxes are excluded on this CustomerGroup. If not empty, only those taxes would be excluded from this CustomerGroup.

tax_free_taxes
integer
required

URI of the User that updated this object.

date-time

Date and time when object was last updated.

Responses
201

Successful operation

400

Bad request

401

Authorization required

Language
Credentials
Click Try It! to start a request and see the response here!