GET Payment/GetPromoCodeDetailsByText?code={code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

None.

Response Information

Resource Description

Discounts
NameDescriptionTypeAdditional information
DiscountId

integer

None.

Code

string

None.

Description

string

None.

Type

string

None.

UserId

globally unique identifier

None.

StartDate

date

None.

EndDate

date

None.

EligibleOrderAmount

decimal number

None.

DiscountAmount

decimal number

None.

MaxDiscount

decimal number

None.

Message

string

None.

MaxUsage

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DiscountId": 1,
  "Code": "sample string 2",
  "Description": "sample string 3",
  "Type": "sample string 4",
  "UserId": "ffe4287a-e1e4-4c99-8ec9-b328319302dd",
  "StartDate": "2026-03-27T15:34:00.1178472+05:30",
  "EndDate": "2026-03-27T15:34:00.1178472+05:30",
  "EligibleOrderAmount": 8.0,
  "DiscountAmount": 9.0,
  "MaxDiscount": 10.0,
  "Message": "sample string 11",
  "MaxUsage": 12
}

application/xml, text/xml

Sample:
<Discounts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.payticks.com.Entities">
  <Code>sample string 2</Code>
  <Description>sample string 3</Description>
  <DiscountAmount>9</DiscountAmount>
  <DiscountId>1</DiscountId>
  <EligibleOrderAmount>8</EligibleOrderAmount>
  <EndDate>2026-03-27T15:34:00.1178472+05:30</EndDate>
  <MaxDiscount>10</MaxDiscount>
  <MaxUsage>12</MaxUsage>
  <Message>sample string 11</Message>
  <StartDate>2026-03-27T15:34:00.1178472+05:30</StartDate>
  <Type>sample string 4</Type>
  <UserId>ffe4287a-e1e4-4c99-8ec9-b328319302dd</UserId>
</Discounts>