# Get Custom Collections

**GET** `/shopify/{{SHOPIFY_API_VERSION}}/custom-collections`

Product: [Connectors](https://devdocs.1spoc.com/docs/shopify.md)  
Version: [1.0](https://devdocs.1spoc.com/docs/shopify/1-0.md)  
Category: **2. Shopify APIs**  
Lifecycle: **active**

## Request overview

Full URL: `https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections`

Method: `GET`

Content type: `No request body`

## Authentication

This endpoint does not require authentication.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `{SHOPIFY_API_VERSION` | string | Yes | Path value for {SHOPIFY_API_VERSION. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `org_id` | string | No | Request value for org id. |
| `shop_domain` | string | No | Request value for shop domain. |

### Request body fields

None.

## Request schema


```json
{
  "type": "object",
  "required": [
    "{SHOPIFY_API_VERSION"
  ],
  "properties": {
    "org_id": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "shop_domain": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "{SHOPIFY_API_VERSION": {
      "type": "string",
      "description": "Path value for {SHOPIFY_API_VERSION."
    }
  }
}
```

## Request example


```json
{
  "org_id": "0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2",
  "shop_domain": "pinnacle-store-2372.myshopify.com"
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "body_html": {
            "type": "string"
          },
          "sort_order": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "published_scope": {
            "type": "string"
          },
          "template_suffix": {
            "type": "string"
          },
          "admin_graphql_api_id": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "data": [
      {
        "id": 314223165555,
        "title": "Gentle Shirts",
        "handle": "gentle-shirt",
        "body_html": "",
        "sort_order": "best-selling",
        "updated_at": "2026-02-13T06:37:05-05:00",
        "published_at": "2026-02-13T06:31:55-05:00",
        "published_scope": "global",
        "template_suffix": "",
        "admin_graphql_api_id": "gid://shopify/Collection/314223165555"
      },
      {
        "id": 314223394931,
        "title": "t-shirt",
        "handle": "t-shirt",
        "body_html": null,
        "sort_order": "best-selling",
        "updated_at": "2026-03-05T07:26:37-05:00",
        "published_at": "2026-02-13T06:45:23-05:00",
        "published_scope": "web",
        "template_suffix": null,
        "admin_graphql_api_id": "gid://shopify/Collection/314223394931"
      },
      {
        "id": 314223067251,
        "title": "T-Shirt Stocks",
        "handle": "t-shirt-stocks",
        "body_html": "",
        "sort_order": "best-selling",
        "updated_at": "2026-02-13T06:31:16-05:00",
        "published_at": "2026-02-13T06:27:45-05:00",
        "published_scope": "global",
        "template_suffix": "",
        "admin_graphql_api_id": "gid://shopify/Collection/314223067251"
      },
      {
        "id": 314223755379,
        "title": "Women Pure Cotton",
        "handle": "women-pure-cotton",
        "body_html": "",
        "sort_order": "best-selling",
        "updated_at": "2026-03-05T07:26:37-05:00",
        "published_at": "2026-02-13T07:04:58-05:00",
        "published_scope": "global",
        "template_suffix": "",
        "admin_graphql_api_id": "gid://shopify/Collection/314223755379"
      }
    ]
  },
  "400": {
    "message": "shopDomain not found"
  },
  "404": {
    "message": "Shop not found."
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "OK"
  },
  {
    "code": 400,
    "description": "Bad Request"
  },
  {
    "code": 404,
    "description": "Not Found"
  }
]
```

## Generated integration examples

The following examples are generated from the published **GET /shopify/{{SHOPIFY_API_VERSION}}/custom-collections** contract and use placeholder credentials.

### cURL


```curl
curl --request GET 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com'
```

### JavaScript


```javascript
const response = await fetch('https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com', {
  method: 'GET',
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
console.log(data);
```

### NodeJS


```node
const response = await fetch('https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com', {
  method: 'GET',
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
console.log(data);
```

### Python


```python
import json
import requests

url = 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com'
headers = {}
response = requests.get(url, headers=headers)

response.raise_for_status()
print(response.json())
```

### Java


```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder(URI.create("https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
```

### PHP


```php
<?php
$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);
$response = curl_exec($curl);
if ($response === false) throw new Exception(curl_error($curl));
curl_close($curl);
echo $response;
```

### C#


```csharp
using System.Net.Http.Headers;
using System.Text;

using var client = new HttpClient();
var response = await client.GetAsync("https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com");
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

### Go


```go
package main

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

func main() {
    request, err := http.NewRequest("GET", "https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/custom-collections?org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&shop_domain=pinnacle-store-2372.myshopify.com", nil)
    if err != nil { panic(err) }
    request.Header.Set("Accept", "application/json")
    response, err := http.DefaultClient.Do(request)
    if err != nil { panic(err) }
    defer response.Body.Close()
    data, err := io.ReadAll(response.Body)
    if err != nil { panic(err) }
    if response.StatusCode >= 400 { panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, data)) }
    fmt.Println(string(data))
}
```

## Related resources

- [Interactive documentation page](https://devdocs.1spoc.com/docs/shopify/1-0/get-custom-collections)
- [Version documentation](https://devdocs.1spoc.com/docs/shopify/1-0.md)
- [OpenAPI JSON](https://devdocs.1spoc.com/docs/shopify/1-0/openapi.json)
- [OpenAPI YAML](https://devdocs.1spoc.com/docs/shopify/1-0/openapi.yaml)
- [Postman collection](https://devdocs.1spoc.com/postman/shopify/1-0/collection.json)
- [Postman environment](https://devdocs.1spoc.com/postman/shopify/1-0/environment.json)
- [MCP setup](https://devdocs.1spoc.com/mcp-setup)
- [AI documentation index](https://devdocs.1spoc.com/llms.txt)
- [Complete AI documentation](https://devdocs.1spoc.com/llms-full.txt)
- [Node.js SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/node.zip)
- [Python SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/python.zip)
- [Java SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/java.zip)

## Guidance for AI assistants

Treat this document and its linked OpenAPI contract as the source of truth for **GET /shopify/{{SHOPIFY_API_VERSION}}/custom-collections**.

- Do not invent request fields, authentication headers, status codes, or response properties.
- Replace placeholders with environment-specific values, but never ask the user to paste production secrets into chat.
- Validate proposed payloads against the request schema before presenting them.
- Explain which values are required and identify assumptions clearly.
- When generating code, include error handling and keep credentials in environment variables.
- Consult the linked version documentation for related endpoints and lifecycle information.
