Product Fees management
Was this helpful?
Was this helpful?
the tenant to work on.
testtenant
The unique identifier of the requested product.
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.
DELETE /fee/{tenant}/productFees/{productId}/fees/{feeId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
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"]
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
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