Product fees management
Retrieve all fees with given productId.
- : 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
the tenant to work on.
testtenantThe unique identifier of the requested product.
A list of site codes.
mainWhether only the fee-id is in the response or the full fees.
falseThe 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.
*["57b30fd2289c48001daf5486","96b30fd4586c48001daf1752"]Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Access token does not contain necessary scopes or tenant in path does not match tenant from token.
GET /fee/{tenant}/productFees/{productId}/fees HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "5d94587853b0c7036ab0ab7b",
"active": true,
"code": "lemon_picking_fee",
"feeAbsolute": {
"amount": 4.5,
"currency": "EUR"
},
"feeType": "ABSOLUTE",
"name": "Lemon Picking Fee",
"siteCode": "main",
"taxable": false,
"yrn": "urn:yaas:saasag:fee:id:tenantName;5d94587853b0c7036ab0ab7b"
},
{
"id": "5d94587853b0c7036ab0ab7b",
"active": true,
"code": "apple_picking_fee",
"feeAbsolute": {
"amount": 3.5,
"currency": "EUR"
},
"feeType": "ABSOLUTE",
"name": "Apple Picking Fee",
"siteCode": "main",
"taxable": false,
"yrn": "urn:yaas:saasag:fee:id:tenantName;5d9457d953b0c7036ab0ab7a"
}
]- : 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
the tenant to work on.
testtenantThe unique identifier of the requested product.
A list of site codes.
mainBoolean parameter that defines the update type. By default, its value is false. For partial updates, the value is true.
falseResource updated successfully.
No content
Request was syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Access token does not contain necessary scopes or tenant in path does not match tenant from token.
PUT /fee/{tenant}/productFees/{productId}/fees HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"feeIds": [
"57b30fd2289c48001daf5486",
"96b30fd4586c48001daf1752"
]
}No content
- : 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
the tenant to work on.
testtenantThe unique identifier of the requested product.
Resource deleted successfully.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Access token does not contain necessary scopes or tenant in path does not match tenant from token.
DELETE /fee/{tenant}/productFees/{productId}/fees HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
- : 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
the tenant to work on.
testtenantThe unique identifier of the requested product.
Resource deleted successfully.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Access token does not contain necessary scopes or tenant in path does not match tenant from token.
The requested resource does not exist.
DELETE /fee/{tenant}/productFees/{productId}/fees/{feeId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Was this helpful?

