ShoppingCart
Create cart fees
Changed onCreates a fee and applies it to the specified cart
post/v3/checkout/shoppingCarts/{shoppingCartId}/fees
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared. Required headers: AD-ShoppingCart-Partner
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
shoppingCartIdstring required
Shopping cart ID
Headers
AD-ShoppingCart-Partnerstring required
The partner code of a marketplace
Request body
Example request
{
"id": "ce402858-4fe8-4254-8b69-73c41142f4ba",
"externalId": "a8bf31a8-fe75-4ab9-9559-dcd41eca9d12",
"createdOn": "2020-10-12 07:20:50.52Z",
"key": "SHIPPING_FEE_100",
"currency": "USD",
"description": {
"defaultDescription": "Some description here. Valid from {$fromDate} until {$toDate}"
}
}Response
OK
Example response
{
"id": "ce402858-4fe8-4254-8b69-73c41142f4ba",
"externalId": "a8bf31a8-fe75-4ab9-9559-dcd41eca9d12",
"createdOn": "2020-10-12 07:20:50.52Z",
"key": "SHIPPING_FEE_100",
"currency": "USD",
"description": {
"defaultDescription": "Some description here. Valid from {$fromDate} until {$toDate}"
}
}Changes
- info
endpoint added
- info