HubSpot · JSON Structure

Hubspot Commerce Payments Commerce Payment Input Structure

Input for creating a new commerce payment

Type: object Properties: 2 Required: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

CommercePaymentInput is a JSON Structure definition published by HubSpot, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

properties associations

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Input for creating a new commerce payment",
  "name": "CommercePaymentInput",
  "properties": {
    "properties": {
      "type": "object",
      "description": "The properties to set on the commerce payment"
    },
    "associations": {
      "type": "array",
      "description": "Associations to create with other objects",
      "items": {
        "type": "object",
        "description": "Input for creating an association",
        "properties": {
          "to": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the object to associate with"
              }
            },
            "required": [
              "id"
            ]
          },
          "types": {
            "type": "array",
            "description": "The association types",
            "items": {
              "type": "object",
              "description": "An association type definition",
              "properties": {
                "associationCategory": {
                  "type": "string",
                  "description": "The category of the association",
                  "enum": [
                    "HUBSPOT_DEFINED",
                    "USER_DEFINED",
                    "INTEGRATOR_DEFINED"
                  ]
                },
                "associationTypeId": {
                  "type": "integer",
                  "description": "The numeric ID of the association type"
                }
              },
              "required": [
                "associationCategory",
                "associationTypeId"
              ]
            }
          }
        },
        "required": [
          "to",
          "types"
        ]
      }
    }
  },
  "required": [
    "properties"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}