POST api/GiftCard/Purchase

Function to import giftcard transactions to loyaltii

Request Information

URI Parameters

None.

Body Parameters

GiftCardPurchase
NameDescriptionTypeAdditional information
transactionData

GiftCardTransaction

None.

agreementNumber

integer

None.

customerAddress1

string

None.

customerAddress2

string

None.

customerCity

string

None.

customerCountry

string

None.

customerName

string

None.

discountAmount

integer

None.

email

string

None.

expiryDate

date

None.

glnId

string

None.

ledgerAccountNumber

string

None.

newsletter

boolean

None.

orderNumber

string

None.

paymentFee

integer

None.

paymentMethod

string

None.

paymentReference

string

None.

postageFee

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "transactionData": {
    "amountInOre": 1,
    "cardNumber": "sample string 2",
    "merchantId": "sample string 3",
    "oberthurTransactionId": 4,
    "cardType": "sample string 5",
    "productName": "sample string 6",
    "sdhProductId": "sample string 7",
    "reversal": true,
    "sdhSalespointId": "sample string 9",
    "sdhSalespointName": "sample string 10",
    "transactionCurrencyISO4217": "sample string 11",
    "transactionDateTime": "2026-02-03T04:12:30.651287+00:00",
    "webTransaction": true,
    "bookingReference": "sample string 14",
    "paymentReference": "sample string 15"
  },
  "agreementNumber": 1,
  "customerAddress1": "sample string 2",
  "customerAddress2": "sample string 3",
  "customerCity": "sample string 4",
  "customerCountry": "sample string 5",
  "customerName": "sample string 6",
  "discountAmount": 7,
  "email": "sample string 8",
  "expiryDate": "2026-02-03T04:12:30.651287+00:00",
  "glnId": "sample string 10",
  "ledgerAccountNumber": "sample string 11",
  "newsletter": true,
  "orderNumber": "sample string 13",
  "paymentFee": 14,
  "paymentMethod": "sample string 15",
  "paymentReference": "sample string 16",
  "postageFee": 17
}

text/plain

Sample:
{"transactionData":{"amountInOre":1,"cardNumber":"sample string 2","merchantId":"sample string 3","oberthurTransactionId":4,"cardType":"sample string 5","productName":"sample string 6","sdhProductId":"sample string 7","reversal":true,"sdhSalespointId":"sample string 9","sdhSalespointName":"sample string 10","transactionCurrencyISO4217":"sample string 11","transactionDateTime":"2026-02-03T04:12:30.651287+00:00","webTransaction":true,"bookingReference":"sample string 14","paymentReference":"sample string 15"},"agreementNumber":1,"customerAddress1":"sample string 2","customerAddress2":"sample string 3","customerCity":"sample string 4","customerCountry":"sample string 5","customerName":"sample string 6","discountAmount":7,"email":"sample string 8","expiryDate":"2026-02-03T04:12:30.651287+00:00","glnId":"sample string 10","ledgerAccountNumber":"sample string 11","newsletter":true,"orderNumber":"sample string 13","paymentFee":14,"paymentMethod":"sample string 15","paymentReference":"sample string 16","postageFee":17}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PostResult
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

LoyaltiiId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "LoyaltiiId": 3
}

text/plain

Sample:
{"Success":true,"ErrorMessage":"sample string 2","LoyaltiiId":3}