POST v3/discounts/verify

Request Information

URI Parameters

None.

Body Parameters

StoreFrontDiscountRequest
NameDescriptionTypeAdditional information
code

string

None.

items

Collection of ItemDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "items": [
    {
      "id": 1,
      "productId": 2,
      "description": "sample string 3",
      "quantity": 4,
      "unitPrice": 5.0,
      "total": 6.0,
      "isDiscountPrice": true
    },
    {
      "id": 1,
      "productId": 2,
      "description": "sample string 3",
      "quantity": 4,
      "unitPrice": 5.0,
      "total": 6.0,
      "isDiscountPrice": true
    }
  ]
}

application/xml, text/xml

Sample:
<StoreFrontDiscountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Blumev3.Models">
  <code>sample string 1</code>
  <items>
    <ItemDTO>
      <description>sample string 3</description>
      <id>1</id>
      <isDiscountPrice>true</isDiscountPrice>
      <productId>2</productId>
      <quantity>4</quantity>
      <total>6</total>
      <unitPrice>5</unitPrice>
    </ItemDTO>
    <ItemDTO>
      <description>sample string 3</description>
      <id>1</id>
      <isDiscountPrice>true</isDiscountPrice>
      <productId>2</productId>
      <quantity>4</quantity>
      <total>6</total>
      <unitPrice>5</unitPrice>
    </ItemDTO>
  </items>
</StoreFrontDiscountRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StoreFrontDiscountResponse
NameDescriptionTypeAdditional information
apiStatus

string

None.

isApproved

boolean

None.

data

StoreFrontDiscountDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "apiStatus": "sample string 1",
  "isApproved": true,
  "data": {
    "name": "sample string 1",
    "applyTo": "sample string 2",
    "type": "sample string 3",
    "value": 4.0,
    "code": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<StoreFrontDiscountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Blumev3.Models">
  <apiStatus>sample string 1</apiStatus>
  <data>
    <applyTo>sample string 2</applyTo>
    <code>sample string 5</code>
    <name>sample string 1</name>
    <type>sample string 3</type>
    <value>4</value>
  </data>
  <isApproved>true</isApproved>
</StoreFrontDiscountResponse>