Skip to main content

Create new tax

POST 

/v2/taxes

Combination of shopId, code and zone should be unique

Request

Body

required

Create tax input

    shopId integerrequired

    Shop identifier for the tax to apply to... If not provided the default will be inferred from the channel

    code stringnullable

    Possible values: [H, L, N]

    Tax code

    zone stringrequired

    Possible values: <= 2 characters

    Tax zone

    percentage decimalnullable

    Default value: 0

    Tax percentage

    exportCode stringnullable

    Possible values: <= 10 characters

    Tax export code

Responses

Tax created

Schema

    id uuidrequired

    Possible values: >= 36 characters and <= 36 characters

    Tax primary identifier

    shopId integerrequired

    Shop identifier for the tax to apply to

    code stringnullable

    Possible values: [H, L, N]

    Tax code

    zone stringrequired

    Possible values: <= 2 characters

    Tax zone

    percentage decimalnullable

    Default value: 0

    Tax percentage

    exportCode stringnullable

    Possible values: <= 10 characters

    Tax export code

    createdAt date-timerequired

    Default value: CURRENT_TIMESTAMP

    Tax initial creation timestamp

    createdBy integernullable

    Reference to the user that created the tax initially

    lastModifiedAt date-timerequired

    Default value: CURRENT_TIMESTAMP

    Tax last update timestamp

    lastModifiedBy integernullable

    Reference to the user that last modified the tax

Loading...