PosLocation
Type: schema
TypeScript Definition
typescript
PosLocation: {{
/** @description warehouse id */
id: $Read<string>;
/** @description legal name */
name: string;
/** @enum {string} */
warehouse_type: "retail-store" | "distribution-center";
/** @default true */
active: boolean;
gstin: string | null;
city: string;
address_line1: string;
address_line2: string | null;
landmark: string | null;
pincode: string;
state: string;
country: string;
/** @default +91 */
country_code: string;
/** @description 10 digit number without country code. */
contact_phone: string;
contact_email: string;
is_default: boolean;
image_url: string | null;
seller_warehouse_id: string | null;
can_receive_stock: boolean;
can_ship_parcel: boolean;
can_collect: boolean;
/** @description this field will be always true for warehouse_type = retail-store. */
is_checkout_point: boolean;
accepts_returns: boolean;
opening_hours: {
sunday?: {
opening_time: string;
closing_time: string;
} | null;
monday?: {
opening_time: string;
closing_time: string;
} | null;
tuesday?: {
opening_time: string;
closing_time: string;
} | null;
wednesday?: {
opening_time: string;
closing_time: string;
} | null;
thursday?: {
opening_time: string;
closing_time: string;
} | null;
friday?: {
opening_time: string;
closing_time: string;
} | null;
saturday?: {
opening_time: string;
closing_time: string;
} | null;
} | null;
};
/** POSPaymentMethodPayload */
}OpenAPI Schema
json
{
"description": "",
"type": "object",
"properties": {
"id": {
"description": "warehouse id",
"type": "string",
"readOnly": true
},
"name": {
"description": "legal name",
"type": "string"
},
"warehouse_type": {
"type": "string",
"enum": [
"retail-store",
"distribution-center"
]
},
"active": {
"type": "boolean",
"default": true
},
"gstin": {
"type": [
"string",
"null"
]
},
"city": {
"type": "string"
},
"address_line1": {
"type": "string"
},
"address_line2": {
"type": [
"string",
"null"
]
},
"landmark": {
"type": [
"string",
"null"
]
},
"pincode": {
"type": "string"
},
"state": {
"type": "string"
},
"country": {
"type": "string"
},
"country_code": {
"type": "string",
"default": "+91"
},
"contact_phone": {
"description": "10 digit number without country code.",
"type": "string"
},
"contact_email": {
"type": "string"
},
"is_default": {
"type": "boolean"
},
"image_url": {
"type": [
"string",
"null"
]
},
"seller_warehouse_id": {
"type": [
"string",
"null"
]
},
"can_receive_stock": {
"type": "boolean"
},
"can_ship_parcel": {
"type": "boolean"
},
"can_collect": {
"type": "boolean"
},
"is_checkout_point": {
"description": "this field will be always true for warehouse_type = retail-store.",
"type": "boolean"
},
"accepts_returns": {
"type": "boolean"
},
"opening_hours": {
"type": [
"object",
"null"
],
"properties": {
"sunday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"monday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"tuesday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"wednesday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"thursday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"friday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
},
"saturday": {
"type": [
"object",
"null"
],
"properties": {
"opening_time": {
"type": "string"
},
"closing_time": {
"type": "string"
}
},
"required": [
"opening_time",
"closing_time"
]
}
}
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/PosLocation"
},
"required": [
"name",
"warehouse_type",
"city",
"address_line1",
"pincode",
"state",
"country",
"contact_phone",
"contact_email",
"can_receive_stock",
"can_ship_parcel",
"can_collect",
"is_checkout_point",
"accepts_returns",
"id",
"active",
"gstin",
"address_line2",
"landmark",
"country_code",
"is_default",
"image_url",
"seller_warehouse_id",
"opening_hours"
],
"title": "PosLocation"
}Auto-generated from OpenAPI spec and TypeScript definitions