Settings

The end point /settings-service provides methods that return common public information

Get welcome points

GET /settings-service/welcome-points
Example Response

Number of points that are received by a new user for scanned codes until registration

{
  "points":15
}

Get countries list

GET /settings-service/countries
Example Response
{
  "countries": [
    {
      "iso": "004",
      "name": "Afghanistan"
    },
    {
      "iso": "248",
      "name": "Åland Islands"
    },
    {
      "iso": "008",
      "name": "Albania"
    },
    {
      "iso": "012",
      "name": "Algeria"
    }
  ]
}

Get languages list

GET /settings-service/languages
Example Response
{
  "languages": [
    {
      "code": "ar",
      "name": "Arabic"
    },
    {
      "code": "ca",
      "name": "Catalan"
    },
    {
      "code": "cs",
      "name": "Czech"
    },
    {
      "code": "da",
      "name": "Danish"
    },
    {
      "code": "de",
      "name": "German"
    }
  ]
}

Get partners list

GET /settings-service/partners
Example Response
{
  "partners": [
    {
      "description": "Some description",
      "logo": "dev-cdn.shping.com.s3.amazonaws.com/2017/5/26/1748fe4b-e5da-435a-b439-2cf351bbbc55-2000px-Converse_logo.svg_.png",
      "name": "Converse"
    },
    {
      "description": "Some description",
      "logo": "http://dev-cdn.shping.com.s3.amazonaws.com/2017/5/26/acee02ed-c518-41a3-8262-2849c1e18fc1-Paulig.jpg",
      "name": "Paulig coffee"
    }
  ]
}

Get genders list

GET /settings-service/genders
Example Response
{
  "genders": [
    {
      "name": "Male",
      "type": "male"
    },
    {
      "name": "Female",
      "type": "female"
    }
  ]
}

Get brands list

GET /settings-service/brands
Example Response
{
  "brands": [
    {
      "ait_id": "1",
      "id": "1",
      "logo": "https://cdn.shping.com/2017/6/29/5e8ab9c2-c4ac-4ee9-ab05-a9726c64c13f-jumbo.png",
      "name": "Jumbo Ugg"
    },
    {
      "ait_id": "7726",
      "id": "2",
      "logo": "https://cdn.shping.com/2017/6/29/b9117234-0252-4fee-b2d3-4049204747f8-a2milk.png",
      "name": "A2 Milk"
    }
  ]
}

Get rewards_actions list

GET /settings-service/rewards_actions
Example Response
{
  "rewards_actions": [
    {
      "id": "view_popup",
      "text": "View popup"
    },
    {
      "id": "view_text",
      "text": "View text"
    },
    {
      "id": "view_image",
      "text": "View image"
    },
    {
      "id": "visit_link",
      "text": "Visit link"
    },
    {
      "id": "watch_video",
      "text": "Watch promo video"
    },
    {
      "id": "view_status",
      "text": "View status"
    },
    {
      "id": "view_nutrition_info",
      "text": "View nutrition info"
    },
    {
      "id": "view_certificates",
      "text": "View certificates"
    },
    {
      "id": "follow_fb",
      "text": "Follow on FB"
    },
    {
      "id": "scan",
      "text": "Scan product"
    },
    {
      "id": "send_review",
      "restrictions": false,
      "text": "Send review"
    }
  ]
}

results matching ""

    No results matching ""