# List Offers

GET https://services.leadconnectorhq.com/courses/offers

List membership offers in the location. Requires a Location token with courses.readonly. Send Version: v3. Uses membership listView pagination (cursor encodes skip). Location-wide — membership does not filter by productId. Default-offer rows are not included.

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `courses.readonly`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

### Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | string | No | Page size (1-50) |
| `cursor` | string | No | Opaque cursor from the previous page (encodes skip) |
| `search` | string | No | Case-insensitive title search |
| `visibility` | string | No | published or draft |
| `locationId` | string | Yes | Location id or sub-account id is required. |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HighLevel API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/courses/offers": {
      "get": {
        "summary": "List Offers",
        "operationId": "listOffers",
        "description": "List membership offers in the location. Requires a Location token with courses.readonly. Send Version: v3. Uses membership listView pagination (cursor encodes skip). Location-wide — membership does not filter by productId. Default-offer rows are not included.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Page size (1-50)",
            "example": "15",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page (encodes skip)",
            "example": "eyJza2lwIjoxNX0",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Case-insensitive title search",
            "example": "founding",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "visibility",
            "required": false,
            "in": "query",
            "description": "published or draft",
            "example": "published",
            "schema": {
              "enum": [
                "published",
                "draft"
              ],
              "type": "string"
            }
          },
          {
            "name": "locationId",
            "required": true,
            "in": "query",
            "description": "Location id or sub-account id is required.",
            "schema": {
              "type": "string",
              "example": "ve9EPM428h8vShlRW1KT",
              "minLength": 1
            }
          },
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          },
          "415": {
            "description": "Unsupported Media Type"
          },
          "429": {
            "description": "Too Many Requests"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "Location-Access": [
              "courses.readonly"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "OfferListResponseDto": {
        "type": "object",
        "properties": {
          "offers": {
            "example": [
              {
                "id": "c3d4e5f6-7890-4123-cdef-123456789012",
                "title": "Founding members",
                "description": "Access to the core course",
                "type": "free",
                "source": "membership",
                "amount": 0,
                "currency": "USD",
                "priceDisplayOverride": null,
                "isLivePaymentMode": false,
                "interval": null,
                "intervalCount": null,
                "trialDays": 0,
                "setupFee": 0,
                "numberOfPayments": null,
                "visibility": "published",
                "accessDate": null,
                "daysOfAccess": null,
                "customJs": null,
                "customCss": null,
                "customHeader": null,
                "customFooter": null,
                "coupons": [],
                "posterImage": "https://cdn.example.com/offer.png",
                "paymentProductId": null,
                "paymentPriceId": null,
                "products": [
                  {
                    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "title": "Onboarding",
                    "description": "Start here"
                  }
                ],
                "createdAt": "2026-04-20T10:00:00.000Z",
                "updatedAt": "2026-04-20T10:00:00.000Z"
              }
            ],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "c3d4e5f6-7890-4123-cdef-123456789012"
                },
                "title": {
                  "type": "string",
                  "example": "Founding members"
                },
                "description": {
                  "type": "string",
                  "nullable": true
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "free",
                    "onetime",
                    "subscription"
                  ]
                },
                "source": {
                  "type": "string",
                  "example": "membership"
                },
                "amount": {
                  "type": "number",
                  "nullable": true
                },
                "currency": {
                  "type": "string",
                  "nullable": true
                },
                "priceDisplayOverride": {
                  "type": "string",
                  "nullable": true
                },
                "isLivePaymentMode": {
                  "type": "boolean",
                  "nullable": true
                },
                "interval": {
                  "type": "string",
                  "nullable": true,
                  "enum": [
                    "week",
                    "month",
                    "year",
                    "day"
                  ]
                },
                "intervalCount": {
                  "type": "number",
                  "nullable": true
                },
                "trialDays": {
                  "type": "number",
                  "nullable": true
                },
                "setupFee": {
                  "type": "number",
                  "nullable": true
                },
                "numberOfPayments": {
                  "type": "number",
                  "nullable": true
                },
                "visibility": {
                  "type": "string",
                  "enum": [
                    "published",
                    "draft"
                  ]
                },
                "accessDate": {
                  "type": "string",
                  "nullable": true
                },
                "daysOfAccess": {
                  "type": "number",
                  "nullable": true
                },
                "customJs": {
                  "type": "string",
                  "nullable": true
                },
                "customCss": {
                  "type": "string",
                  "nullable": true
                },
                "customHeader": {
                  "type": "string",
                  "nullable": true
                },
                "customFooter": {
                  "type": "string",
                  "nullable": true
                },
                "coupons": {
                  "nullable": true,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "posterImage": {
                  "type": "string",
                  "nullable": true
                },
                "paymentProductId": {
                  "type": "string",
                  "nullable": true,
                  "description": "Read-only Payments catalog id generated by membership"
                },
                "paymentPriceId": {
                  "type": "string",
                  "nullable": true,
                  "description": "Read-only Payments price id generated by membership"
                },
                "products": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                      },
                      "title": {
                        "type": "string",
                        "example": "Onboarding"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "example": "Start here"
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "description"
                    ],
                    "title": "OfferProductDto"
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "title",
                "description",
                "type",
                "source",
                "amount",
                "currency",
                "priceDisplayOverride",
                "isLivePaymentMode",
                "interval",
                "intervalCount",
                "trialDays",
                "setupFee",
                "numberOfPayments",
                "visibility",
                "accessDate",
                "daysOfAccess",
                "customJs",
                "customCss",
                "customHeader",
                "customFooter",
                "coupons",
                "posterImage",
                "paymentProductId",
                "paymentPriceId",
                "products",
                "createdAt",
                "updatedAt"
              ],
              "title": "OfferItemDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "example": "eyJza2lwIjoxNX0"
          }
        },
        "required": [
          "offers",
          "nextCursor"
        ],
        "title": "OfferListResponseDto"
      }
    }
  }
}
```

## HighLevel SDK Examples

**Node.js** (`@gohighlevel/api-client`)

```javascript
import HighLevel from '@gohighlevel/api-client';

const ghl = new HighLevel({
  privateIntegrationToken: '<PRIVATE_INTEGRATION_TOKEN>'
});

const response = await ghl.courses.listOffers({ locationId: '<LOCATIONID>' });
console.log(response);
```

**Python** (`gohighlevel-api-client`)

```python
from highlevel import HighLevel

client = HighLevel(
    private_integration_token='<PRIVATE_INTEGRATION_TOKEN>'
)

response = await client.courses.list_offers(locationId='<LOCATIONID>')
print(response)
```

**PHP** (`gohighlevel/api-client`)

```php
<?php
require_once 'vendor/autoload.php';

use HighLevel\HighLevel;
use HighLevel\HighLevelConfig;

$config = new HighLevelConfig([
    'privateIntegrationToken' => '<PRIVATE_INTEGRATION_TOKEN>'
]);
$ghl = new HighLevel($config);

$response = $ghl->courses->listOffers(['locationId' => '<LOCATIONID>']);
echo json_encode($response, JSON_PRETTY_PRINT);
```

## Code Examples

**cURL**

```bash
curl -L -X GET 'https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3'
```

**Node.js**

```javascript
const options = {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3'
  }
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/courses/offers"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

params = {
    "locationId": "<LOCATIONID>"
}

response = requests.get(url, params=params, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
  ],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .get("https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
)

func main() {
  url := "https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/courses/offers?locationId=<LOCATIONID>' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
```
