GET api/receipt?transactionId={transactionId}

Get receipt when buy shopping card, eVoucher, upgrade to private membership

Request Information

URI Parameters

NameDescriptionTypeAdditional information
transactionId

Id for successful transaction

integer

Required

To receive transactionId, please go to

1. POST api/order/beginPayment

2. if order is correct to finish payment, link on payment page will be returned in response

3. Submit credit card, finish payment

4. If payment is success, TransactionId will be added as a query parameter to the url

Body Parameters

None.

Response Information

NameDescriptionTypeAdditional information
BuyerInfo

User infomation for the user who did purchase

BuyerInfo

None.

SellerInfo

Company information, provider for discounts and deals

SellerInfo

None.

OrderNumber

Order number

string

None.

DateOfPurchase

Date of purchase

date

None.

ReceiptItems

List of order items

Collection of ReceiptItem

None.

ReceiptFees

Additional fees for the order

Collection of ReceiptFee

None.

Currency

Currency for all returned amounts

Currency

None.

Response Formats

application/json, text/json

Sample:
{
  "buyerInfo": {
    "firstName": "sample string 1",
    "surname": "sample string 2",
    "address": "sample string 3",
    "address2": "sample string 4",
    "postCode": "sample string 5",
    "town": "sample string 6",
    "cellphoneNumber": "sample string 7"
  },
  "sellerInfo": {
    "name": "sample string 1",
    "infos": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "orderNumber": "sample string 1",
  "dateOfPurchase": "2018-12-10T15:49:49.5118842+01:00",
  "receiptItems": [
    {
      "name": "sample string 1",
      "quantity": 2,
      "price": 3.1,
      "paidPrice": 4.1,
      "savings": 5.1,
      "total": 6.1,
      "handlingFee": 1.1
    },
    {
      "name": "sample string 1",
      "quantity": 2,
      "price": 3.1,
      "paidPrice": 4.1,
      "savings": 5.1,
      "total": 6.1,
      "handlingFee": 1.1
    }
  ],
  "receiptFees": [
    {
      "name": "sample string 1",
      "price": 2.1
    },
    {
      "name": "sample string 1",
      "price": 2.1
    }
  ],
  "currency": {
    "currencySymbol": "sample string 1",
    "isPrefix": true
  }
}