Saleschannel data model

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNo
created_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)No(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
slugstringNomaps to code (name) a stable identifier per channel
descriptionstringNo
is_activebooleanNo
collectionsCommerceReference[]Nopoints to a CommerceCollection
collections[].idstringNo
collections[].namestringNo
collections[].typestringNo

TypeScript

TypeScript
export type CommerceSaleschannel = {
	id?: string;
	created_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	slug?: string; // maps to code (name)  a stable identifier per channel
	description?: string;
	is_active?: boolean;
	collections?: []; // points to a CommerceCollection
	raw?: any;
} 

Zod

Zod
import { z } from 'zod';

export const ZodCommerceSaleschannel = z.object({
	id: z.string().optional(),
	created_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	slug: z.string().optional().describe("maps to code (name)  a stable identifier per channel"),
	description: z.string().optional(),
	is_active: z.boolean().optional(),
	collections: z.array().optional().describe("points to a CommerceCollection"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class CommerceSaleschannel:
	id: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""maps to code (name)  a stable identifier per channel"""
	slug: Optional[str]
	description: Optional[str]
	is_active: Optional[bool]
	"""points to a CommerceCollection"""
	collections: Optional[PropertyCommerceSaleschannelCollections]
Are we missing anything? Let us know
Was this page helpful?