Sub-resources of customers

All available methods for the sub-resources of the resource customer.

Get customer source records

Get information about all customer account source records.
[badge-blue GET] /customers/{customer_id}/customer-source-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
customer_source_records CustomerSourceRecord[] List of the customer source records
total_items integer Count of all found customer source records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89abe044216e5c09496fd8733/customer-source-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW50ZXJwcmlzZV9pbnRlcmZhY2U6YmIyNzE3ODQxNjc3OGM2YTdjMjU1ZjdkYzZmNzY2MjMNWNmNmZmYjR4ZjdiZWIzMGJhNjdlNmZkZGE4YjM3Mg==

Example response

HTTP/1.1 200 OK
Date: Tue, 29 Sep 2020 15:29:17 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "customer_source_records": [
      {
        "customer_source_id": "8fdce3475560d56e95a6ab035r",
        "customer_id": "89abe044216e5c093496fd8732",
        "external_id": null,
        "last_change": "2018-07-27 11:03:29"
      }
    ],
    "total_items": 1
  }
}


Add a source to a customer

Add one of the customer sources to a customer account
[badge-green POST] /customers/{customer_id}/customer-source-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Request

Parameter name Type Description Mandatory (Yes/No)
customer_source_record CustomerSourceRecord Customer source record Yes

Response

Status code: 201 Created
Output structure : object

Parameter name Type Description
customer_source_record_id string The unique id for the property record

Example Request

POST https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89abe04216e5c093496fd8732/customer-source-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW50ZXJwcmlzZV9pbnRlcmZhY2U6OTE1ZmIwYjM0MzA0NtjNkZTJiMDVhYjcYjMxMWVhODBlY2VjMmYyO

{
  "customer_source_record": {
    "customer_source_id": "83d37e6f1f08e5355d24e74830r"
  }
}

Example response

HTTP/1.1 201 Created
Date: Tue, 13 Apr 2021 13:44:49 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "customer_source_record_id": "88c4e13a765584e8e322390798"
  }
}


Get a collection of properties

Get information about all property records on a customer account
[badge-blue GET] /customers/{customer_id}/property-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
property_records PropertyRecord[] List of property records
total_items integer Count of all found customer sources

Example Request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/8aa209a4c2f84f95204d96bb23/property-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW50ZXJwcmlzZV9pbnRlcmZhY2U6OTE1Zm0MzA0NjNk4ZTJiMVhYjc2MWVhODBlY2VjMmYyODRiZDdlNWUzYTViODBhMTZhMTFjO

Example response

HTTP/1.1 200 OK
Date: Tue, 29 Sep 2020 15:29:17 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "property_records": [
      {
        "property_record_id": "profession:8aa209ac2f844f92014d96bb23",
        "property_id": "profession",
        "property_name": "Profession",
        "property_value": null,
        "last_change": null
      },
      {
        "property_record_id": "contact_person:8aa2049ac2f84952014d96bb23",
        "property_id": "contact_person",
        "property_name": "Project contact person",
        "property_value": [],
        "last_change": null
      },
      {
        "property_record_id": "ico:8aa209ac2f84f9520144d96b23",
        "property_id": "ico",
        "property_name": "IČO",
        "property_value": null,
        "last_change": null
      },
      {
        "property_record_id": "car:8aa2049a2f84f952014d96bb23",
        "property_id": "car",
        "property_name": "Car access",
        "property_value": null,
        "last_change": null
      }
    ],
    "total_items": 4
  }
}


Add a property to a customer

Add a new specific customer property record to a customer account
[badge-green POST] /customers/{customer_id}/property-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Request

Parameter name Type Description Mandatory (Yes/No)
property_record PropertyRecord Customer property record Yes

Response

Status code: 201 Created
Output structure : object

Parameter name Type Description
property_record_id string The unique id for property record

Example Request

POST https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/8aa2094ac284f952014d96bb23/property-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW50ZXJwcmlzZV9pbnRlcmZhY2U6OTE1ZmIwYjM0MzA0Nj4NkZTJiMDVYjc2YjMxMWVhODBlY2VjMmYyODRiZDdlNWUzYTViODBhMTZhMTFjOTkxMQ=

{
  "property_record": {
    "property_id": "contact_person",
    "property_name": "Project contact person",
    "property_value": []
  }
}

Example response

HTTP/1.1 201 Created
Date: Tue, 13 Apr 2021 13:44:49 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "property_record_id": "contact_person:8aa2094ac2f84f92014d96bb23"
  }
}


Update a property on an account

Update a specific customer property record on a customer account
[badge-grey PUT] /customers/{customer_id}/property-records/{property_record_id}

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes
property_record_id string The unique id for the property record Yes

Request

Parameter name Type Description Mandatory (Yes/No)
property_record PropertyRecord Customer property record Yes

Response

Status code: 204 No Content

Example request

PUT https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca20a820c62c79bf03a/property-records/phone_number:89ac83ca207a820c62c79bf03a
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMYjY4MWZjYzRkMQkMQkMQ==

{
  "property_record" : {
    "property_id" : "phone_number",
    "property_value" : "7778881777"
  }
}

Example response

HTTP/1.1 204 No Content
Date: Thu, 06 Aug 2020 08:24:08 GMT
Content-Type: application/json; charset=utf-8


Delete a property on an account

Delete a specific customer property record on a customer account
[badge-red DELETE] /customers/{customer_id}/property-records/{property_record_id}

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes
property_record_id string The unique id for property record Yes

Response

Status code: 204 No Content

Example request

DELETE https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/property-records/phone_number:89ac83ca207a820c62c79bf03a
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 204 No Content
Date: Thu, 06 Aug 2020 08:25:29 GMT
Content-Type: application/json; charset=utf-8


Get a collection of interest records

Get information about all interest records on a customer account
[badge-blue GET] /customers/{customer_id}/interest-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
interest_records InterestRecord[] List of interest records
total_items integer Count of all found intertest records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/interest-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 08:31:46 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "interest_records": [
      {
        "interest_record_id": "87d934c86a6303f5fb4d1214fb",
        "interest_id": "81eaeea13b8984a169c490a325",
        "last_change": "2020-08-06 10:31:09",
        "customer_id": "89ac83ca207a820c62c79bf03a"
      }
    ],
    "total_items": 1
  }
}


Add an interest record to a customer

Add a new specific customer interest record to a customer account
[badge-green POST] /customers/{customer_id}/interest-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Request

Parameter name Type Description Mandatory (Yes/No)
interest_record InterestRecord Customer interest record Yes

Response

Status code: 201 Created
Output structure : object

Parameter name Type Description
interest_record_id string The unique id for the interest record

Example request

POST https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/interest-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

{
  "interest_record" : {
    "interest_id" : "81eaeea13b8984a169c490a325",
    "customer_id" : "89ac83ca207a820c62c79bf03a"
  }
}

Example response

HTTP/1.1 201 Created
Date: Thu, 06 Aug 2020 08:31:09 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "interest_record_id": "87d934c86a6303f5fb4d1214fb"
  }
}


Update an interest record on an account

Update a specific customer interest record on a customer account
[badge-grey PUT] /customers/{customer_id}/interest-records/{interest_record_id}

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes
interest_record_id string The unique id for the interest record Yes

Request

Parameter name Type Description Mandatory (Yes/No)
interest_record InterestRecord Customer interest record Yes

Response

Status code: 204 No Content

Example request

PUT https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/interest-records/87d934c86a6303f5fb4d1214fb
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

{
  "interest_record" : {
    "interest_id" : "8bed991c68a470e7aaeffbf048",
    "customer_id" : "89ac83ca207a820c62c79bf03a"
  }
}

Example response

HTTP/1.1 204 No Content
Date: Thu, 06 Aug 2020 08:34:39 GMT
Content-Type: application/json; charset=utf-8


Delete an interest record on an account

Delete a specific customer interest record on a customer account
[badge-red DELETE] /customers/{customer_id}/interest-records/{interest_record_id}

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes
interest_record_id string The unique id for interest record Yes

Response

Status code: 204 No Content

Example request

DELETE https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/interest-records/87d934c86a6303f5fb4d1214fb
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 204 No Content
Date: Thu, 06 Aug 2020 08:35:31 GMT
Content-Type: application/json; charset=utf-8


Get a collection of segment records

Get information about all segment records on a customer account
[badge-blue GET] /customers/{customer_id}/segment-records

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
segment_records SegmentRecord[] List of segment records
total_items integer Count of all found segment records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/segment-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic  ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 08:48:49 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "segment_records": [
      {
        "segment_id": "83caed4c60c6be7e4392cc25ed",
        "customer_id": "89ac83ca207a820c62c79bf03a"
      },
      {
        "segment_id": "8acce05ee0fa49b342df20ddd9",
        "customer_id": "89ac83ca207a820c62c79bf03a"
      },
      {
        "segment_id": "87cd7a6d3d9a61c2de929a9450",
        "customer_id": "89ac83ca207a820c62c79bf03a"
      },
      {
        "segment_id": "8bcaca6f2327d45e4195a456b2",
        "customer_id": "89ac83ca207a820c62c79bf03a"
      }
    ],
    "total_items": 4
  }
}


Get a collection of status records

Get information about all status records on a customer account
[badge-blue GET] /customers/{customer_id}/status-records

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
valid_now boolean Status validity. Just one status can be valid in the time.
Possible values are: True for valid status / False for status not valid
No

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
status_records StatusRecord[] List of status records
total_items integer Count of all found status records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/status-records?valid_now=true
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 08:50:31 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "status_records": [
      {
        "status_record_id": "87ac34ef46f3858a4ece61fb43",
        "status_id": "86e05affc7a7abefcd513ab400",
        "customer_id": "89ac83ca207a820c62c79bf03a",
        "valid_from": "2019-05-29 00:00:00",
        "valid_to": "2021-05-28 23:59:59",
        "purchase_conditions": {
          "keep_status_turnover": [
            {
              "currency_id": "8bed991c68a470e7aaeffbf048",
              "value": null
            },
            {
              "currency_id": "86e05affc7a7abefcd513ab400",
              "value": null
            }
          ],
          "next_status_turnover": [
            {
              "currency_id": "86e05affc7a7abefcd513ab400",
              "value": 1500
            }
          ],
          "next_status_id": "83d1d11ea3884a5d33253fe214"
        },
        "last_change": "2019-05-29 11:22:04",
        "state": 1
      }
    ],
    "total_items": 1
  }
}


Get a collection of recommendation records

Get information about all recommendation records on a customer account
[badge-blue GET] /customers/{customer_id}/recommendation-records

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
name string Search recommendations by name No

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
recommendation_records Recommendation[] List of Recomendation records
total_items integer Count of all found segment records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/89ac83ca207a820c62c79bf03a/recommendation-records
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 08:53:31 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "recommendations": [
      {
        "recommendation_id": "89d3d4303c86e8c559fe51b18a",
        "name": "Health recommendation",
        "brief_description": "Health recommendation for the customer",
        "detailed_description": "Detail description of the recommendation",
        "content": "",
        "picture_urls": [
          "https:\/\/<projectURL>\/health_recommendations_pictures\/img_health_recommendations_16"
        ],
        "web_url": "",
        "last_change": "2020-04-16 09:53:08",
        "state": 1
      }
    ],
    "total_items": 1
  }
}


Get all customer purchases

Get information about all customer account purchases.
[badge-blue GET] /customers/{customer_id}/purchases

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
store_id string The unique id for the store where purchase was made No
type_id integer Purchase type No

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
purchases Purchase[] List of purchases
total_items integer Count of all found purchases

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/81ceb8582e2d8dbb7e71b7273b/purchases?count=5&store_id=8fd73167342d0689c4c015320&type_id=86e05aff7a7abefcd513ab400
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 08:59:09 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "purchases": [
      {
        "purchase_id": "85c763ebcec2fa488f8857bee",
        "customer_id": "81ceb8582e28dbb7e71b7273b",
        "store_id": "8fd7316732d06899c4c015320",
        "external_purchase_id": "2364",
        "payment_time": "2012-11-22 20:57:04",
        "items_count": 10,
        "type_id": "86e05affc7a7abefd513ab400",
        "total_price": 60.51,
        "currency_id": "86e05affc77abefcd513ab400",
        "card_number": "200190002218",
        "cashdesk_number": 2,
        "last_change": "2012-11-22 20:56:05.333756"
      },
      {
        "purchase_id": "83b8d00256cda4c9ac4835e95",
        "customer_id": "81ceb8582ed8dbb7e71b7273b",
        "store_id": "8fd73167342d06899c4c015320",
        "external_purchase_id": "12361",
        "payment_time": "2013-01-02 15:08:56",
        "items_count": 8,
        "type_id": "86e05affc7a7abefcd513ab400",
        "total_price": 51.54,
        "currency_id": "86e05affc7a7abefcd513ab400",
        "card_number": "200190002218",
        "cashdesk_number": 4,
        "last_change": "2013-01-02 15:09:51.428221"
      },
      {
        "purchase_id": "84baa5275b3643464a160ff00",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "store_id": "8fd73167342d06899c4c015320",
        "external_purchase_id": "22880",
        "payment_time": "2013-02-10 21:58:45",
        "items_count": 4,
        "type_id": "86e05affc7a7abefcd513ab400",
        "total_price": 12.77,
        "currency_id": "86e05affc7a7abefcd513ab400",
        "card_number": "200190002218",
        "cashdesk_number": 4,
        "last_change": "2013-02-10 21:59:36.485558"
      },
      {
        "purchase_id": "83b446272a3658c63470d26c35",
        "customer_id": "81ceb85822d8dbb7e71b7273b",
        "store_id": "8fd73167342d06899c4c015320",
        "external_purchase_id": "22886",
        "payment_time": "2013-02-10 22:31:08",
        "items_count": 1,
        "type_id": "86e05affc7a7abefcd513ab400",
        "total_price": 3.29,
        "currency_id": "86e05affc7a7abefcd513ab400",
        "card_number": "200190002218",
        "cashdesk_number": 4,
        "last_change": "2013-02-10 22:31:36.418053"
      },
      {
        "purchase_id": "8dba3467ca2f15a49188c0547e",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "store_id": "8fd73167342d06899c4c015320",
        "external_purchase_id": "22962",
        "payment_time": "2013-02-11 13:49:34",
        "items_count": 13,
        "type_id": "86e05affc7aabefcd513ab400",
        "total_price": 50.15,
        "currency_id": "86e05affc7a7abefcd513ab400",
        "card_number": "20019002218",
        "cashdesk_number": 4,
        "last_change": "2013-02-11 13:49:40.46313"
      }
    ],
    "total_items": 24
  }
}


Get all customer point records

Get information about all customer point records.
[badge-blue GET] /customers/{customer_id}/points

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
point_type_id string The unique id of a point type No

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
points Point[] List of the point records
total_items integer Count of all found point records

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/81ceb8582e2d8dbb7e71b7273b/points?point_type_id=86e05affc7a7abefcd513ab400&count=5
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 09:01:48 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "points": [
      {
        "point_id": "84cae7e5cbba16e31b0fc5ef1c",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "assigned_points": 1208,
        "available_points": 700,
        "point_type_id": "86e05affc7a7abefcd513ab400",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "valid_to": null,
        "state": 1
      },
      {
        "point_id": "86bc0202d3316f7c64ed486aa3",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "assigned_points": 1028,
        "available_points": 1028,
        "point_type_id": "86e05affc7a7abefcd513ab400",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "valid_to": null,
        "state": 1
      },
      {
        "point_id": "87b271d6e047426bf59835de4c",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "assigned_points": 184,
        "available_points": 184,
        "point_type_id": "86e05affc7a7abefcd513ab400",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "valid_to": null,
        "state": 1
      },
      {
        "point_id": "86bc02d606bb4e096b0ea0a929",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "assigned_points": 64,
        "available_points": 64,
        "point_type_id": "86e05affc7a7abefcd513ab400",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "valid_to": null,
        "state": 1
      },
      {
        "point_id": "8ebcc857f9b03f06643971e971",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "assigned_points": 1000,
        "available_points": 1000,
        "point_type_id": "86e05affc7a7abefcd513ab400",
        "partner_id": "86e05affc7a7abefcd513ab400",
        "valid_to": null,
        "state": 1
      }
    ],
    "total_items": 50
  }
}


Get all customer vouchers

Get information about all customer vouchers.
[badge-blue GET] /customers/{customer_id}/vouchers

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
store_id string The unique id for the store where the reward can be applied. No
is_valid boolean Filter for valid vouchers.
Possible values: true - all vouchers in validity range, false - all vouchers before or after validity range
No
is_applied boolean Filter voucher by the application condition.
Possible values: true - all applied vouchers, false - all vouchers, that have not been applied yet
No

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
vouchers Voucher[] List of all recent vouchers
total_items integer Count of all recent vouchers

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/81ceb8582e2d8dbb7e71b7273b/vouchers?store_id=86e05affc7a7abefcd513ab400&is_valid=true&count=1
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 09:02:32 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "vouchers": [
      {
        "voucher_id": "8bb7345976bbc9ed20e5083dd6",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "store_id": "86e05affc7a7abefcd513ab400",
        "code": "",
        "value": 3.49,
        "applied_date": "2013-07-24 21:33:13",
        "valid_from": null,
        "valid_to": null,
        "reward_group": "83cfee22eabfbbb15a14815e30",
        "reward": {
          "reward_id": "83cfee22eabfbbb15a14815e30",
          "code": null,
          "name": "Small Soup",
          "note": null,
          "subtitle": null,
          "points_cost": 300,
          "valid_time_from": null,
          "valid_time_to": null,
          "reward_group": 0,
          "store_list": [
            {
              "store_id": "86e05affc7a7abefcd513ab400",
              "store_code": "",
              "name": "HQ store",
              "store_address": {
                "address1": "Hlavní",
                "address2": "18",
                "address3": null,
                "address4": null,
                "address5": null,
                "address6": null,
                "address7": null,
                "zip": "19875",
                "city": "Borohrádek",
                "country_code": "cz"
              },
              "contact_email": "",
              "manager_name": "",
              "phone_number": "",
              "partner_id": "86e05affc7a7abefcd513ab400",
              "system_id": "2375303497",
              "gps_coordinates": {
                "gps_longitude": 0,
                "gps_latitude": 0
              },
              "url_address": "",
              "opening": [
                {
                  "day_id": "MON",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "TUE",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "WED",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "THU",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "FRI",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "SAT",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "SUN",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                }
              ],
              "image_urls": [],
              "visibility_for_customer": 1,
              "description": "",
              "short_description": "",
              "registration_id": null,
              "last_change": "2018-12-19 16:12:56",
              "state": 1
            },
            {
              "store_id": "8bd48117006496e0b1788109b8",
              "store_code": "",
              "name": "Store no. 2",
              "store_address": {
                "address1": "",
                "address2": "",
                "address3": null,
                "address4": null,
                "address5": null,
                "address6": null,
                "address7": null,
                "zip": "",
                "city": "",
                "country_code": "cz"
              },
              "contact_email": "",
              "manager_name": "",
              "phone_number": "",
              "partner_id": "86e05affc7a7abefcd513ab400",
              "system_id": "199767851",
              "gps_coordinates": {
                "gps_longitude": 0,
                "gps_latitude": 0
              },
              "url_address": "",
              "opening": [
                {
                  "day_id": "MON",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "TUE",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "WED",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "THU",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "FRI",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "SAT",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                },
                {
                  "day_id": "SUN",
                  "time_intervals": [
                    {
                      "from": null,
                      "to": null
                    },
                    {
                      "from": null,
                      "to": null
                    }
                  ]
                }
              ],
              "image_urls": [],
              "visibility_for_customer": 1,
              "description": "",
              "short_description": "",
              "registration_id": null,
              "last_change": "2016-08-30 13:50:02",
              "state": 0
            }
          ],
          "additional_properties": [
            {
              "property_record_id": "count_items_bonus:83cfee22eabfbbb15a14815e30",
              "property_id": "count_items_bonus",
              "property_name": "Bonus",
              "property_value": "",
              "last_change": null
            },
            {
              "property_record_id": "count_items_condition:83cfee22eabfbbb15a14815e30",
              "property_id": "count_items_condition",
              "property_name": items",
              "property_value": "",
              "last_change": null
            },
            {
              "property_record_id": "subtitle:83cfee22eabfbbb15a14815e30",
              "property_id": "subtitle",
              "property_name": "Store Subtitle",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "subgroup:83cfee22eabfbbb15a14815e30",
              "property_id": "subgroup",
              "property_name": "Group for filtering",
              "property_value": [],
              "last_change": null
            },
            {
              "property_record_id": "min_purchase:83cfee22eabfbbb15a14815e30",
              "property_id": "min_purchase",
              "property_name": "Min. purchase",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "max_number_voucher:83cfee22eabfbbb15a14815e30",
              "property_id": "max_number_voucher",
              "property_name": "Maxi. vouchers",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "valid_to_max:83cfee22eabfbbb15a14815e30",
              "property_id": "valid_to_max",
              "property_name": "Validity",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "max_use:83cfee22eabfbbb15a14815e30",
              "property_id": "max_use",
              "property_name": "Maxi. voucher use",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "value_for_points_cost:83cfee22eabfbbb15a14815e30",
              "property_id": "value_for_points_cost",
              "property_name": "Point cost value",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "global_voucher:83cfee22eabfbbb15a14815e30",
              "property_id": "global_voucher",
              "property_name": "Global voucher",
              "property_value": false,
              "last_change": null
            },
            {
              "property_record_id": "use_type:83cfee22eabfbbb15a14815e30",
              "property_id": "use_type",
              "property_name": "Who can use it",
              "property_value": [],
              "last_change": null
            },
            {
              "property_record_id": "campaign_products_relation:83cfee22eabfbbb15a14815e30",
              "property_id": "campaign_products_relation",
              "property_name": "Campaign products relation",
              "property_value": null,
              "last_change": null
            },
            {
              "property_record_id": "allow_incomplete_quantity:83cfee22eabfbbb15a14815e30",
              "property_id": "allow_incomplete_quantity",
              "property_name": "",
              "property_value": null,
              "last_change": null
            }
          ],
          "priority": null,
          "image_urls": [],
          "has_product_condition": false,
          "has_group_condition": true,
          "has_brand_condition": false,
          "is_automated": false,
          "last_change": "2013-03-12 16:14:22.231418",
          "state": 1
        },
        "last_change": "2013-07-24 21:33:33",
        "state": 1
      }
    ],
    "total_items": 10
  }
}


Get all customer rewards

Get information about all customer rewards.
[badge-blue GET] /customers/{customer_id}/rewards

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
name string The name or a part of the name of the reward No
store_id string The unique id for the store where customer can apply the reward No
is_valid boolean Filter for valid rewards.
Possible values: true - all rewards valid in the moment / false - all rewards not valid in the moment / no value - all rewards
No
valid_from string Date from where is reward valid already. (YYYY-MM-DD) No
valid_to string Date to where is reward valid still. (YYYY-MM-DD) No
code string Code of the reward No
is_automated boolean Filter of the automated rewards
Possible values: true - returns all automated rewards / false - returns all non automated rewards / no value - all rewards(filter is not applied)
No
reward_group integer The unique id for the reward group
Possible values: 0 - cash desk reward (party time reward) / 1 - catalog reward / 2 - campaign reward
No
customer_type_id array Select by list of customer types from customer-types resource. Logic OR is used between values No
without_stores boolean If true, resource call returns rewards without list of stores. If false, or not set resource returns default strucutre. No

There is the logical AND between parameters is_valid, valid_from and valid to.

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
vouchers Reward[] List of all recent rewards
total_items integer Count of all recent rewards

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/81ceb8582e2d8dbb7e71b7273b/rewards?name=Soup
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 09:11:18 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "rewards": [
      {
        "reward_id": "8dcc9526d88bb4732fa2301aa4",
        "code": null,
        "name": "Soup",
        "note": null,
        "subtitle": null,
        "points_cost": 300,
        "valid_time_from": null,
        "valid_time_to": null,
        "reward_group": 0,
        "store_list": [
          {
            "store_id": "86e05affc7a7abefcd513ab400",
            "store_code": "",
            "name": "HQ Store",
            "store_address": {
              "address1": "Hlavní",
              "address2": "18",
              "address3": null,
              "address4": null,
              "address5": null,
              "address6": null,
              "address7": null,
              "zip": "19875",
              "city": "Borohrádek",
              "country_code": "cz"
            },
            "contact_email": "",
            "manager_name": "",
            "phone_number": "",
            "partner_id": "86e05affc7a7abefcd513ab400",
            "system_id": "2375303497",
            "gps_coordinates": {
              "gps_longitude": 0,
              "gps_latitude": 0
            },
            "url_address": "",
            "opening": [
              {
                "day_id": "MON",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "TUE",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "WED",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "THU",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "FRI",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SAT",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SUN",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              }
            ],
            "image_urls": [],
            "visibility_for_customer": 1,
            "description": "",
            "short_name": "",
            "registration_id": null,
            "last_change": "2018-12-19 16:12:56",
            "state": 1
          },
          {
            "store_id": "8bed991c68a470e7aaeffbf048",
            "store_code": "",
            "name": "Old pub",
            "store_address": {
              "address1": "Milady Horákové",
              "address2": "",
              "address3": null,
              "address4": null,
              "address5": null,
              "address6": null,
              "address7": null,
              "zip": "17000",
              "city": "Praha",
              "country_code": "cz"
            },
            "contact_email": "",
            "manager_name": "",
            "phone_number": "",
            "partner_id": "86e05affc7a7abefcd513ab400",
            "system_id": "3818258045",
            "gps_coordinates": {
              "gps_longitude": 0,
              "gps_latitude": 0
            },
            "url_address": "",
            "opening": [
              {
                "day_id": "MON",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "TUE",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "WED",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "THU",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "FRI",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SAT",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SUN",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              }
            ],
            "image_urls": [],
            "visibility_for_customer": 1,
            "description": "",
            "short_name": "",
            "registration_id": null,
            "last_change": "2012-08-27 10:26:06.037726",
            "state": 1
          },
          {
            "store_id": "81eaeea13b8984a169c490a325",
            "store_code": "",
            "name": "New pub",
            "store_address": {
              "address1": "",
              "address2": "",
              "address3": null,
              "address4": null,
              "address5": null,
              "address6": null,
              "address7": null,
              "zip": "",
              "city": "",
              "country_code": "cz"
            },
            "contact_email": "",
            "manager_name": "",
            "phone_number": "",
            "partner_id": "86e05affc7a7abefcd513ab400",
            "system_id": "3155137764",
            "gps_coordinates": {
              "gps_longitude": 0,
              "gps_latitude": 0
            },
            "url_address": "",
            "opening": [
              {
                "day_id": "MON",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "TUE",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "WED",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "THU",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "FRI",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SAT",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SUN",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              }
            ],
            "image_urls": [],
            "visibility_for_customer": 1,
            "description": "",
            "short_name": "",
            "registration_id": null,
            "last_change": "2016-08-30 13:49:07",
            "state": 0
          },
          {
            "store_id": "8fd73167342d06899c4c015320",
            "store_code": "",
            "name": "Great bar",
            "store_address": {
              "address1": "",
              "address2": "",
              "address3": null,
              "address4": null,
              "address5": null,
              "address6": null,
              "address7": null,
              "zip": "",
              "city": "",
              "country_code": "cz"
            },
            "contact_email": "",
            "manager_name": "",
            "phone_number": "",
            "partner_id": "86e05affc7a7abefcd513ab400",
            "system_id": "2909310574",
            "gps_coordinates": {
              "gps_longitude": 0,
              "gps_latitude": 0
            },
            "url_address": "",
            "opening": [
              {
                "day_id": "MON",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "TUE",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "WED",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "THU",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "FRI",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SAT",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              },
              {
                "day_id": "SUN",
                "time_intervals": [
                  {
                    "from": null,
                    "to": null
                  },
                  {
                    "from": null,
                    "to": null
                  }
                ]
              }
            ],
            "image_urls": [],
            "visibility_for_customer": 1,
            "description": "",
            "short_name": "",
            "registration_id": null,
            "last_change": "2016-08-30 15:32:33",
            "state": 0
          }
        ],
        "additional_properties": [
          {
            "property_record_id": "number_of_repetitions:8dcc9526d88bb4732fa2301aa4",
            "property_id": "number_of_repetitions",
            "property_name": "Repetitions",
            "property_value": null,
            "last_change": null
          }
        ],
        "priority": null,
        "image_urls": [],
        "has_product_condition": false,
        "has_group_condition": true,
        "has_brand_condition": false,
        "is_automated": false,
        "last_change": "2013-06-10 11:06:07.952255",
        "state": 1
      }
    ],
    "total_items": 1
  }
}


Get all customer cards

Get information about all customer cards.
[badge-blue GET] /customers/{customer_id}/cards

Path parameters

Parameter name Type Description Mandatory (Yes/No)
customer_id string The unique id for the Customer Yes

Query string

Parameter name Type Description Mandatory (Yes/No)
count integer The number of records to return.
Default value is 100.
No
offset integer The number of records from a collection to skip.
Default value is 0.
No
sort_field string One of the query string parameters for sorting.
Response is sorted by the specified field.
No
sort_direction string Direction of sorting the response list.
Possible values are: ASC / DESC
No
customer_id string The unique id for the customer No
card_number string Number of the customer card No
card_type_id string The unique id for the card type No
is_valid boolean If in validity range - true, before or after validity range - false No

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
cards Card[] Collection of customer cards
total_items integer Count of all found customer cards

Example request

GET https://<projectURL>/rest-api/enterprise-interface/v1.0/customers/81ceb8582e2d8dbb7e71b7273b/cards?card_type_id=8bed991c68a470e7aaeffbf048
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZW5zcyZmRjY2I5ZWI5ZmNlMGJjZGRjNWZiOTyMGMxYjY4MWZjYzRkMQkMQ==

Example response

HTTP/1.1 200 OK
Date: Thu, 06 Aug 2020 09:12:49 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "cards": [
      {
        "card_id": "81a94c48474bc45c03d41f7016",
        "customer_id": "81ceb8582e2d8dbb7e71b7273b",
        "card_type_id": "8bed991c68a470e7aaeffbf048",
        "card_number": "200120000290",
        "state": 1,
        "valid_from": null,
        "valid_to": null,
        "store_id": null,
        "last_change": "2013-08-19 16:28:03.978165"
      }
    ],
    "total_items": 1
  }
}