Updates a commission rate
The id of the commission rate.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEY
This class represents the commission rate command request DTO.
Provides all the types related to CommissionRate.
The unit of the commission rate.
The quantity from.
The quantity to.
The percentage.
The description.
The default commission rate. By default, it is set to false.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user's access was denied.
The user was not found in the system.
API call exceeded rate limit due to too many requests.
PUT /api/v1/commission-rates/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"type": "Discount",
"unit": "text",
"quantityFrom": 1,
"quantityTo": 1,
"percentage": 1,
"description": "text",
"isDefault": true
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": true,
"errors": []
}
Last updated
Was this helpful?