ReDoc documentation
Remove the shipping discount from the given cart, if any. Idempotent: removing a cart with no discount set is a no-op, not an error.
401 Unauthorized
Internal Server error
Unexpected error
{- "code": 0,
- "errors": [
- {
- "message": "string",
- "parameters": [
- {
- "fieldName": "string",
- "fieldValue": "string",
- "resources": "string"
}
]
}
], - "message": "string",
- "parameters": [
- {
- "fieldName": "string",
- "fieldValue": "string",
- "resources": "string"
}
], - "trace": "string"
}Get the active shipping discount on the given cart.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "actor_user_id": 0,
- "actor_user_type": 0,
- "amount": 0,
- "applied_amount": 0,
- "base_amount": 0,
- "base_applied_amount": 0,
- "cart_id": 0,
- "reason": "string"
}Set (or replace) the shipping discount on the given cart.
401 Unauthorized
Internal Server error
Unexpected error
{- "amount": 0,
- "reason": "string"
}{- "code": 0,
- "errors": [
- {
- "message": "string",
- "parameters": [
- {
- "fieldName": "string",
- "fieldValue": "string",
- "resources": "string"
}
]
}
], - "message": "string",
- "parameters": [
- {
- "fieldName": "string",
- "fieldValue": "string",
- "resources": "string"
}
], - "trace": "string"
}