POST api/giftCardManage/GiftCardCode_Apply

Request Information

URI Parameters

None.

Body Parameters

GiftCardCode_Apply
NameDescriptionTypeAdditional information
Id

integer

None.

SalonId

integer

None.

GiftCradId

integer

None.

POSSessionId

integer

None.

CustomerId

integer

None.

Type

string

None.

GiftCardCode

string

None.

Amount

decimal number

None.

ServiceId

string

None.

Price

decimal number

None.

ToName

string

None.

ToPhone

string

None.

FromName

string

None.

FromPhone

string

None.

Message

string

None.

ExpiryDate

date

None.

Image

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SalonId": 2,
  "GiftCradId": 3,
  "POSSessionId": 4,
  "CustomerId": 5,
  "Type": "sample string 6",
  "GiftCardCode": "sample string 7",
  "Amount": 8.0,
  "ServiceId": "sample string 9",
  "Price": 10.0,
  "ToName": "sample string 11",
  "ToPhone": "sample string 12",
  "FromName": "sample string 13",
  "FromPhone": "sample string 14",
  "Message": "sample string 15",
  "ExpiryDate": "2026-02-04T05:10:20.1274383+03:00",
  "Image": "sample string 17"
}

text/xml

Sample:
<GiftCardCode_Apply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
  <Amount>8</Amount>
  <CustomerId>5</CustomerId>
  <ExpiryDate>2026-02-04T05:10:20.1274383+03:00</ExpiryDate>
  <FromName>sample string 13</FromName>
  <FromPhone>sample string 14</FromPhone>
  <GiftCardCode>sample string 7</GiftCardCode>
  <GiftCradId>3</GiftCradId>
  <Id>1</Id>
  <Image>sample string 17</Image>
  <Message>sample string 15</Message>
  <POSSessionId>4</POSSessionId>
  <Price>10</Price>
  <SalonId>2</SalonId>
  <ServiceId>sample string 9</ServiceId>
  <ToName>sample string 11</ToName>
  <ToPhone>sample string 12</ToPhone>
  <Type>sample string 6</Type>
</GiftCardCode_Apply>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GiftCardCode_Apply'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.