ShoppingCart

Create cart fees

Changed on

Creates a fee and applies it to the specified cart

post/v3/checkout/shoppingCarts/{shoppingCartId}/fees

Request

Path parameters

shoppingCartIdstring required

Shopping cart ID

Headers

AD-ShoppingCart-Partnerstring required

The partner code of a marketplace

Request body

idstring

Fee ID

externalIdstring

External ID assigned by the fee provider service

createdOnstring

Fee creation date and time

keystring

Key used to identify fee type

currencystring

Currency code (ISO 4217) of the fee

amountnumber

Fee amount

itemIdsstring[]

List of item IDs

metadataobject

Metadata

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

idstring

Fee ID

externalIdstring

External ID assigned by the fee provider service

createdOnstring

Fee creation date and time

keystring

Key used to identify fee type

currencystring

Currency code (ISO 4217) of the fee

amountnumber

Fee amount

itemIdsstring[]

List of item IDs

metadataobject

Metadata

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