HubSpot · JSON Structure

Commerce Payments Api Batch Create Response Structure

Response from a batch create operation

Type: object Properties: 8 Required: 4
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

BatchCreateResponse is a JSON Structure definition published by HubSpot, describing 8 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

status results requestedAt startedAt completedAt numErrors errors links

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-payments-api-batch-create-response-structure.json",
  "name": "BatchCreateResponse",
  "description": "Response from a batch create operation",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "PROCESSING",
        "CANCELED",
        "COMPLETE"
      ],
      "example": "PENDING"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "A commerce payment object representing a payment transaction",
        "required": [
          "id",
          "properties",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the commerce payment",
            "example": "500123"
          },
          "properties": {
            "type": "object",
            "description": "The properties of the commerce payment",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "key": "value"
            }
          },
          "createdAt": {
            "type": "datetime",
            "description": "When the commerce payment was created",
            "example": "2025-03-15T14:30:00Z"
          },
          "updatedAt": {
            "type": "datetime",
            "description": "When the commerce payment was last updated",
            "example": "2025-03-15T14:30:00Z"
          },
          "archived": {
            "type": "boolean",
            "description": "Whether the commerce payment is archived",
            "example": true
          },
          "archivedAt": {
            "type": "datetime",
            "description": "When the commerce payment was archived",
            "example": "2025-03-15T14:30:00Z"
          },
          "associations": {
            "type": "object",
            "description": "Associated objects",
            "additionalProperties": {
              "$ref": "#/components/schemas/AssociationResult"
            },
            "example": {
              "key": "value"
            }
          },
          "propertiesWithHistory": {
            "type": "object",
            "description": "Properties with their value history",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PropertyHistory"
              }
            },
            "example": {
              "key": "value"
            }
          }
        }
      },
      "example": [
        {
          "id": "500123",
          "properties": {
            "key": "value"
          },
          "createdAt": "2025-03-15T14:30:00Z",
          "updatedAt": "2025-03-15T14:30:00Z",
          "archived": true,
          "archivedAt": "2025-03-15T14:30:00Z",
          "associations": {
            "key": "value"
          },
          "propertiesWithHistory": {
            "key": "value"
          }
        }
      ]
    },
    "requestedAt": {
      "type": "datetime",
      "example": "2025-03-15T14:30:00Z"
    },
    "startedAt": {
      "type": "datetime",
      "example": "2025-03-15T14:30:00Z"
    },
    "completedAt": {
      "type": "datetime",
      "example": "2025-03-15T14:30:00Z"
    },
    "numErrors": {
      "type": "int32",
      "example": 100
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "An error from a batch operation",
        "required": [
          "category",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "active"
          },
          "id": {
            "type": "string",
            "example": "500123"
          },
          "category": {
            "type": "string",
            "example": "standard"
          },
          "message": {
            "type": "string",
            "example": "This is an example description."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            },
            "example": [
              {
                "message": "This is an example description.",
                "code": "example-value",
                "in": "example-value",
                "subCategory": "standard",
                "context": {
                  "key": "value"
                }
              }
            ]
          },
          "context": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": {
              "key": "value"
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "example": {
              "key": "value"
            }
          },
          "subCategory": {
            "type": "string",
            "example": "standard"
          }
        }
      },
      "example": [
        {
          "status": "active",
          "id": "500123",
          "category": "standard",
          "message": "This is an example description.",
          "errors": [
            {}
          ],
          "context": {
            "key": "value"
          },
          "links": {
            "key": "value"
          },
          "subCategory": "standard"
        }
      ]
    },
    "links": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "example": {
        "key": "value"
      }
    }
  },
  "required": [
    "status",
    "results",
    "startedAt",
    "completedAt"
  ]
}