Get products

Resource

GET v1/business/products

Authorization

OAuth 2.0 bearer token with Business scope.

Query Parameters

Name

Type

Description

latitude

float

The current latitude.

longitude

float

The current longitude.

business_id

string

The unique ID of the specific business.

Request

curl -X GET -H 'Authorization: Bearer [TOKEN]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/business/products?latitude=51.511118&longitude=-0.085708&business_id=[BUSINESS_ID]'

Response

{
 "products": [
   {
     "id": "00407fdc-4385-4a22-9035-9d2d3e0a031a",
     "display_name": "Business Class XL",
     "image_url": "http://static.gett.com/services/media/media_files/883/6seater_Selection.png",
     "messages": {
      "price": "Pay by the meter",
      "description": "Traditional 6-Seater Black Taxis - a comfortable ride that takes bus lanes to get you there quicker"
     }
   },
   {
     "id": "5178cd83-20bf-4991-b559-c1128dfae662",
     "display_name": "Business Class",
     "image_url": "http://static.gett.com/services/media/media_files/438/BlackTaxi_Selection.png",
     "messages": {
      "price": "Best black cab fares. Add your destination to get a fixed fare now! ",
      "description": "Traditional Black Cabs - a comfortable ride that takes bus lanes to get you there quicker"
     }
   }
  ]
}

Name

Type

Description

products

array

The object containing the information about the available products.

id

string

The unique ID of the specific product.

display_name

string

The display name of the product.

image_url

string

The image url of the product.

price

string

The price description of the product.

description

string

The general description of the product.

You can retrieve​ information about a specific Gett product.
Valid inputs for the product_id parameter can be found by querying the /v1/business/products endpoint.

Resource

GET v1/business/products/<product_id>

Authorization

OAuth 2.0 bearer token with Business scope.

Path Parameters

Name

Type

Description

product_id

string

The unique ID of the specific product.

Request

curl -X GET -H 'Authorization: Bearer [TOKEN]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/business/products/ca1bcd35-c427-4fa0-be0a-54ca5e956276&business_id=[BUSINESS_ID]'

Response

{
  "id": "ca1bcd35-c427-4fa0-be0a-54ca5e956276",
  "display_name": "Gett Express",
  "image_url": "http://static.gett.com/services/media/media_files/75/0000_Get-Express_Selection.png"
    }

Did this page help you?