Customer sources

Customer account can be created and tied to different sources, like online registration form, e-shop, mobile app, POS, booking system, web microsite, campaign or any other source. This source of the customer account is related to the account and can be managed by this resource.

Available methods

All available methods for resource customer-sources.

HTTP method Endpoint Description
[badge-blue GET] /customer-sources Collection of customer sources


Get customer sources

Get information about all customer account sources
[badge-blue GET] /customer-sources

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
customer_source CustomerSource[] List of the customer sources
total_items integer Count of all found customer sources

Example Request

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

Example response

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

{
  "data": {
    "customer_sources": [
      {
        "customer_source_id": "86e05affc7a7abefcd513ab400",
        "name": "All resources",
        "last_change": "2019-01-08 18:34:07",
        "state": 1
      },
      {
        "customer_source_id": "8bed991c68a470e7aaeffbf048",
        "name": "Mobile application",
        "last_change": null,
        "state": 1
      },
      {
        "customer_source_id": "81eaeea13b8984a169c490a325",
        "name": "Web",
        "last_change": null,
        "state": 1
      },
      {
        "customer_source_id": "8fd73167342d06899c4c015320",
        "name": "CRM",
        "last_change": null,
        "state": 1
      },
      {
        "customer_source_id": "8bd48117006496e0b1788109b8",
        "name": "Webshop",
        "last_change": null,
        "state": 1
      },
      {
        "customer_source_id": "83d1d11ea3884a5d33253fe214",
        "name": "In store",
        "last_change": "2019-08-26 10:14:47.663165",
        "state": 1
      },
      {
        "customer_source_id": "82de12eb8b138791e678fd11c3",
        "name": "Fast reg",
        "last_change": "2019-08-26 10:14:47.663165",
        "state": 1
      },
      {
        "customer_source_id": "89d3d4303c86e8c559fe51b18a",
        "name": "Imported",
        "last_change": null,
        "state": 1
      },
      {
        "customer_source_id": "8edebb6b9d299c59804b2aa812",
        "name": "Virtual account",
        "last_change": "2020-03-03 18:10:07",
        "state": 1
      }
    ],
    "total_items": 9
  }
}