API Requests

Documentation has moved

The information on this page is no longer updated and may be obsolete. The most current Koshelek documentation is now available at the new address:

https://developers.koshelek.app/en/

Get promos

GET https://api.cardsmobile.ru/promo/v1/all

This endpoint allows a partner to obtain a list of partner's created promos.

Request Body

{
  "metadata": {
    "limit": 15,
    "offset": 0,
    "totalCount": 2,
    "activeOnly": false
  },
  "items": [
    {
      "promoId": 1010,
      "name": "Total SALE!",
      "startDate": "2020-09-01T00:00:00+03",
      "endDate": "2020-09-10T00:00:00+03",
      "status": "active"
    },
    {
      "promoId": 977,
      "name": "Meet this week's featured positions!",
      "startDate": "2020-08-20T15:00:00+03",
      "endDate": "2020-08-27T21:00:00+03",
      "status": "completed"
    }
  ]
}

Response parameters:

Get promo details by ID

GET https://api.cardsmobile.ru/promo/v1/details?promoId

This endpoint allows a partner to obtain complete details for a specified promo.

Query Parameters

{
  "promoId": 1010,
  "name": "Shop the BLACK WAY!",
  "startDate": "2020-09-01T00:00:00+03",
  "endDate": "2020-09-10T00:00:00+03",
  "status": "active",
  "images": {
    "imageWide": "https://promo.partner.com/wide.jpg",
    "imageSquare": "https://promo.partner.com/square.jpg"
  },
  "description": "<p>Black Friday is here to smash the prices!</p>\n<p>Get a good discount and shop the black way!</p>\n<p><a href=\"https://www.partner.com/promo/black-friday/?utm_source=crm&utm_medium=wallet&utm_content=promo&utm_campaign=261119_bf_wallet_w48\">See details</a></p>",
  "discount": "10",
  "source": "api"
}

Note that the request body is empty.

Response parameters:

Create new promo

POST https://api.cardsmobile.ru/promo/v1/create

This endpoint allows a partner to create a new promo.

Request Body

{
  "promoId": 1020,
  "status": "planned"
}

Response parameters:

Update existing promo

POST https://api.cardsmobile.ru/promo/v1/update

This endpoint allows the partner to update existing promo metadata.

Request Body

{
  "promoId": 1020,
  "status": "planned"
}

Response parameters:

Last updated