POST api/discount/calculate

Request Information

URI Parameters

None.

Body Parameters

OrderWithCatalogItemsReqDto
NameDescriptionTypeAdditional information
SubTotalIncludingDeliveryFees

decimal number

None.

OperationKey

string

None.

CatalogItems

Collection of CatalogItemReqDto

None.

Request Formats

application/json, text/json

Sample:
{
  "SubTotalIncludingDeliveryFees": 1.0,
  "OperationKey": "sample string 2",
  "CatalogItems": [
    {
      "Price": 1.0,
      "Key": "sample string 2",
      "Quantity": 3.1
    },
    {
      "Price": 1.0,
      "Key": "sample string 2",
      "Quantity": 3.1
    }
  ]
}

application/xml, text/xml

Sample:
<OrderWithCatalogItemsReqDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Salesforce.Gateway.Core.DiscountAPI.DTOs.Request">
  <CatalogItems>
    <CatalogItemReqDto>
      <Key>sample string 2</Key>
      <Price>1</Price>
      <Quantity>3.1</Quantity>
    </CatalogItemReqDto>
    <CatalogItemReqDto>
      <Key>sample string 2</Key>
      <Price>1</Price>
      <Quantity>3.1</Quantity>
    </CatalogItemReqDto>
  </CatalogItems>
  <OperationKey>sample string 2</OperationKey>
  <SubTotalIncludingDeliveryFees>1</SubTotalIncludingDeliveryFees>
</OrderWithCatalogItemsReqDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.