Heads up, our devs are blazing ahead—docs are catching up, so some features might not be fully documented yet.

Compensation

Compensation

List compensations

get
/tenants/{tenantUid}/compensations

List compensations

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
get
/tenants/{tenantUid}/compensations
200

Example response

Add new Compensation

post
/tenants/{tenantUid}/compensations

Add new Compensation

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringRequired
codestringRequired
compensationUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
201

Example response

application/json
post
/tenants/{tenantUid}/compensations
201

Example response

Get compensation details

get
/tenants/{tenantUid}/compensations/{compensationUid}

Get compensation details

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
Responses
get
/tenants/{tenantUid}/compensations/{compensationUid}
200

Example response

Update compensation details

put
/tenants/{tenantUid}/compensations/{compensationUid}

Update compensation details

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringOptional
codestringOptional
RequireReferringOrderLinesbooleanOptional

When an order is marked with a compensation with this field set to true, the order must have order lines referring to a settled sale

Responses
put
/tenants/{tenantUid}/compensations/{compensationUid}
200

Example response

Delete a compensation

delete
/tenants/{tenantUid}/compensations/{compensationUid}

Delete a compensation

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/compensations/{compensationUid}
204

No Content

No content

List Compensation reasons

get
/tenants/{tenantUid}/compensations/{compensationUid}/reasons

List Compensation reasons

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
get
/tenants/{tenantUid}/compensations/{compensationUid}/reasons
200

Example response

Add a compensation reason

post
/tenants/{tenantUid}/compensations/{compensationUid}/reasons

Add a compensation reason

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
Body

productUid refers to the product that is added to an order when this compensation reason is added to the order. limit is the amount of total compensations on an order. Returns a warning if limit is exceeded.

reasonstringRequired
codestringRequired
productUidstringRequiredPattern: ^[A-Za-z0-9-_]*
limitintegerRequired
requireDocumentationbooleanRequired
compensationReasonUidstringOptional
Responses
201

Example response

application/json
post
/tenants/{tenantUid}/compensations/{compensationUid}/reasons
201

Example response

Get Compensation reason details

get
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}

Get Compensation reason details

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
compensationReasonUidstringRequired

Reference to a compensation reason.

Pattern: ^[A-Za-z0-9-_]+
Responses
get
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}
200

Example response

Update compensation reason details

put
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}

Update compensation reason details

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
compensationReasonUidstringRequired

Reference to a compensation reason.

Pattern: ^[A-Za-z0-9-_]+
Body

productUid refers to the product that is added to an order when this compensation reason is added to the order. limit is the amount of total compensations on an order. Returns a warning if limit is exceeded.

reasonstringOptional
codestringOptional
productUidstringOptionalPattern: ^[A-Za-z0-9-_]*
limitintegerOptional
requireDocumentationbooleanOptional
Responses
201

Example response

application/json
put
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}
201

Example response

Delete a Compensation reason

delete
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}

Delete a Compensation reason

Authorizations
AuthorizationstringRequired

Accesstoken recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
compensationUidstringRequired

Reference to a compensation.

Pattern: ^[A-Za-z0-9-_]+
compensationReasonUidstringRequired

Reference to a compensation reason.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/compensations/{compensationUid}/reasons/{compensationReasonUid}
204

No Content

No content

Last updated

Was this helpful?