Add surcharge to product
POST/v2/surcharges/add-to-product
Add surcharge to product
Request
- application/json
Body
required
Add surcharge to product input
surchargeIds uuid[]required
List of surcharge ids
productId integerrequired
Product identifier
Responses
- 200
- 400
- 403
- 404
- 500
Surcharge added to product
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Confirmation status value
message stringrequired
Confirmation message
{
"status": "success",
"message": "Successfully [added|removed] surcharges d9b1c4e0-4f1e-4b1e-8b5c-9c2d0a0a6a6e, e4953a4c-d9e5-5241-b9fd-00162fae77d8 to product 4242"
}
Bad request
Forbidden.
Surcharge not found
Unknown adding surcharge to product error
Loading...