Product Fees management
Retrieve all fees with given productId.
the tenant to work on.
testtenant
The unique identifier of the requested product.
A list of site codes.
main
Whether only the fee-id is in the response or the full fees.
false
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.
*
["57b30fd2289c48001daf5486","96b30fd4586c48001daf1752"]
Request syntactically incorrect. Any details will be provided within 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"
}
]
the tenant to work on.
testtenant
The unique identifier of the requested product.
A list of site codes.
main
Boolean parameter that defines the update type. By default, its value is false. For partial updates, the value is true.
false
Resource updated successfully.
Request was syntactically incorrect. Any details will be provided within 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
the tenant to work on.
testtenant
The 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
the tenant to work on.
testtenant
The 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?