{"message":"For more details about the SKULabs API, visit https://www.skulabs.com/api/ or check https://api.skulabs.com/definition for updated parameter definitions. You can also find our OpenAPI specification at https://api.skulabs.com/openapi.","version":"4.5.0","backend_version":"v2026.15.5+production","links":{"related":"https://www.skulabs.com/api/","definition":"https://api.skulabs.com/definition","openapi_specification":"https://api.skulabs.com/openapi"},"note":"Most API keys have \"platformGeneric\" and \"platformApi\" scopes included. Contact us to convert more routes from \"platformUser\" (only available to users) to \"platformGeneric\" (available to users and api keys) upon request.","public_routes":{"batch":[{"method":"GET","url":"https://api.skulabs.com/batch/get","parameters":["batch_id","batch_number"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve batch details by ID, including orders and fulfillment progress.","request":{"params":{"batch_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Batch ID to retrieve","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"batch_number":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Batch number to retrieve"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Full batch detail with orders, inventory, and scan data","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BatchGetResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"customer":[{"method":"POST","url":"https://api.skulabs.com/customer/add_note","parameters":["id","note"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add a note to a customer record.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Customer ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"note":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Note text to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Note added, returns updated customer","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetCustomerResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/customer/add_tag","parameters":["ids","tag_id"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add a tag to one or more customers.","request":{"params":{"ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of customer IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to customers","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/customer/get_customer","parameters":["id"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve a single customer by ID with full details including notes and activity log.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Customer ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Customer found","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetCustomerResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/customer/get_customers","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve a paginated list of customers with optional filtering.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of customers","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Customer"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/customer/remove_tag","parameters":["ids","tag_id"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Remove a tag from one or more customers.","request":{"params":{"ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of customer IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed from customers","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"cycle_count":[{"method":"GET","url":"https://api.skulabs.com/cycle_count/get","parameters":["id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single cycle count by ID with its item details.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Cycle count ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Single cycle count","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CycleCountResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/cycle_count/get_all","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all cycle counts with optional filtering by status and warehouse.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date/time filter for log entries","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date/time filter for log entries","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of cycle counts within the date range","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CycleCountsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"distributor":[{"method":"PUT","url":"https://api.skulabs.com/distributor/add_item","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add an item to a distributor's catalog with supplier-specific SKU, cost, and lead time.","request":{"params":{"data":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Item data to add to the supplier"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Item added to supplier successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/distributor/bulk_remove_item","parameters":["id","item_ids"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove multiple items from a distributor's catalog in a single request.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Supplier ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of distributor item entry IDs to remove","example":["507f1f77bcf86cd799439011"]}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items removed from supplier successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/distributor/create","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new distributor with contact details and address.","request":{"params":{"data":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Supplier data to create"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Supplier created successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatedResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/distributor/edit_item","parameters":["item"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Update an item's details in a distributor's catalog.","request":{"params":{"item":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Updated supplier item data"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Supplier item updated successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/distributor/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a paginated list of distributors (suppliers/vendors).","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of suppliers matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Distributor"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/distributor/remove_item","parameters":["id","item_id","quantity"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove an item from a distributor's catalog.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Supplier ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Distributor item entry ID to remove","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item removed from supplier successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/distributor/update","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Update an existing distributor's information.","request":{"params":{"data":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Supplier data to update"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Supplier updated successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"inventory":[{"method":"POST","url":"https://api.skulabs.com/inventory/bulk_reconciliation","parameters":["type","reason","notes","rows"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Reconcile inventory quantities in bulk, adjusting on-hand counts to match physical counts.","request":{"params":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Reconciliation type"}}},"~standard":{"version":1,"vendor":"zod"}},"reason":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Reason for reconciliation"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Notes"}}},"~standard":{"version":1,"vendor":"zod"}},"rows":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of reconciliation row objects"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Reconciliation completed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/calculate_free_map","parameters":["items_ids","warehouse_ids"],"scopes":["platformGeneric"],"schema":{"description":"Calculate available inventory by subtracting reserved quantities from on-hand stock.","request":{"params":{"items_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by warehouse IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Map of item IDs to free inventory quantities. When warehouse_linked_reserves is enabled, returns nested map by warehouse_id then item_id.","schema":{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"options":[{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"FreeInventoryEntry"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"FreeInventoryEntry"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodRecord"},"~standard":{"version":1,"vendor":"zod"}}],"typeName":"ZodUnion"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodRecord","openapi":{"_internal":{"refId":"CalculateFreeMapResponse"}}},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/inventory/decrease_on_hand","parameters":["location_id","item_id","amount","notes"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Decrease the on-hand inventory quantity for an item at a specific warehouse.","request":{"params":{"location_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"amount":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"Amount to decrease by"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Notes for the change"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"On-hand decreased","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/deduct_serial_numbers","parameters":["item_id","serial_numbers"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Deduct serial numbers from inventory, marking them as used or shipped.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"serial_numbers":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Serial numbers to deduct"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Serial numbers deducted","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get","parameters":["data"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve inventory records for items and kits across warehouses.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Inventory records wrapped in object","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetInventoryResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_grouped_locations_map","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve inventory quantities grouped by location across warehouses.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Inventory grouped by location or element. Returns an array by default, or a map when result_type is \"map\".","schema":{"_def":{"options":[{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GroupedLocationEntry"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodRecord"},"~standard":{"version":1,"vendor":"zod"}}],"typeName":"ZodUnion","openapi":{"_internal":{"refId":"GroupedLocationsMapResponse"}}},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get_history","parameters":["start","end","notes"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve the inventory change history for a specific item at a warehouse.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by notes text"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory history records","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"HistoryResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get_inventory_history","parameters":["start","end","notes"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve detailed inventory history with change types, quantities, and timestamps.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by notes text"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory history records","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"HistoryResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get_item_free","parameters":["sku","warehouse_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve the available (free) inventory quantity for an item, excluding reserved stock.","request":{"params":{"sku":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item SKU to look up free inventory for"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by warehouse IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Free (available) inventory for the item","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetItemFreeResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_items","parameters":["item_ids","warehouse_ids"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve inventory records for a specific list of item IDs.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs to look up"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by warehouse IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory for requested items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetInventoryItemsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_items_and_kits_map","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve a combined map of both item and kit inventory quantities.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Combined items and kits inventory map.","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemsAndKitsMapResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_items_incoming","parameters":["item_ids","warehouse_ids"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve incoming inventory quantities from open purchase orders.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs to look up"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by warehouse IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Incoming inventory for requested items from open purchase orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"GetIncomingItemsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_items_map","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve a map of item inventory quantities keyed by item ID and warehouse.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Items inventory map. Keys are item IDs, values contain on_hand, reserved, and free quantities.","schema":{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemsMapEntry"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodRecord","openapi":{"_internal":{"refId":"ItemsMapResponse"}}},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_kits_map","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve a map of kit inventory quantities keyed by kit ID and warehouse.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Kits inventory map with optional items inventory.","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"KitsMapResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_on_hand_location_map","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve on-hand inventory quantities broken down by warehouse location.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"On-hand inventory by location map. Keys are location IDs, values are objects mapping item IDs to on-hand quantities.","schema":{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"keyType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"valueType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodRecord"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodRecord","openapi":{"_internal":{"refId":"OnHandLocationMapResponse"}}},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get_received_history","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve the history of inventory received through purchase orders.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory history records","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"HistoryResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/inventory/get_reserved_map","parameters":["store_ids","listing_links"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a map of reserved inventory quantities per item across warehouses.","request":{"params":{"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"listing_links":{"_def":{"innerType":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Listing link objects to filter by"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Reserved inventory map keyed by SKU","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ReservedMapResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/inventory/get_via_post_reserved_map","parameters":["store_ids","listing_links"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve reserved inventory map via POST for large item ID lists that exceed GET URL limits.","request":{"params":{"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"listing_links":{"_def":{"innerType":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Listing link objects to filter by"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Reserved inventory map keyed by SKU (via POST)","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ReservedMapPostResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/inventory/increase_on_hand","parameters":["location_id","item_id","amount","notes","no_invalidate","lock_key","alert"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Increase the on-hand inventory quantity for an item at a specific warehouse.","request":{"params":{"location_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"amount":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"Amount to increase by"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Notes for the change"}}},"~standard":{"version":1,"vendor":"zod"}},"no_invalidate":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache invalidation"}}},"~standard":{"version":1,"vendor":"zod"}},"lock_key":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Lock key for concurrent operations"}}},"~standard":{"version":1,"vendor":"zod"}},"alert":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Set alert threshold"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"On-hand increased","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/inventory/upsert","parameters":["location_name","item_id","on_hand","alert","notes"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Create or update an inventory record for an item at a specific warehouse.","request":{"params":{"location_name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location name to upsert inventory at"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"on_hand":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"On-hand quantity to set"}}},"~standard":{"version":1,"vendor":"zod"}},"alert":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Low-stock alert threshold"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Notes for the inventory change"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory upserted","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"item":[{"method":"POST","url":"https://api.skulabs.com/item/add_barcode","parameters":["item_id","upc"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add a barcode to an existing item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Barcode to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Barcode added","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/add_custom_field","parameters":["item_id","field","value"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a custom field key-value pair to an item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"field":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field name"}}},"~standard":{"version":1,"vendor":"zod"}},"value":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field value"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Custom field added","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/add_serial_numbers","parameters":["item_id","serial_numbers","no_refresh","sku","lot_count","lot_prefix"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add serial numbers to an item's inventory at a specific warehouse.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"serial_numbers":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Serial numbers to add"}}},"~standard":{"version":1,"vendor":"zod"}},"no_refresh":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache refresh"}}},"~standard":{"version":1,"vendor":"zod"}},"sku":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Item SKU (alternative lookup)"}}},"~standard":{"version":1,"vendor":"zod"}},"lot_count":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Lot count"}}},"~standard":{"version":1,"vendor":"zod"}},"lot_prefix":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Lot prefix"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Serial numbers added","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"AddSerialNumbersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/add_tag","parameters":["item_ids","tag_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a tag to one or more items by tag ID.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/bulk_assign","parameters":["item_ids","warehouse_id","name","location_alias"],"scopes":["platformGeneric","userManager","confirmBilling"],"notes":"Pass in a list of item_ids, a warehouse_id, a location name, and the location alias. If your account is using \"warehouse-based\" inventory (check your inventory settings page), you will want to set the location \"name\" to your warehouse name then use the \"location_alias\" as the item's bin location name for that warehouse. If your account is using \"location-based\" inventory (check your inventory settings page), you will want to set the location \"name\" to a true location name that is found within the warehouse and leave \"location_alias\" blank.","schema":{"description":"Assign items to a warehouse location in bulk. If the location does not exist, it will be created.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs to assign"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Target warehouse ID"}}},"~standard":{"version":1,"vendor":"zod"}},"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location name"}}},"~standard":{"version":1,"vendor":"zod"}},"location_alias":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Location alias / bin name"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items assigned to location","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BulkAssignResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/item/bulk_upsert","parameters":["items"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create or update multiple items in a single request.","request":{"params":{"items":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item objects to upsert"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items upserted","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/create","parameters":["name","sku","upc","location"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new item with SKU, name, and optional details like barcodes and dimensions.","request":{"params":{"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item name"}}},"~standard":{"version":1,"vendor":"zod"}},"sku":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"SKU"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"UPC barcode"}}},"~standard":{"version":1,"vendor":"zod"}},"location":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Initial warehouse location"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemUpsertResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/item/create_upsert","parameters":["item"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new item or update an existing one if the SKU already exists.","request":{"params":{"item":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Item data object to create or update"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Item created or updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemUpsertResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/item/find_by_barcode","parameters":["barcode"],"scopes":["platformGeneric"],"schema":{"description":"Look up an item by its barcode (UPC, EAN, ISBN, or custom barcode).","request":{"params":{"barcode":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Barcode to search for","example":"012345678901"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items matching the barcode","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemBarcodeResult"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/item/get","parameters":["selector","limit","skip","sort","fields"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Retrieve a paginated list of items with optional filtering.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of items matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Item"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/item/get_locations","parameters":["item_id"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Retrieve warehouse locations assigned to an item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item warehouse locations with inventory data","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemLocation"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/new_remove_serial_number","parameters":["params"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a serial number from an item using the updated removal method.","request":{"params":{"params":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Serial number removal parameters"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Serial number removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/remove","parameters":["item_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Permanently delete an item and its associated inventory records.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/remove_barcode","parameters":["item_id","upc"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a barcode from an item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Barcode to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Barcode removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/remove_custom_field","parameters":["item_id","field"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a custom field from an item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"field":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field name to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Custom field removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/remove_serial_number","parameters":["item_id","serial_number"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a serial number from an item's inventory.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"serial_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Serial number to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Serial number removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/item/remove_tag","parameters":["item_ids","tag_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a tag from one or more items.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed from items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/item/set_tags","parameters":["item_id","tag_ids"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Replace all tags on one or more items with a new set of tags.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of tag IDs to set"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tags set on item","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/item/update","parameters":["item_id","name","sku","upc","weight","weight_unit","length","width","height","dimensions_unit","fulfillment_sku","notes","unit","cost","wholesale","retail","image","active","description","sale"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Update an existing item's properties such as name, weight, dimensions, or cost.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to update"}}},"~standard":{"version":1,"vendor":"zod"}},"name":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Item name"}}},"~standard":{"version":1,"vendor":"zod"}},"sku":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"SKU"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"UPC barcode"}}},"~standard":{"version":1,"vendor":"zod"}},"weight":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Weight"}}},"~standard":{"version":1,"vendor":"zod"}},"weight_unit":{"_def":{"innerType":{"_def":{"values":["oz","lb","g","kg"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Weight unit"}}},"~standard":{"version":1,"vendor":"zod"}},"length":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Length"}}},"~standard":{"version":1,"vendor":"zod"}},"width":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Width"}}},"~standard":{"version":1,"vendor":"zod"}},"height":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Height"}}},"~standard":{"version":1,"vendor":"zod"}},"dimensions_unit":{"_def":{"innerType":{"_def":{"values":["in","cm"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Dimensions unit"}}},"~standard":{"version":1,"vendor":"zod"}},"fulfillment_sku":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Fulfillment SKU"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Notes"}}},"~standard":{"version":1,"vendor":"zod"}},"unit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Unit of measure"}}},"~standard":{"version":1,"vendor":"zod"}},"cost":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Cost"}}},"~standard":{"version":1,"vendor":"zod"}},"wholesale":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Wholesale price"}}},"~standard":{"version":1,"vendor":"zod"}},"retail":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Retail price"}}},"~standard":{"version":1,"vendor":"zod"}},"image":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Image URL"}}},"~standard":{"version":1,"vendor":"zod"}},"active":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Active status"}}},"~standard":{"version":1,"vendor":"zod"}},"description":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Item description"}}},"~standard":{"version":1,"vendor":"zod"}},"sale":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sale price"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemUpsertResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/item/update_alias_locations","parameters":["item"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Update the alias location mappings for an item across warehouses.","request":{"params":{"item":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Item object with alias_locations to update"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Alias locations updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemUpsertResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/item/upsert","parameters":["item"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new item or update an existing one based on the provided identifier.","request":{"params":{"item":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Item data object to upsert (matched by SKU)"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Item upserted","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ItemUpsertResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://app.skulabs.com/s/job/item/bulk_remove","parameters":["item_ids"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove multiple items in a single bulk operation.","request":{"params":{"item_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of item IDs to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"kit":[{"method":"POST","url":"https://api.skulabs.com/kit/add_barcode","parameters":["kit_id","upc"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a barcode to an existing kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"options":[{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}],"typeName":"ZodUnion","openapi":{"metadata":{"description":"Barcode or array of barcodes to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Barcode added to kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/kit/add_custom_field","parameters":["kit_id","field","value"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a custom field key-value pair to a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"field":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field name"}}},"~standard":{"version":1,"vendor":"zod"}},"value":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field value (use \"REMOVE\" to delete an existing field)"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Custom field added to kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/kit/add_item","parameters":["kit_id","item_id","quantity"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a component item to an existing kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to add"}}},"~standard":{"version":1,"vendor":"zod"}},"quantity":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"Quantity of the item in the kit"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item added to kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/kit/add_tag","parameters":["kit_ids","tag_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Add a tag to one or more kits by tag ID.","request":{"params":{"kit_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of kit IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to kits","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/kit/bulk_update","parameters":["kits"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Update multiple kits in a single request.","request":{"params":{"kits":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of kit objects to update"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Kits updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/kit/create","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"notes":"interface data {\n    name: string;\n    sku: string;\n    items?: Array<{ item_id?: objectid, sku?: string, upc?: string, quantity?: number, type?: enum['new'] }>;\n    barcodes?: string[]; // Barcodes which identify this entire kit\n    fulfillment_sku?: string;\n    notes?: string;\n    cost?: number;\n    wholesale?: number;\n    retail?: number;\n    sale?: number;\n    image?: string;\n    description?: string;\n    lag_time?: number;\n    weight?: number;\n    weight_unit?: string;\n    active?: bool;\n  }\n  \n  Send an array of items e.g. items: [{ sku: 'ABC', quantity: 10}]\n  Send an array of items that may or may not exist already: e.g. items: [{ type: 'new', sku: 'XYZ', name: 'Test', upc: 'barcodeforxyz', quantity: 10}]\n  Send an array of skulabs item_id: [{ item_id: '5c4e5c4e5c4e5c4e5c4e5c4e', quantity: 10 }]\n  ","schema":{"description":"Create a new kit with component items, SKU, and optional details.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Kit data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Kit created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreateKitResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/kit/edit_item","parameters":["kit_id","item_id","quantity"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Edit a component item's quantity or properties within a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to edit"}}},"~standard":{"version":1,"vendor":"zod"}},"quantity":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"New quantity"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Kit item updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/kit/get","parameters":["selector","limit","skip","sort","fields"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a paginated list of kits with optional filtering.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of kits","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Kit"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/kit/remove","parameters":["kit_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Permanently delete a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Kit removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/kit/remove_barcode","parameters":["kit_id","upc"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a barcode from a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"upc":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Barcode to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Barcode removed from kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/kit/remove_custom_field","parameters":["kit_id","field"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a custom field from a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"field":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Custom field name to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Custom field removed from kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/kit/remove_item","parameters":["kit_id","item_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a component item from a kit.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to remove from kit"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item removed from kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/kit/remove_tag","parameters":["kit_ids","tag_id"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Remove a tag from one or more kits.","request":{"params":{"kit_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of kit IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed from kits","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/kit/set_tags","parameters":["kit_id","tag_ids"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Replace all tags on one or more kits with a new set of tags.","request":{"params":{"kit_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Kit ID"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of tag IDs to set"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tags set on kit","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/kit/update","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"notes":"interface data = {\n    kit_id: string;\n    items?: Array<{ item_id?: objectid, sku?: string, upc?: string, quantity?: number, type?: enum['new'] }>;\n    name: string;\n    sku?: string;\n    fulfillment_sku?: string;\n    notes?: string;\n    cost?: number;\n    wholesale?: number;\n    retail?: number;\n    sale?: number;\n    image?: string;\n    description?: string;\n    lag_time?: number;\n    weight?: number;\n    weight_unit?: string;\n    active?: boolean;\n  }\n  \n  Send an array of items e.g. items: [{ sku: 'ABC', quantity: 10}]\n  Send an array of items that may or may not exist already: e.g. items: [{ type: 'new', sku: 'XYZ', name: 'Test', upc: 'barcodeforxyz', quantity: 10}]\n  Send an array of skulabs item_id: [{ item_id: '5c4e5c4e5c4e5c4e5c4e5c4e', quantity: 10 }]\n  ","schema":{"description":"Update an existing kit's properties such as name, weight, or component items.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Kit data to update (must include _id, kit_id, listing_sku, or sku to identify the kit)"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Kit updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"listing":[{"method":"GET","url":"https://api.skulabs.com/listing/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve product listings with optional filtering by store and linked item status.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of listings matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Listing"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/job/listing/listing_links_csv_import","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Import listing-to-item links from a CSV file.","request":{"params":{"data":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"CSV data for bulk listing link updates. Columns: sku (item/kit SKU), listing_sku (channel listing SKU), override_link or force (optional, to override existing links)"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Listing links import results with row-by-row status","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ListingCsvImportResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/job/listing/rules_csv_import","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Import listing rules from a CSV file.","request":{"params":{"data":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"CSV data for bulk rule updates. Columns: store, sku, inventory rule (or stock rule), price rule, fulfillment rule, restock date, restock quantity"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Rules import results with row-by-row status","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ListingCsvImportResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"location":[{"method":"POST","url":"https://api.skulabs.com/location/add_item","parameters":["id","item_id","on_hand","alert"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Assign an item to a warehouse location.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"SKULabs item ID to add","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"on_hand":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false,"openapi":{"metadata":{"description":"Initial on-hand quantity","example":10}}},"~standard":{"version":1,"vendor":"zod"}},"alert":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Low-stock alert level","example":5}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item added to location successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/location/create","parameters":["warehouse_id","name"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Create a new location within a warehouse (e.g. bin, shelf, or zone).","request":{"params":{"warehouse_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Warehouse ID to create the location in","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location name","example":"Shelf A-1"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Location created successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"LocationCreateResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/location/get","parameters":["id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single warehouse location by ID.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Location details with inventory items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/location/get_all","parameters":["warehouse_id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all locations for a specific warehouse.","request":{"params":{"warehouse_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Warehouse ID to get all locations for","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"All locations in the warehouse with their inventory items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/location/get_items","parameters":["id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all items assigned to a specific warehouse location.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Location details with inventory items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/location/get_list","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Retrieve a paginated list of locations with optional filtering.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of locations matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Location"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/location/remove_item","parameters":["id","item_id"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Remove an item from a warehouse location assignment.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Location ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"SKULabs item ID to remove from location","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Item removed from location successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"oauth":[{"method":"POST","url":"https://api.skulabs.com/oauth/token","parameters":["grant_type","code","client_id","client_secret","state","req","res"],"scopes":["unauthenticated"]},{"method":"GET","url":"https://api.skulabs.com/oauth/userInfo","parameters":[],"scopes":["profile","platformOpen"]}],"order":[{"method":"POST","url":"https://api.skulabs.com/order/add","parameters":["store_id","order_number","stash","tags"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new manual order with specified items, shipping address, and order details.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID to add the order to","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number for the new order"}}},"~standard":{"version":1,"vendor":"zod"}},"stash":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Order data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"tags":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tag IDs to apply to the order (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011","507f1f77bcf86cd799439012"]}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Order added","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/add_manual_shipment","parameters":["store_id","order_number","address","carrier","tracking_number","service","order_items","warehouse_id","dropship","no_refresh","notes","force_deduction","cost","options","booking","seal","origin_address","bol_pro_number","total_bundles","tracking_url","parcel"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add a manual shipment with tracking information to an order.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"address":{"_def":{"innerType":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ShipTo"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"_internal":{"refId":"ShipTo"},"metadata":{"description":"Shipping address"}}},"~standard":{"version":1,"vendor":"zod"}},"carrier":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Carrier name (e.g. USPS, UPS, FedEx)"}}},"~standard":{"version":1,"vendor":"zod"}},"tracking_number":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tracking number"}}},"~standard":{"version":1,"vendor":"zod"}},"service":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Shipping service type"}}},"~standard":{"version":1,"vendor":"zod"}},"order_items":{"_def":{"innerType":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Items included in the shipment"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Warehouse ID to ship from"}}},"~standard":{"version":1,"vendor":"zod"}},"dropship":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Whether this is a dropship order"}}},"~standard":{"version":1,"vendor":"zod"}},"no_refresh":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache refresh after operation"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Shipment notes"}}},"~standard":{"version":1,"vendor":"zod"}},"force_deduction":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Force inventory deduction"}}},"~standard":{"version":1,"vendor":"zod"}},"cost":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Shipping cost"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Shipment added successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/add_note","parameters":["store_id","order_number","note","type"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add an internal or customer-facing note to an order.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"note":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Note text"}}},"~standard":{"version":1,"vendor":"zod"}},"type":{"_def":{"innerType":{"_def":{"values":["internal","customer_facing"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Note type"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Note added","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/add_tag","parameters":["orders","tag_id","no_refresh","reason","is_system"],"scopes":["platformGeneric"],"schema":{"description":"Add a tag to one or more orders by tag ID.","request":{"params":{"orders":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderRef"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of order references"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to add"}}},"~standard":{"version":1,"vendor":"zod"}},"no_refresh":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache refresh"}}},"~standard":{"version":1,"vendor":"zod"}},"reason":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Reason for adding the tag"}}},"~standard":{"version":1,"vendor":"zod"}},"is_system":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Whether this is a system tag operation"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/add_tag_by_name","parameters":["orders","tag_name","reason"],"scopes":["platformGeneric"],"schema":{"description":"Add a tag to one or more orders by tag name, creating the tag if it doesn't exist.","request":{"params":{"orders":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderRef"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of order references"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag name to add (creates if not found)"}}},"~standard":{"version":1,"vendor":"zod"}},"reason":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Reason for adding the tag"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to orders by name","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/bulk_add_manual_shipments","parameters":["rows","options"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Add manual shipments with tracking information to multiple orders in a single request.","request":{"params":{"rows":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of shipment row objects"}}},"~standard":{"version":1,"vendor":"zod"}},"options":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Additional options"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Bulk shipment results","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get","parameters":["selector","limit","skip","sort","fields"],"scopes":["platformGeneric"],"notes":"Maximum page size limit: 100 - Standard, 250 - 2023 Pro, 500 - 2023 Enterprise.\n    Selector definition: {\n      store_ids: [storeId],\n      order_number: String,\n      unfulfilled: Boolean, // Set to true to receive non-archived orders\n      pending: Boolean, // Set to false to exclude unpaid orders\n      status: String,\n      tags: TagId,\n      start_date: ISODate,\n      end_date: ISODate,\n      shipped_start_date: ISODate,\n      shipped_end_date: ISODate,\n      last_updated_start_date: ISODate,\n      last_updated_end_date: ISODate,\n      type: String, // Infrequently used\n   }","schema":{"description":"Retrieve a paginated list of orders with optional filtering by status, store, tags, and date ranges. Maximum page size: 100 (Standard), 250 (Pro), 500 (Enterprise).","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of orders matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderListItem"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_all","parameters":["start","end","tags","store_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all orders without pagination. Use with caution on large datasets.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}},"tags":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by tag IDs (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011"]}}},"~standard":{"version":1,"vendor":"zod"}},"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"All orders in date range","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_archived","parameters":["start","end","tags","store_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve archived orders with optional filtering.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}},"tags":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by tag IDs (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011"]}}},"~standard":{"version":1,"vendor":"zod"}},"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Archived orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_by_base_order_number","parameters":["base_order_number"],"scopes":["platformGeneric"],"schema":{"description":"Look up orders by their base order number, which groups split and combined orders.","request":{"params":{"base_order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Base order number to search for","example":"ORD-1234"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Orders matching the base order number","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderBaseNumberResult"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_customs_information","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve customs declaration information for an order's items.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Customs information for orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_scanned_serial_numbers","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve serial numbers that have been scanned during order fulfillment.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Scanned serial number records","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_shipped","parameters":["start","end","tags","store_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve shipped orders with optional filtering by date range and store.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}},"tags":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by tag IDs (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011"]}}},"~standard":{"version":1,"vendor":"zod"}},"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Shipped orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_single","parameters":["store_id","order_number"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single order by its order number and store ID.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number","example":"ORD-1234"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Order found with full details","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/order/get_single_bulk","parameters":["order"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve multiple orders by their order number and store ID pairs in a single request.","request":{"params":{"order":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderRef"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of order references (store_id + order_number)"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of order detail objects","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_skipped_scans","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve items that were skipped during barcode scanning in order fulfillment.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Skipped scan records","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/get_unscanned_items","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve items that have not been scanned during order fulfillment.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Unscanned item report with cleared, shipped, and sold item aggregations","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/order/modify_financial_status","parameters":["store_id","order_number","financial_status","status_date","order","refresh_cache"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Update the financial/payment status of one or more orders.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"financial_status":{"_def":{"values":["pending","paid"],"typeName":"ZodEnum","openapi":{"metadata":{"description":"New financial status"}}},"~standard":{"version":1,"vendor":"zod"}},"status_date":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Date for the status change","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"order":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Order reference object"}}},"~standard":{"version":1,"vendor":"zod"}},"refresh_cache":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Refresh cache after update"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Financial status updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/order/modify_status","parameters":["store_id","order_number","status","refresh_cache","status_date","force","order"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Update the fulfillment status of one or more orders.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"status":{"_def":{"values":["unstarted","in_progress","shipped","cancelled","cleared","delayed","stopped","partially shipped","archived","awaiting fulfillment","pending","partially cleared"],"typeName":"ZodEnum","openapi":{"metadata":{"description":"New status value"}}},"~standard":{"version":1,"vendor":"zod"}},"refresh_cache":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Refresh cache after update"}}},"~standard":{"version":1,"vendor":"zod"}},"status_date":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Date to set for the status change","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"force":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Force the status change"}}},"~standard":{"version":1,"vendor":"zod"}},"order":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Order reference object"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Status updated","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/order/override","parameters":["store_id","order_number","stash"],"scopes":["platformGeneric"],"notes":"This API can break your order and make it inaccessible in the user interface. Use caution. Use order/revert to revert an order to the original state of when you made your first override.","schema":{"description":"Override order fields with custom values.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"stash":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Object with fields to override on the order"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Order overridden","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/order/remove_tag","parameters":["orders","tag_id"],"scopes":["platformGeneric"],"schema":{"description":"Remove a tag from one or more orders.","request":{"params":{"orders":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderRef"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of order references"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed from orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/order/revert","parameters":["store_id","order_number"],"scopes":["platformGeneric"],"schema":{"description":"Revert an order back to its previous status, undoing the last status change.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Order reverted to original stash","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/order/set_tags","parameters":["store_id","order_number","tags","reason","orders"],"scopes":["platformGeneric"],"schema":{"description":"Replace all tags on one or more orders with a new set of tags.","request":{"params":{"store_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Store ID (use with order_number)","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Order number (use with store_id)"}}},"~standard":{"version":1,"vendor":"zod"}},"tags":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of tag IDs to set (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011","507f1f77bcf86cd799439012"]}}},"~standard":{"version":1,"vendor":"zod"}},"reason":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Reason for setting tags"}}},"~standard":{"version":1,"vendor":"zod"}},"orders":{"_def":{"innerType":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderRef"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Array of order references (alternative to store_id + order_number)"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tags set on orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/status","parameters":["store_id","order_number"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve the current status of an order.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Order status","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/undershipped_item_report","parameters":["start","end","store_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a report of items that were shipped in quantities less than ordered.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}},"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Undershipped item report","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"UndershippedItem"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/order/unscanned_order_list","parameters":["start","end","store_ids"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a list of orders with items that have not been scanned during fulfillment.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2024-01-01"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2024-12-31"}}},"~standard":{"version":1,"vendor":"zod"}},"store_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by store IDs"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Unscanned order list","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"UnscannedOrder"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"purchase_order":[{"method":"POST","url":"https://api.skulabs.com/purchase_order/add_tag","parameters":["purchase_order_ids","tag_id"],"scopes":["platformGeneric"],"schema":{"description":"Add a tag to one or more purchase orders.","request":{"params":{"purchase_order_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of purchase order IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to add"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag added to purchase orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/bulk_accept","parameters":["items"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Accept items on multiple purchase orders in bulk, updating received quantities.","request":{"params":{"items":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of items to accept into inventory"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Items accepted into inventory","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/create","parameters":["number","store_id","distributor_id","warehouse_id","items","subtotal","tax","tax_per","total","memo","terms","shipping","method","discount","discount_per","dropship_address","status","due_date","dropshipped"],"scopes":["platformGeneric","confirmBilling"],"notes":"August 2023: Now supports item_id, kit_id, sku (SKULabs Kit or Item), mpn (Supplier MPN), or barcode (SKULabs Kit or Item barcode) as lookup fields in the item array.","schema":{"request":{"params":{"number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"PO number"}}},"~standard":{"version":1,"vendor":"zod"}},"store_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"distributor_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Distributor ID"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Warehouse ID"}}},"~standard":{"version":1,"vendor":"zod"}},"items":{"_def":{"innerType":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrderItem"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Line items"}}},"~standard":{"version":1,"vendor":"zod"}},"subtotal":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Subtotal"}}},"~standard":{"version":1,"vendor":"zod"}},"tax":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tax amount"}}},"~standard":{"version":1,"vendor":"zod"}},"tax_per":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tax percentage"}}},"~standard":{"version":1,"vendor":"zod"}},"total":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Total"}}},"~standard":{"version":1,"vendor":"zod"}},"memo":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Memo"}}},"~standard":{"version":1,"vendor":"zod"}},"terms":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Payment terms"}}},"~standard":{"version":1,"vendor":"zod"}},"shipping":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Shipping cost"}}},"~standard":{"version":1,"vendor":"zod"}},"method":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Payment method"}}},"~standard":{"version":1,"vendor":"zod"}},"discount":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Discount amount"}}},"~standard":{"version":1,"vendor":"zod"}},"discount_per":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Discount percentage"}}},"~standard":{"version":1,"vendor":"zod"}},"dropship_address":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Dropship address"}}},"~standard":{"version":1,"vendor":"zod"}},"status":{"_def":{"innerType":{"_def":{"values":["closed","created","receiving","acknowledged","sent","edited","transit","accepting"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Initial PO status"}}},"~standard":{"version":1,"vendor":"zod"}},"due_date":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Due date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"dropshipped":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Dropshipped flag"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Purchase order created","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatePurchaseOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/create_v2","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"notes":"September 2023: Now supports \"store_name\", \"distributor_name\", and \"warehouse_name\" instead of ID. CSV Import now supports arrival_date and dropshipped flag.\nAugust 2023: Now supports item_id, kit_id, sku (SKULabs Kit or Item), mpn (Supplier MPN), or barcode (SKULabs Kit or Item barcode) as lookup fields in the item array.\n\nInterface:\n{ number: 'A number or leave blank/use \"AutoIncrement\" to use auto-sequencer', store_id or store_name, distributor_id or distributor_name, warehouse_id or warehouse_name, status: enum(['closed', 'created', 'receiving', 'acknowledged', 'sent', 'edited', 'transit', 'accepting']), tags: ['TagName1', 'TagName2'], items: { quantity: 0, received: 0 /*non-transactional field*/, sku: 'skulabs item or kit sku', mpn: 'distributor item part_number', item_id: 'skulabs_item_id', kit_id: 'skulabs_kit_id' (only use one of mpn, sku, item_id, or kit_id), serial_numbers: ['xyz'] }, subtotal, tax, tax_per (tax percent), total: 10.00, memo: 'string', terms: 'string', shipping: 0.00, method: 'Priority', discount: 0.00, discount_per (discount percent), dropship_address, due_date: 'ISODate', dropshipped: true/false, arrival_date: 'ISODate', currency: 'USD' })\n","schema":{"description":"Create a purchase order using names instead of IDs for store, distributor, and warehouse. Supports item lookup by SKU, MPN, or barcode.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Purchase order data object (v2)"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Purchase order created","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatePurchaseOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a paginated list of purchase orders with optional filtering.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of purchase orders","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrder"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_by_status","parameters":["status"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve purchase orders filtered by their current status.","request":{"params":{"status":{"_def":{"values":["closed","created","receiving","acknowledged","sent","edited","transit","accepting"],"typeName":"ZodEnum","openapi":{"metadata":{"description":"PO status to filter by"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Purchase orders by status","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_closed","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all closed (completed) purchase orders.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Closed purchase orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_closed_with_items","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve closed purchase orders with their full item details included.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date","format":"date","example":"2025-01-15"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Closed purchase orders with item details","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_processing","parameters":["data"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve purchase orders currently being processed (not yet closed).","request":{"params":{"data":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Query data"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Processing purchase orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_processing_with_item_id","parameters":["item_id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve processing purchase orders that contain a specific item.","request":{"params":{"item_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Item ID to filter by"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Processing POs containing the item","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_processing_with_items","parameters":[],"scopes":["platformGeneric"],"schema":{"description":"Retrieve processing purchase orders with their full item details included.","request":{"params":{}},"responses":{"200":{"description":"Processing purchase orders with item details","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_single","parameters":["id","fields","options"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single purchase order by its ID.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Purchase order ID"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"options":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Additional options"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Single purchase order","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SinglePurchaseOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/get_single_bulk","parameters":["id","fields","options"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve multiple purchase orders by their IDs in a single request.","request":{"params":{"id":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of purchase order IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}},"options":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Additional options"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Multiple purchase orders","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"PurchaseOrder"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/purchase_order/get_single_by_number","parameters":["number","fields"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single purchase order by its PO number.","request":{"params":{"number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"PO number"}}},"~standard":{"version":1,"vendor":"zod"}},"fields":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Projection fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Purchase order by number","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SinglePurchaseOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/new_create","parameters":["data"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Create a purchase order using the latest creation endpoint with enhanced validation.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Purchase order data object"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Purchase order created","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatePurchaseOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/purchase_order/remove_tag","parameters":["purchase_order_ids","tag_id"],"scopes":["platformGeneric"],"schema":{"description":"Remove a tag from one or more purchase orders.","request":{"params":{"purchase_order_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of purchase order IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag ID to remove"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed from purchase orders","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/purchase_order/set_tags","parameters":["id","tags"],"scopes":["platformGeneric"],"schema":{"description":"Replace all tags on one or more purchase orders with a new set of tags.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Purchase order ID"}}},"~standard":{"version":1,"vendor":"zod"}},"tags":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Array of tag IDs to set (ObjectId strings referencing the tag collection)","example":["507f1f77bcf86cd799439011","507f1f77bcf86cd799439012"]}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tags set on purchase order","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"run":[{"method":"POST","url":"https://api.skulabs.com/run/debug_request","parameters":["store_id","url","method","body"],"scopes":["skulabsSupport","platformUser","confirmBilling"]},{"method":"POST","url":"https://api.skulabs.com/run/shopify_returns_cleanup","parameters":["params"],"scopes":["skulabsSupport","platformUser","confirmBilling"]},{"method":"POST","url":"https://api.skulabs.com/run/shopify_returns_simulation","parameters":[],"scopes":["skulabsSupport","platformUser","confirmBilling"]},{"method":"POST","url":"https://api.skulabs.com/run/sync","parameters":["store_id","sync_type","metadata"],"scopes":["skulabsSupport","platformUser","confirmBilling"]},{"method":"POST","url":"https://api.skulabs.com/run/sync_single_order_returns","parameters":["store_id","order_id","cleanup_existing"],"scopes":["platformGeneric","confirmBilling"]}],"shipments":[{"method":"GET","url":"https://api.skulabs.com/shipments/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve shipments for a specific order.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of shipments matching the query (flattened from orders)","schema":{"_def":{"type":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Shipment"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/shipments/get_by_range","parameters":["start","end","page","simple"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve shipments within a date range with optional warehouse filtering.","request":{"params":{"start":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Start date for shipment range (ISO 8601)","example":"2025-01-01T00:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"End date for shipment range (ISO 8601)","example":"2025-01-31T23:59:59.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"page":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Page number for pagination","example":1}}},"~standard":{"version":1,"vendor":"zod"}},"simple":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Return simplified response with fewer fields"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Orders with shipments in the specified date range","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ShipmentsByRangeResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://app.skulabs.com/s/job/shipments/csv_export","parameters":["store_ids","start","end","warehouse_ids","options"],"scopes":["platformGeneric"],"schema":{"description":"Export shipments data as a CSV file within a specified date range.","request":{"params":{"store_ids":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Store IDs to export shipments from","example":["507f1f77bcf86cd799439011"]}}},"~standard":{"version":1,"vendor":"zod"}},"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date (ISO 8601)","example":"2025-01-01T00:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date (ISO 8601)","example":"2025-01-31T23:59:59.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"warehouse_ids":{"_def":{"innerType":{"_def":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Filter by warehouse IDs"}}},"~standard":{"version":1,"vendor":"zod"}},"options":{"_def":{"innerType":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"CSV export options"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Presigned S3 URLs for the generated CSV files","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ShipmentCsvExportResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"store":[{"method":"GET","url":"https://api.skulabs.com/store/get","parameters":[],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Retrieve all connected store integrations for the current account.","request":{"params":{}},"responses":{"200":{"description":"Array of stores with _id, name, and type","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Store"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"tag":[{"method":"POST","url":"https://api.skulabs.com/tag/add","parameters":["name","type","color"],"scopes":["platformGeneric","userManager","confirmBilling"],"swagger":{"description":"Creates a new tag","summary":"Add Tag","types":{"type":{"type":"string","enum":["orders","items","purchase_order"],"description":"The type of tag to create"}}},"schema":{"request":{"params":{"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Tag name","example":"Priority"}}},"~standard":{"version":1,"vendor":"zod"}},"type":{"_def":{"values":["orders","items","purchase_order","customers"],"typeName":"ZodEnum","openapi":{"metadata":{"description":"Tag type"}}},"~standard":{"version":1,"vendor":"zod"}},"color":{"_def":{"innerType":{"_def":{"values":["red","orange","yellow","green","blue","purple","indigo","gray","maroon","fuchsia","chartreuse","dodger","salmon","cornflower","khaki","steel","plum"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tag color"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag created or existing tag returned","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"TagAddResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/tag/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all tags with optional filtering by type.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of tags matching the query","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Tag"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://api.skulabs.com/tag/remove","parameters":["tag_id"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Permanently delete a tag.","request":{"params":{"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"ID of the tag to remove","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag removed successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"PUT","url":"https://api.skulabs.com/tag/update","parameters":["tag_id","name","color"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Update an existing tag's name or color.","request":{"params":{"tag_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"ID of the tag to update","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"name":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"New tag name"}}},"~standard":{"version":1,"vendor":"zod"}},"color":{"_def":{"innerType":{"_def":{"values":["red","orange","yellow","green","blue","purple","indigo","gray","maroon","fuchsia","chartreuse","dodger","salmon","cornflower","khaki","steel","plum"],"typeName":"ZodEnum"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"New tag color"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Tag updated successfully","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"transfer_order":[{"method":"POST","url":"https://api.skulabs.com/transfer_order/create","parameters":["number","items","source_warehouse_id","destination_warehouse_id","notes"],"scopes":["platformGeneric","confirmBilling"],"schema":{"description":"Create a new transfer order to move inventory between warehouses.","request":{"params":{"number":{"_def":{"innerType":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodNullable"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Transfer order number (auto-generated if null)"}}},"~standard":{"version":1,"vendor":"zod"}},"items":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray","openapi":{"metadata":{"description":"Items to include in the transfer order"}}},"~standard":{"version":1,"vendor":"zod"}},"source_warehouse_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Source warehouse ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"destination_warehouse_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Destination warehouse ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"notes":{"_def":{"innerType":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodNullable"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Transfer order notes"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Transfer order created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatedResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/transfer_order/get","parameters":["id"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve a single transfer order by ID.","request":{"params":{"id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Transfer order ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Single transfer order with items","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"TransferOrderResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/transfer_order/get_all","parameters":["start","end"],"scopes":["platformGeneric"],"schema":{"description":"Retrieve all transfer orders with optional filtering by status and warehouse.","request":{"params":{"start":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Start date/time filter for log entries","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}},"end":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"End date/time filter for log entries","example":"2025-01-15T12:00:00.000Z"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of transfer orders within the date range (items excluded)","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"TransferOrdersResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"warehouse":[{"method":"POST","url":"https://api.skulabs.com/warehouse/create","parameters":["name","type","address","store_id","states"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new warehouse with name and address details.","request":{"params":{"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Warehouse name","example":"Main Warehouse"}}},"~standard":{"version":1,"vendor":"zod"}},"type":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Warehouse type"}}},"~standard":{"version":1,"vendor":"zod"}},"address":{"_def":{"innerType":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Address"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"_internal":{"refId":"Address"},"metadata":{"description":"Warehouse address"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Warehouse created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatedResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/warehouse/create_v2","parameters":["data"],"scopes":["platformGeneric","userManager","confirmBilling"],"schema":{"description":"Create a new warehouse using the latest creation endpoint with enhanced options.","request":{"params":{"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Warehouse name","example":"Main Warehouse"}}},"~standard":{"version":1,"vendor":"zod"}},"type":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Warehouse type"}}},"~standard":{"version":1,"vendor":"zod"}},"address":{"_def":{"innerType":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Address"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"_internal":{"refId":"Address"},"metadata":{"description":"Warehouse address"}}},"~standard":{"version":1,"vendor":"zod"}},"is_default":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Set as default warehouse"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Warehouse created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"CreatedResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/warehouse/get","parameters":["selector","limit","skip","sort"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Retrieve all warehouses for the current account.","request":{"params":{"selector":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"metadata":{"description":"Query selector object for filtering results"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"limit":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Max results to return","example":50}}},"~standard":{"version":1,"vendor":"zod"}},"skip":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodNumber","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Number of results to skip","example":0}}},"~standard":{"version":1,"vendor":"zod"}},"sort":{"_def":{"innerType":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Sort fields object, e.g. { \"name\": 1 }"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of warehouses","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"Warehouse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/warehouse/stats","parameters":["warehouse_id","with_locations"],"scopes":["platformGeneric","userManager"],"schema":{"description":"Retrieve warehouse statistics including item counts and inventory totals.","request":{"params":{"warehouse_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Warehouse ID to filter stats for a single warehouse","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"with_locations":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Group stats by location instead of warehouse"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Array of warehouse (or location) statistics from aggregation","schema":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"GET","url":"https://api.skulabs.com/warehouse/summary","parameters":[],"scopes":["platformGeneric","userManager"]}],"webhook":[{"method":"POST","url":"https://api.skulabs.com/webhook/add_handler","parameters":["type","name","handler"],"scopes":["platformGeneric"],"swagger":{"description":"Creates a new webhook handler","summary":"Add Handler","types":{"type":{"type":"string","description":"The type of webhook to create"},"name":{"type":"string","description":"A user-friendly name for the webhook handler"},"handler":{"type":"object","properties":{"url":{"type":"string","description":"The URL the webhook should go to","format":"uri"},"method":{"type":"string","description":"The HTTP method to use for the webhook","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","description":"The headers to send with the webhook","properties":{"authorization":{"type":"string","description":"Authorization header value"}}}}}}},"notes":"\n    Type: String,\n    Handler: {\n      url: String,\n      method: String,\n      headers: {\n        [key: String]: String\n      },\n    }","schema":{"request":{"params":{"type":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Webhook event type. Common patterns: order.status.*, order.shipped, order.tracking, order.tags, item.inventory, item.updated, shipment.created, shipment.voided, purchase_order.*, transfer_order.*"}}},"~standard":{"version":1,"vendor":"zod"}},"name":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"User-friendly name for the webhook handler"}}},"~standard":{"version":1,"vendor":"zod"}},"handler":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"WebhookHandler"},"metadata":{"description":"Webhook handler configuration"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Webhook handler created","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://api.skulabs.com/webhook/remove_handler","parameters":["_id"],"scopes":["platformGeneric"],"swagger":{"description":"Removes a webhook handler","summary":"Remove Handler","required":["_id"],"types":{"_id":{"type":"string","description":"The ID of the webhook handler to remove"}}},"schema":{"request":{"params":{"_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Webhook handler ID to remove","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Webhook handler removed","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"SuccessResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"inventory_table":[{"method":"POST","url":"https://app.skulabs.com/s/inventory/inventory_table/build_po_rows","parameters":["data"],"scopes":["platformGeneric"],"schema":{"request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration for purchase order item selection view"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Inventory table rows for purchase order item selection","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/inventory/inventory_table/build_reconcile_rows","parameters":["data"],"scopes":["platformGeneric"],"schema":{"request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration for the inventory reconciliation view"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Inventory table rows for reconciliation","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/inventory/inventory_table/build_rows","parameters":["data"],"scopes":["platformGeneric"],"schema":{"request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration including columns, filters, sorting, and pagination"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Paginated inventory table rows with filtering and sorting applied","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/inventory/inventory_table/build_to_rows","parameters":["data"],"scopes":["platformGeneric"],"schema":{"request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration for transfer order item selection view"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Inventory table rows for transfer order item selection","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/inventory/inventory_table/build_velocity_rows","parameters":["data"],"scopes":["platformGeneric"],"schema":{"request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration for the velocity / sales insights view"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"Velocity table rows with sales metrics, stock projections, and mover classification","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/job/inventory_table/export_velocity","parameters":["data"],"scopes":["platformGeneric"],"schema":{"description":"Export inventory velocity data (sales speed analysis) as a downloadable report.","request":{"params":{"data":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"BuildRowsData"},"metadata":{"description":"Table configuration for the velocity export (same as build_rows with type=velocity)"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}},"responses":{"200":{"description":"S3 signed URL for the exported velocity CSV file","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ExportVelocityResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}],"shipping":[{"method":"POST","url":"https://app.skulabs.com/s/ship/shipping/restore_inventory","parameters":["store_id","order_number","shipment_id","tracking_number","no_refresh","carrier_shipment_id"],"scopes":["platformGeneric"],"schema":{"description":"Restore inventory that was previously deducted when a shipment was created.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"shipment_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"SKULabs shipment ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"tracking_number":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tracking number to identify the shipment"}}},"~standard":{"version":1,"vendor":"zod"}},"no_refresh":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache refresh after restoring"}}},"~standard":{"version":1,"vendor":"zod"}},"carrier_shipment_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Carrier-specific shipment ID"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Inventory restored and returns updated order shipments","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderShipments"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"POST","url":"https://app.skulabs.com/s/ship/shipping/set_manifested","parameters":["store_id","order_number","skulabs_shipment_id","flag"],"scopes":["platformGeneric"],"schema":{"description":"Mark shipments as manifested, indicating they have been handed off to the carrier.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"skulabs_shipment_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"SKULabs shipment ID to set manifested flag on","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"flag":{"_def":{"typeName":"ZodBoolean","coerce":false,"openapi":{"metadata":{"description":"Manifested flag value (true or false)"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Updated order shipments with manifested flag set","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderShipments"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}},{"method":"DELETE","url":"https://app.skulabs.com/s/ship/shipping/void","parameters":["store_id","order_number","shipment_id","tracking_number","no_refresh","carrier_shipment_id","force_void"],"scopes":["platformGeneric"],"schema":{"description":"Void a shipment, cancelling the shipping label and optionally restoring inventory.","request":{"params":{"store_id":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Store ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"order_number":{"_def":{"checks":[],"typeName":"ZodString","coerce":false,"openapi":{"metadata":{"description":"Order number"}}},"~standard":{"version":1,"vendor":"zod"}},"shipment_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"SKULabs shipment ID","example":"507f1f77bcf86cd799439011"}}},"~standard":{"version":1,"vendor":"zod"}},"tracking_number":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Tracking number to identify the shipment"}}},"~standard":{"version":1,"vendor":"zod"}},"no_refresh":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Skip cache refresh after voiding"}}},"~standard":{"version":1,"vendor":"zod"}},"carrier_shipment_id":{"_def":{"innerType":{"_def":{"checks":[],"typeName":"ZodString","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Carrier-specific shipment ID"}}},"~standard":{"version":1,"vendor":"zod"}},"force_void":{"_def":{"innerType":{"_def":{"typeName":"ZodBoolean","coerce":false},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodOptional","openapi":{"metadata":{"description":"Force void even if carrier void fails"}}},"~standard":{"version":1,"vendor":"zod"}}}},"responses":{"200":{"description":"Shipment voided and inventory restored (returns updated order shipments)","schema":{"_def":{"unknownKeys":"passthrough","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"OrderShipments"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"400":{"description":"Bad request","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}},"401":{"description":"Unauthorized","schema":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject","openapi":{"_internal":{"refId":"ErrorResponse"}}},"~standard":{"version":1,"vendor":"zod"},"_cached":null}}}}}]}}