Product fees management

Retrieving all fees with given productId

get

Retrieve all fees with given productId.

Required scopes
This endpoint requires the following scopes:
  • : Needed to create a fee
  • : Needed to update a fee
  • : Needed to delete a fee
  • : Needed to create an item fee
  • : Needed to update an item fee
  • : Needed to delete an item fee
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

the tenant to work on.

Example: testtenant
productIdstringRequired

The unique identifier of the requested product.

Query parameters
siteCodestringOptional

A list of site codes.

Default: main
expandbooleanOptional

Whether only the fee-id is in the response or the full fees.

Default: false
Header parameters
Accept-Languagestring · min: 1Optional

The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.

Default: *
Responses
get
/fee/{tenant}/productFees/{productId}/fees

Adding a list of fees to a product

put

Adds a list of feeIds to the itemYRN.


Required scopes

  • fee.item_update

Required scopes
This endpoint requires the following scopes:
  • : Needed to create a fee
  • : Needed to update a fee
  • : Needed to delete a fee
  • : Needed to create an item fee
  • : Needed to update an item fee
  • : Needed to delete an item fee
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

the tenant to work on.

Example: testtenant
productIdstringRequired

The unique identifier of the requested product.

Query parameters
siteCodestringOptional

A list of site codes.

Default: main
partialbooleanOptional

Boolean parameter that defines the update type. By default, its value is false. For partial updates, the value is true.

Default: false
Body
feeIdsstring[]Required
Responses
put
/fee/{tenant}/productFees/{productId}/fees

No content

Deleting all fees of an itemYRN

delete

Deletes item fee with specified productId in the itemYRN


Required scopes

  • fee.fee_delete and/or

  • fee.item_delete

Required scopes
This endpoint requires the following scopes:
  • : Needed to create a fee
  • : Needed to update a fee
  • : Needed to delete a fee
  • : Needed to create an item fee
  • : Needed to update an item fee
  • : Needed to delete an item fee
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

the tenant to work on.

Example: testtenant
productIdstringRequired

The unique identifier of the requested product.

Responses
204

Resource deleted successfully.

No content

delete
/fee/{tenant}/productFees/{productId}/fees

No content

Deleting a fee from the itemYRN

delete

Deletes a fee for the specified productId and optionally deletes item fee if does not contain any more fee ids.


Required scopes

  • fee.fee_delete and/or

  • fee.item_delete

Required scopes
This endpoint requires the following scopes:
  • : Needed to create a fee
  • : Needed to update a fee
  • : Needed to delete a fee
  • : Needed to create an item fee
  • : Needed to update an item fee
  • : Needed to delete an item fee
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
feeIdstringRequired
tenantstringRequired

the tenant to work on.

Example: testtenant
productIdstringRequired

The unique identifier of the requested product.

Responses
204

Resource deleted successfully.

No content

delete
/fee/{tenant}/productFees/{productId}/fees/{feeId}

No content

Last updated

Was this helpful?