HubSpot · JSON Structure

Commerce Subscriptions Api Collection Response Subscription Structure

CollectionResponseSubscription schema from HubSpot Commerce Subscriptions API

Type: object Properties: 2
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

CollectionResponseSubscription is a JSON Structure definition published by HubSpot, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

results paging

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/commerce-subscriptions-api-collection-response-subscription-structure.json",
  "name": "CollectionResponseSubscription",
  "description": "CollectionResponseSubscription schema from HubSpot Commerce Subscriptions API",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "A HubSpot commerce subscription record.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier for the subscription.",
            "example": "500123"
          },
          "properties": {
            "type": "object",
            "description": "The subscription's properties as key-value pairs.",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "key": "value"
            }
          },
          "createdAt": {
            "type": "datetime",
            "example": "2025-03-15T14:30:00Z"
          },
          "updatedAt": {
            "type": "datetime",
            "example": "2025-03-15T14:30:00Z"
          },
          "archived": {
            "type": "boolean",
            "example": true
          },
          "associations": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CollectionResponseAssociation"
            },
            "example": {
              "key": "value"
            }
          }
        }
      },
      "example": [
        {
          "id": "500123",
          "properties": {
            "key": "value"
          },
          "createdAt": "2025-03-15T14:30:00Z",
          "updatedAt": "2025-03-15T14:30:00Z",
          "archived": true,
          "associations": {
            "key": "value"
          }
        }
      ]
    },
    "paging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "object",
          "properties": {
            "after": {
              "type": "string"
            }
          },
          "example": {
            "after": "example-value"
          }
        }
      }
    }
  }
}