For the complete documentation index, see llms.txt. This page is also available as Markdown.

Discounts

Discount items applied to the user's past orders

List Discount Items

get

Lists discount items (promotional discount applications) used in the user's past orders.

Business Logic:

  • Only promotions where conditional_offer.status = USED

  • Includes discount records from all user orders

  • Each item includes: name, amount, order number, creation date, currency

  • Supports pagination

  • Sorted by newest first (-created_date)

Authorizations
Query parameters
pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
200

Successful response

application/json

Paginated discount item list

countintegerRequired

Total record count

Example: 45
nextstring · nullableOptional

Next page URL (if any)

Example: https://sandbox.akinon.com/account/discount-items/?page=2
previousstring · nullableOptional

Previous page URL (if any)

get/discount-items/
GET /account/discount-items/ HTTP/1.1
Host: sandbox.akinon.com
X-Cookie: osessionid=abc123
Accept: */*
{
  "count": 45,
  "next": "https://sandbox.akinon.com/account/discount-items/?page=2",
  "previous": null,
  "results": [
    {
      "name": "New Year Campaign",
      "amount": "200.00",
      "created_date": "2025-11-01T14:30:00Z",
      "order_number": "ORD-2025-001234",
      "currency": {
        "value": "try",
        "label": "TRY"
      }
    },
    {
      "name": "Welcome Discount",
      "amount": "150.00",
      "created_date": "2025-10-28T10:15:00Z",
      "order_number": "ORD-2025-001200",
      "currency": {
        "value": "try",
        "label": "TRY"
      }
    },
    {
      "name": "Free Shipping",
      "amount": "0.00",
      "created_date": "2025-10-25T16:45:00Z",
      "order_number": "ORD-2025-001180",
      "currency": {
        "value": "try",
        "label": "TRY"
      }
    },
    {
      "name": "20% Discount",
      "amount": "180.50",
      "created_date": "2025-10-20T12:00:00Z",
      "order_number": "ORD-2025-001150",
      "currency": {
        "value": "try",
        "label": "TRY"
      }
    }
  ]
}

Last updated

Was this helpful?