# Create Attributes Source: https://docs.wizcommerce.com/api-reference/2026-09-11/attributes/create-attributes post /v2/attributes Create Attributes # Delete Attribute Source: https://docs.wizcommerce.com/api-reference/2026-09-11/attributes/delete-attributes delete /v2/attributes/{attribute_id} Delete Attribute # List Attributes Source: https://docs.wizcommerce.com/api-reference/2026-09-11/attributes/get-attributes get /v2/attributes List Attributes # Update Attribute Source: https://docs.wizcommerce.com/api-reference/2026-09-11/attributes/update-attributes patch /v2/attributes/{attribute_id} Update Attribute # Create API Token Source: https://docs.wizcommerce.com/api-reference/2026-09-11/auth/create-token post /auth/token Create a new API token for the authenticated user > [!NOTE] > > Please note that generated tokens will be expired after 1 year automatically. Once it is expired, please generate new token. ## ๐Ÿ” Security Notice **Important:** Keep your API token secure and never share it publicly. * โœ… **Store securely**: Save the `access_token` in a secure location * โœ… **Use in headers**: Include as `X-API-Key` header in all API requests * โœ… **Don't commit**: Never commit tokens to version control * โœ… **Rotate regularly**: Generate new tokens periodically for security ## ๐Ÿ“‹ Example Usage ```bash theme={null} curl -X GET https://api.wizcommerce.com/v1/products \ -H "X-API-Key: " ``` ## โš ๏ธ Token Security * **Never expose** your token in client-side code * **Use environment variables** to store tokens * **Regenerate** if you suspect it's been compromised # Revoke API Token Source: https://docs.wizcommerce.com/api-reference/2026-09-11/auth/revoke-token delete /auth/token Revoke the API token currently being used for authentication ## Overview Revoke the API token currently being used for authentication. The token is identified by the `X-API-Key` header you send with the request. Once revoked, the token can no longer be used for authentication. This is useful for: * Rotating tokens for security * Removing compromised tokens * Cleaning up unused tokens ## Important Notes โš ๏ธ **Warning**: Once a token is revoked, it cannot be restored. You'll need to create a new token if needed. โœ… **Best Practice**: Before revoking a token, ensure no active integrations are using it, or create a replacement token first. โš ๏ธ **Important**: This endpoint revokes the token you're currently using (the one in the `X-API-Key` header). You cannot revoke other tokens using this endpoint. ## Token Rotation Flow 1. Generate a new token via `POST /auth/token` 2. Update your application with the new token 3. Test the new token works 4. Revoke the old token via this endpoint using the old token's `X-API-Key` header # Create Contract Pricing Source: https://docs.wizcommerce.com/api-reference/2026-09-11/contract-pricing/create-contract-pricing post /v1/contract-pricing Create a new contract pricing # Delete Contract Pricing Source: https://docs.wizcommerce.com/api-reference/2026-09-11/contract-pricing/delete-contract-pricing delete /v1/contract-pricing/{id} Delete contract pricing by id # Get Contract Pricing Source: https://docs.wizcommerce.com/api-reference/2026-09-11/contract-pricing/get-contract-pricing-by-id get /v1/contract-pricing/{id} Get contract pricing by id # List Contract Pricing Source: https://docs.wizcommerce.com/api-reference/2026-09-11/contract-pricing/list-contract-pricing get /v1/contract-pricing List all contract pricing for the tenant # Update Contract Pricing Source: https://docs.wizcommerce.com/api-reference/2026-09-11/contract-pricing/update-contract-pricing patch /v1/contract-pricing/{id} Update contract pricing by id # Bulk Upsert Customers Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/bulk-upsert-customers post /v1/customers/bulk Creates or updates up to 100 customers in one call and waits for the write to finish. A customer is matched by id or reference_id; no match creates a new customer. A present contacts or addresses list is the full published set ([] archives all); omit the key to leave stored rows unchanged. # Create Address Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/create-address post /v2/customers/{customer_id}/addresses Create Address # Create Contact Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/create-contact post /v2/customers/{customer_id}/contacts Create Contact # Create Customer Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/create-customer post /v2/customers Create Customer # Delete Address Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/delete-address delete /v2/customers/{customer_id}/addresses/{address_id} Delete Address # Delete Contact Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/delete-contact delete /v2/customers/{customer_id}/contacts/{contact_id} Delete Contact # Delete Customer Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/delete-customer delete /v2/customers/{id} Delete Customer # List Addresses Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-addresses get /v2/customers/addresses List Addresses # List Contacts Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-contacts get /v2/customers/contacts List Contacts # Get Customer By ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-customer get /v2/customers/{id} Get Customer # Get Address By ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-customer-address-by-id get /v2/customers/addresses/{address_id} Get Address By ID # Get Contact By ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-customer-contact-by-id get /v2/customers/contacts/{contact_id} Get Contact By ID # List Customers Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/get-customers get /v2/customers List Customers with pagination # Update Address Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/update-address patch /v2/customers/{customer_id}/addresses/{address_id} Update Address > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Update Contact Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/update-contact patch /v2/customers/{customer_id}/contacts/{contact_id} Update Contact > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Update Customer Source: https://docs.wizcommerce.com/api-reference/2026-09-11/customer/update-customer patch /v2/customers/{id} Update Customer # Bulk Upsert Inventories Source: https://docs.wizcommerce.com/api-reference/2026-09-11/inventory/bulk-upsert-inventories post /v1/inventories/bulk Updates inventory for up to 100 products in one call. Each item identifies the product by product_id or product_reference_id and must include inventory_status (IN_STOCK, OUT_OF_STOCK, BACK_ORDER). # List Inventories Source: https://docs.wizcommerce.com/api-reference/2026-09-11/inventory/get-inventories get /v1/inventories List Inventories # Save Inventory Source: https://docs.wizcommerce.com/api-reference/2026-09-11/inventory/update-inventory post /v1/inventories Using this API we can save the inventory details. If the inventory details are not present, it will be created. If the inventory details are present, it will be updated. # Create Invoice Source: https://docs.wizcommerce.com/api-reference/2026-09-11/invoice/create-invoice post /v2/invoices Create an invoice linked to one or more orders # Delete Invoice Source: https://docs.wizcommerce.com/api-reference/2026-09-11/invoice/delete-invoice delete /v2/invoices/{id} Delete Invoice # Get Invoice Source: https://docs.wizcommerce.com/api-reference/2026-09-11/invoice/get-invoice get /v2/invoices/{id} Get Invoice # List Invoices Source: https://docs.wizcommerce.com/api-reference/2026-09-11/invoice/get-invoices get /v2/invoices List Invoices # Update Invoice Source: https://docs.wizcommerce.com/api-reference/2026-09-11/invoice/update-invoice put /v2/invoices/{id} Update an invoice; order_ids is the full desired set of linked orders # Upload Image Source: https://docs.wizcommerce.com/api-reference/2026-09-11/media/upload-image post /v1/media/upload Upload an image file to the CDN and receive the media file id, fileserver URL, and CDN URL in the response. ## Supported formats jpeg, png, gif, webp, svg, bmp, tiff, and ico. Maximum file size is 50 MB. ## Example usage ```bash theme={null} curl -X POST https://api.wizcommerce.com/v1/media/upload \ -H "X-API-Key: " \ -F "file=@/path/to/image.jpg" \ -F "entity_type=misc" ``` The optional `entity_type` field defaults to `misc` when omitted. # Create order Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/create-order post /v2/orders Create order # Get order Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/get-order get /v2/orders/{id} Get order # List orders Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/get-orders get /v2/orders List orders # Patch order Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/patch-order patch /v2/orders/{id} Partially update an order. Same fields as PUT, plus status. Omit a field to keep it. - A field you send replaces its stored value whole, including objects and lists. "" clears it. - line_items cannot be empty. > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. **Order PATCH** * Same fields as `PUT /v2/orders/{id}`, plus `status`. Omit a field to keep it. * A field you send replaces its stored value whole, including objects and lists. `""` clears it. * `line_items` cannot be `[]`. # Update order Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/update-order put /v2/orders/{id} Update order > [!NOTE] > > The `PUT` request is used to fully replace an existing entity with a new one based on the provided ID. This means: > > * All fields in the request body will overwrite the existing entity. > * Any missing fields will be removed from the entity. > * The request is idempotent, meaning multiple identical PUT requests will always result in the same final state. # Update order status Source: https://docs.wizcommerce.com/api-reference/2026-09-11/orders/update-order-status patch /v2/orders/{id}/status Update order status. Status is passed in the request body. > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Delete payment method Source: https://docs.wizcommerce.com/api-reference/2026-09-11/payment-method/delete-payment-method delete /v1/payment-methods/{id} Delete payment method # Get payment method by ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/payment-method/get-payment-method-by-id get /v1/payment-methods/{id} Get payment method by ID # List payment methods Source: https://docs.wizcommerce.com/api-reference/2026-09-11/payment-method/get-payment-methods get /v1/payment-methods List payment methods # Create payment method Source: https://docs.wizcommerce.com/api-reference/2026-09-11/payment-method/save-payment-method post /v1/payment-methods Create payment method # Create Price List Source: https://docs.wizcommerce.com/api-reference/2026-09-11/price-list/create-price-list post /v1/price-lists Create Price List # Delete Price List Source: https://docs.wizcommerce.com/api-reference/2026-09-11/price-list/delete-price-list delete /v1/price-lists/{id} Delete Price List # Get Price List By ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/price-list/get-price-list-by-id get /v1/price-lists/{id} Get Price List By ID # List Price Lists Source: https://docs.wizcommerce.com/api-reference/2026-09-11/price-list/list-price-lists get /v1/price-lists List Price Lists # Update Price List Source: https://docs.wizcommerce.com/api-reference/2026-09-11/price-list/update-price-list patch /v1/price-lists/{id} Update Price List > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Bulk Upsert Products Source: https://docs.wizcommerce.com/api-reference/2026-09-11/product/bulk-upsert-products post /v1/products/bulk Creates or updates up to 100 flat product variants in one call. A variant is matched by id or reference_id (reference_id defaults to sku_id). Variants sharing a group_code form one product family. Returns 200 with one result per item (status success/error) and meta totals; check each item's status. # Create Product Source: https://docs.wizcommerce.com/api-reference/2026-09-11/product/create-product post /v2/products Create Product # Get Product By ID Source: https://docs.wizcommerce.com/api-reference/2026-09-11/product/get-product-by-id get /v2/products/{id} Get Product By ID # List Products Source: https://docs.wizcommerce.com/api-reference/2026-09-11/product/list-products get /v2/products List Products # Update Product Source: https://docs.wizcommerce.com/api-reference/2026-09-11/product/update-product patch /v2/products/{id} Update Product > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Get Sales Rep List Source: https://docs.wizcommerce.com/api-reference/2026-09-11/sales-reps/list-sales-reps get /v1/sales-reps Get Sales Rep List # List Segments Source: https://docs.wizcommerce.com/api-reference/2026-09-11/segments/list-segments get /v1/segments List segments for the tenant, one page at a time. Use the `type` query parameter to choose between customer and product segments. # Create Shipment Source: https://docs.wizcommerce.com/api-reference/2026-09-11/shipment/create-shipment post /v1/shipments Create Shipment # Delete Shipment Source: https://docs.wizcommerce.com/api-reference/2026-09-11/shipment/delete-shipment delete /v1/shipments/{id} Delete Shipment # Get Shipment Source: https://docs.wizcommerce.com/api-reference/2026-09-11/shipment/get-shipment get /v1/shipments/{id} Get Shipment # List Shipments Source: https://docs.wizcommerce.com/api-reference/2026-09-11/shipment/get-shipments get /v1/shipments List Shipments # Update Shipment Source: https://docs.wizcommerce.com/api-reference/2026-09-11/shipment/update-shipment patch /v1/shipments/{id} Update Shipment > [!NOTE] > > The `PATCH` request is used to partially update an existing entity by the > given id. This means: > > * Only the fields provided in the request body will be updated. > * Fields not provided in the request body will remain unchanged. > * The request is idempotent, meaning multiple identical PATCH requests will > always result in the same final state. # Introduction Source: https://docs.wizcommerce.com/introduction Welcome to Wizcommerce API documentation! Here you can find all the information you need to know about our API. This documentation covers the API key, API environments, API rate limits, API references, error codes, and webhooks. ## Setting up > [card] [Authentication](/knowledge/api-key) > > Guide on how to generate and use API key > [card] [OpenAPI Spec](/knowledge/openapi-spec) > > Download OpenAPI spec for Postman and other tools > [card] [API environments](/knowledge/environments) > > Learn about how we manage API environments > [card] [API Debugging](/knowledge/api-debugging) > > Tips and tools for debugging API requests ## API guidelines > [card] [API Rate Limits](/knowledge/api-rate-limits) > > API Rate Limits > [card] [Reference APIs](/api-reference/2026-09-11/customer/get-customers) > > API References > [card] [Error Codes](/knowledge/error-code) > > Error Codes > [card] [Webhooks](/webhook/introduction) > > Webhooks # API debugging Source: https://docs.wizcommerce.com/knowledge/api-debugging Use the X-Request-ID response header when contacting support Every API response includes an `X-Request-ID` header. Share that value with support when you need help investigating a request. ## How it works * Each request is assigned a unique id. * The id is returned in the **response** header `X-Request-ID`. * You may optionally send your own `X-Request-ID` on the request; if present, it is echoed back. Otherwise the API generates one. * Include the id from the response when you contact support. ## Example ```bash theme={null} curl -i -X GET "https://api.wizcommerce.com/v2/customers" \ -H "X-API-Key: " ``` ```http theme={null} HTTP/1.1 200 OK X-Request-ID: 550e8400-e29b-41d4-a716-446655440000 Content-Type: application/json ``` Use `550e8400-e29b-41d4-a716-446655440000` when reporting the issue. # Authentication Source: https://docs.wizcommerce.com/knowledge/api-key How to authenticate and manage API keys to access the API To authenticate and access the API, you need to pass your **API Key** in the `X-API-Key` header with each request. ## Overview API authentication is token-based. You generate an API token using your email and password, then include that token in the `X-API-Key` header for all authenticated requests. ## API Reference For detailed information about authentication endpoints: * [Generate Token](/api-reference/2026-09-11/auth/create-token) * [Revoke Token](/api-reference/2026-09-11/auth/revoke-token) > [!NOTE] > > Please note that generated tokens will be expired after 1 year automatically. Once it is expired, please generate new token. ## Token Security โš ๏ธ **Best Practices:** * โœ… **Keep tokens secure** - Never commit them to version control * โœ… **Use environment variables** - Store tokens in `.env` files * โœ… **Rotate regularly** - Generate new tokens periodically * โœ… **Revoke compromised tokens** - Delete immediately if exposed * โœ… **Use different tokens** - Separate tokens for different applications ## Error Responses ### Invalid or Missing API Key ```json theme={null} { "code": "INVALID_API_KEY", "message": "Invalid API key" } ``` **HTTP Status:** `401 Unauthorized` ### Expired Token ```json theme={null} { "code": "TOKEN_EXPIRED", "message": "API token has expired. Please create a new token." } ``` **HTTP Status:** `401 Unauthorized` # API Rate limits Source: https://docs.wizcommerce.com/knowledge/api-rate-limits This API uses a rate-limiting mechanism based on a **sliding window** strategy. Each API key is allowed up to **500 requests per minute**. When an API key exceeds this limit, further requests will be denied until the rate limit resets. ## Rate Limiting Headers In every API response, the following rate-limiting headers will be included to inform you of your current usage: | **Header** | **Description** | | - | - | | `X-Ratelimit-Limit` | The maximum number of requests allowed in a given time window (120 requests). | | `X-Ratelimit-Remaining` | The number of requests remaining in the current time window. | | `X-Ratelimit-Reset` | The time (in seconds) until the rate limit resets, indicating when the counter will be reset. | ### Example Response Headers: For example, after making 50 requests in the current time window, the headers would look like this: ```http theme={null} X-Ratelimit-Limit: 120 X-Ratelimit-Remaining: 70 X-Ratelimit-Reset: 45 ``` * **X-Ratelimit-Limit:** 120 โ€” You can make up to 120 requests per minute. * **X-Ratelimit-Remaining:** 70 โ€” You have 70 requests left in the current minute. * **X-Ratelimit-Reset:** 45 โ€” The rate limit will reset in 45 seconds. ## Rate Limiting - What You Receive When Hitting the Limit When you exceed the allowed rate limit for your API key (120 requests per minute), the API will respond with a **429 Too Many Requests** HTTP status code. In addition to the status code, the response will contain the following information: ## HTTP Response ```http theme={null} HTTP/1.1 429 Too Many Requests Content-Type: application/json ``` ## Best practices ### Handling Rate Limiting To handle rate limiting gracefully: * Always check the X-Ratelimit-Remaining header to determine how many requests are left before you hit the limit. * Use the X-Ratelimit-Reset header to determine when your limit will reset and plan accordingly. * Implement retries with backoff strategies if you hit the rate limit. For example, retry after the reset time specified in X-Ratelimit-Reset. # Error codes Source: https://docs.wizcommerce.com/knowledge/error-code This section outlines the error response format used in our API. When an error occurs, the API will return a structured JSON response to provide detailed information about the problem. ## ErrorResponse Structure The `ErrorResponse` is a JSON object that contains the following fields: * **`code`**: A string representing the error code. This field helps to identify the type of error. * **`message`**: A string that provides a human-readable description of the error. * **`details`** *(optional)*: An optional array that provides additional context or information about the error, often with specific details related to the failed request. ## Error Response ### Invalid Request (400) A request is invalid, often due to missing or incorrect parameters. ```json theme={null} { "code": "INVALID_REQUEST", "message": "The request data is invalid.", "details": [ { "field": "email", "error": "Invalid email format" } ] } ``` ### Not Found (404) The requested resource could not be found. ```json theme={null} { "code": "NOT_FOUND", "message": "The requested user was not found.", "details": null } ``` ### Conflict (409) There was a conflict when attempting to create or update a resource. ```json theme={null} { "code": "CONFLICT", "message": "Email address already in use.", "details": [ { "field": "email", "error": "This email address is already associated with an existing user." } ] } ``` ### Internal Server Error (500) An unexpected error occurred on the server while processing the request. ```json theme={null} { "code": "INTERNAL_ERROR", "message": "An internal server error occurred.", "details": null } ``` ## Common Error Codes Below is a list of common error codes you may encounter in the API responses: | **Code** | **Message** | **Description** | | - | - | - | | `INVALID_REQUEST` | The request data is invalid. | The request was malformed or had invalid parameters. | | `NOT_FOUND` | The resource was not found. | The requested resource could not be found. | | `CONFLICT` | Conflict with existing data. | A conflict occurred with existing data (e.g., duplicate resource). | | `UNAUTHORIZED` | You are not authorized to access this resource. | The client lacks proper authentication. | | `FORBIDDEN` | You do not have permission. | The client does not have permission to perform the operation. | | `INTERNAL_ERROR` | An internal error occurred. | A server-side error occurred during request processing. | | `BAD_GATEWAY` | The server is acting as a gateway or proxy and received an invalid response from the upstream server. | The server could not communicate with upstream services. | | `GATEWAY_TIMEOUT` | The server did not receive a timely response from the upstream server. | A timeout occurred when contacting upstream services. | | `SERVICE_UNAVAILABLE` | The service is temporarily unavailable. | The service is currently unavailable, possibly due to maintenance. | # OpenAPI Specification Source: https://docs.wizcommerce.com/knowledge/openapi-spec Download the OpenAPI specification file to import into Postman, Insomnia, or other API clients ## Download OpenAPI Specification You can download our OpenAPI specification file to import it into your favorite API client like Postman, Insomnia, or any other tool that supports OpenAPI 3.0. > [card] [Download OpenAPI JSON](https://api.wizcommerce.com/openapi.json) > > Click here to download the OpenAPI specification file ## How to Import into Postman 1. **Open Postman**: Launch the Postman application 2. **Import**: Click on the "Import" button in the top left corner 3. **Choose your method**: * **From URL**: Select "Link" tab and paste: `https://api.wizcommerce.com/openapi.json` * **From File**: Click "Upload Files" and select the downloaded `openapi.json` file 4. **Import**: Click "Continue" and then "Import" After importing, you'll have a complete collection of the **public** WizCommerce API endpoints ready to test. ## How to Import into Other Tools ### Insomnia 1. In Insomnia, click on "Create" โ†’ "Import From" 2. **Choose your method**: * **From URL**: Select "URL" and paste: `https://api.wizcommerce.com/openapi.json` * **From File**: Select "File" and choose the downloaded `openapi.json` file 3. Click "Fetch and Import" (URL) or "Scan" then "Import" (File) ### Swagger UI 1. Go to [Swagger Editor](https://editor.swagger.io/) 2. Click "File" โ†’ "Import" 3. **Choose your method**: * **From URL**: Select "Import URL" and enter: `https://api.wizcommerce.com/openapi.json` * **From File**: Select "Import file" and choose the downloaded `openapi.json` file 4. The API documentation will load with an interactive interface ## What's Included The OpenAPI specification includes: * Public (client-facing) API endpoints with their request/response schemas * Authentication requirements * Parameter descriptions * Response status codes and error messages * Data models and schemas ## API Base URL When testing with the OpenAPI file, make sure to configure the correct base URL: * **Base URL**: `https://api.wizcommerce.com` > [!NOTE] > > Don't forget to add your API key in the authentication headers! See the [Authentication guide](/knowledge/api-key) for details. ## Quick Start with Postman For the fastest setup: 1. Open Postman 2. Click "Import" โ†’ "Link" 3. Paste: `https://api.wizcommerce.com/openapi.json` 4. Click "Import" 5. Set your API key in the collection's Authorization tab 6. Start making requests! *** Need help? Contact our [support team](mailto:help@wizcommerce.com). # Event payload Source: https://docs.wizcommerce.com/webhook/event-schema Shape of every outbound webhook request body Every webhook is a `POST` with this JSON body: ```json theme={null} { "id": "evt_2f8a1c9b0d4e", "event": "customer.updated", "timestamp": "2026-09-08T12:34:56Z", "data": { "id": "" } } ``` | Field | Description | | - | - | | `id` | Unique event id โ€” use for [idempotency](/webhook/introduction#idempotency) | | `event` | Event type string (see [Events](/webhook/events)) | | `timestamp` | When the event was produced (ISO 8601) | | `data.id` | WizCommerce id of the affected resource | ## What is not in the payload The body includes only the event metadata and `data.id` โ€” not the full resource. Call the corresponding **GET** API with `data.id` for current state. | `event` prefix | Typical follow-up | | - | - | | `customer.*` | [Get Customer](/api-reference/2026-09-11/customer/get-customer) | | `customer.payment_method.*` | [Get Payment Method](/api-reference/2026-09-11/payment-method/get-payment-method-by-id) | | `order.*` | [Get Order](/api-reference/2026-09-11/orders/get-order) | # Events Source: https://docs.wizcommerce.com/webhook/events Subscribable webhook event types and sample payloads All events share the same [payload shape](/webhook/event-schema). Only `event` and `data.id` change. ## Customer | Event | When | | - | - | | `customer.created` | Customer is created | | `customer.updated` | Customer is updated, **or** a contact person / address is added, edited, or removed (no separate contact/address events) | | `customer.deleted` | Customer is deleted | ```json theme={null} { "id": "evt_2f8a1c9b0d4e", "event": "customer.updated", "timestamp": "2026-09-08T12:34:56Z", "data": { "id": "" } } ``` ## Customer payment method | Event | When | | - | - | | `customer.payment_method.created` | Payment method (card token) is created | | `customer.payment_method.updated` | Payment method is updated | | `customer.payment_method.deleted` | Payment method is deleted | `data.id` is the **payment method** id, not the customer id. ```json theme={null} { "id": "evt_2f8a1c9b0d4e", "event": "customer.payment_method.created", "timestamp": "2026-09-08T12:34:56Z", "data": { "id": "" } } ``` ## Order | Event | When | | - | - | | `order.created` | Order is created | | `order.updated` | Order is updated, including status changes such as **cancelled** | There is **no** separate `order.cancelled` / voided event. Detect cancellation by calling GET order and reading status (`cancelled` is the terminal status). Payment **transactions** do not emit their own events. They only appear indirectly if a transaction changes the order and an `order.updated` is sent. ```json theme={null} { "id": "evt_2f8a1c9b0d4e", "event": "order.updated", "timestamp": "2026-09-08T12:34:56Z", "data": { "id": "" } } ``` # Webhooks Source: https://docs.wizcommerce.com/webhook/introduction Outbound event notifications to your HTTPS endpoint WizCommerce sends a `POST` request to your configured HTTPS URL when selected resources change. Use webhooks to sync downstream systems; fetch full records with the [REST API](/api-reference). ## Delivery model * You can configure **one or more** HTTPS endpoints per environment. Each endpoint receives the event types subscribed for that destination. * Route on the payload field `event` (for example `"customer.created"`). We do **not** send a separate event-type header. * Configure **sandbox** and **production** separately. Prefer distinct URLs across environments. If sandbox and production must share one URL, ask your WizCommerce contact how environment is identified for your account. * `Content-Type: application/json` * HTTPS with a valid TLS certificate is required. ## Security A custom header can be configured on webhook requests (for example Bearer token, API key, or shared secret in a header such as `webhook-secret` or `X-Webhook-Key`). HMAC-SHA256 signing of the raw request body is also supported. Header name (for example `X-WC-Signature`), encoding, and shared secret are agreed when the endpoint is configured. Verify every request. Do not expose credentials publicly. ## Your response | Expectation | Detail | | - | - | | Success | Any **2xx** (`200`, `201`, `202`, `204`) | | Timeout | **60 seconds** โ€” no 2xx within that window counts as failure | | Failure | Non-2xx or timeout โ†’ retry | Return 2xx as soon as you have accepted the event for processing. Do heavy work asynchronously if needed. ## Retries Delivery is **at-least-once**. Failed deliveries retry with exponential backoff, **up to 5 times** (\~15 minutes total): | Attempt | Delay after previous failure | | - | - | | 1st retry | 30 seconds | | 2nd | 1 minute | | 3rd | 2 minutes | | 4th | 4 minutes | | 5th | 8 minutes | ## Idempotency The same `id` may be delivered more than once. Deduplicate on payload `id` before applying side effects. ## Latency Most events arrive within seconds, but delays of a few minutes can occur. Do not use webhooks as a synchronous substitute for the API. # Changelog ยท 2025-05-05 (Initial) Source: https://docs.wizcommerce.com/changelog/2025-05-05 First public release of the API. First public release of the API, served under the `/v1` prefix โ€” for example `https://api.wizcommerce.com/v1/customers`. **2025-05-05 (Initial)** First public release Core endpoints are available for: * Authentication * Sales Representatives * Attributes * Customers, including addresses and contacts * Payment Methods * Price Lists * Products and Product Pricing * Inventory * Orders * Invoices * Shipments # Changelog ยท 2026-09-11 Source: https://docs.wizcommerce.com/changelog/2026-09-11 New v2 endpoints, added fields, and breaking changes. **Added v2 endpoints** for Attributes, Customers (including addresses and contacts), Orders, Products, and Invoices. ## What changed per resource **Attributes V2** Route: /v2/attributes **New `data_type` values** for product-scoped attributes * `single_select_swatch` โ€” single-select, shown as image swatches on the storefront. * `multi_select_swatch` โ€” multi-select, shown as image swatches. * `color` โ€” single-select backed by a hex colour code, shown as a colour swatch. **New request fields โ€” `configuration.options[]`** * **`image_url`** โ€” image for this option, used by the swatch data types. * **`color_code`** โ€” hex colour such as `#FF5733`, used by the `color` data type. **Changed response โ€” `options[]`** Each option is now an object with `label`, `value`, `image_url`, and `color_code` instead of a plain string, on list, create, and update. **Customers V2** Route: /v2/customers **New query parameters โ€” list** * **`ids`** โ€” filter by customer UUID. Repeatable: `?ids=&ids=`. * **`source`** โ€” return only customers from these sources, such as `openapi` or `sales_rep`. Repeatable. * **`exclude_source`** โ€” the inverse. Repeatable. **New request fields โ€” create & update** * **`tax_rate`** โ€” customer-level tax rate applied at order time. Send `0` to clear it. * **`sale_price_adjustment_percentage`** โ€” optional percent markup on sale price. Must be greater than `0` and less than `100`, with at most 4 decimal places. On update, omit to keep the current value. Send `0` to remove. v1 does not accept or return this field. * **`customer_type`** โ€” free-text classification such as `retail` or `wholesale`. **New on update only** * **`status`** โ€” `active` or `inactive`. v1 could not change status through `PATCH`. **Changed request behaviour โ€” update** * **`primary_contact_id`, `default_shipping_address_id`, `default_billing_address_id`** โ€” removed. Use the nested `addresses` and `contacts` objects instead. * **Nested `addresses[].id` and `contacts[].id` are now optional.** Omit `id` to create inline, include it to update. v1 required `id`, so creating meant a second call. **New response fields** * **`tax_rate`**, **`sale_price_adjustment_percentage`**, **`customer_type`**, and **`source`** on list, create, detail, and update. **Changed response โ€” nested addresses and contacts** * Addresses gain **`state_info`** and **`country_info`** (each with `code`, `short_code`, `name`). * Addresses no longer return `customer_id` or `status`; contacts no longer return `status`. **Customer Addresses & Contacts V2** Routes: /v2/customers/addresses, /v2/customers/contacts **Route mapping** | Operation | v1 | v2 | | - | - | - | | List | `GET /v1/customers/{customer_id}/addresses` | `GET /v2/customers/addresses` | | Get by ID | `GET /v1/customers/{customer_id}/addresses/{address_id}` | `GET /v2/customers/addresses/{address_id}` | | Create | `POST /v1/customers/{customer_id}/addresses` | `POST /v2/customers/{customer_id}/addresses` | | Update | `PUT /v1/customers/{customer_id}/addresses/{address_id}` | `PATCH /v2/customers/{customer_id}/addresses/{address_id}` | | Delete | `DELETE /v1/customers/{customer_id}/addresses/{address_id}` | `DELETE /v2/customers/{customer_id}/addresses/{address_id}` | Contacts follow the same pattern under `/v2/customers/contacts` and `/v2/customers/{customer_id}/contacts`. **What changed** * **List is no longer scoped to one customer.** `customer_id` moves from the path to an optional query parameter, so you can page through every address or contact in the account, or filter with `?customer_id=`. * **Get by ID no longer needs `customer_id`** in the path. * **Update is `PATCH`.** Same body as v1, but send only the fields you are changing. * **Create and delete keep the nested route.** **New query parameters โ€” list** * **`customer_id`** โ€” optional filter that replaces the old path segment. * **`reference_ids`** โ€” filter by your own external IDs. Repeatable. **New response fields** * **`state_info`** and **`country_info`** (`code`, `short_code`, `name`) on addresses. * **`customer_id`**, since the route no longer carries it. **Removed response fields** * **`status`** on both addresses and contacts. **Orders V2** Route: /v2/orders **New and changed query parameters โ€” list** * **`ids`**, **`customer_ids`**, **`customer_reference_ids`** โ€” filter by order UUID, customer UUID, or your own customer IDs. All repeatable. * **`type`** โ€” return only `order` or only `quote` records. * **`exclude_source`** โ€” omit orders from these sources. Repeatable. * **`order_status`** โ€” now also accepts `submitted`, alongside `draft`, `confirmed`, and `cancelled`. Still defaults to `confirmed`. * **`source`** โ€” now repeatable; v1 took a single value. **New request fields โ€” create & update** * **`payment_method`** โ€” set the payment method on the order. * **`reference_id`** on `billing_address`, `shipping_address`, and `primary_contact` โ€” link inline records to your own system. * **`attributes`** on the same three objects โ€” custom `name`/`value` pairs, both required on each entry. **New request fields โ€” create** * **`type`** โ€” `order` or `quote`. Omit to store `order`. **Changed request validation โ€” create** * **`status`** on orders is unchanged: `draft` or `confirmed` (default `confirmed`). Quotes: `draft` or `submitted` (default `submitted`). Cancelled is PATCH only. **Changed request validation โ€” update** * **`reference_id`** is no longer required on `PUT /v2/orders/{id}`. **New endpoint โ€” partial update** * **`PATCH /v2/orders/{id}`** โ€” same fields as `PUT /v2/orders/{id}`, plus `status`. Omit a field to keep it; a field you send replaces its stored value whole, including objects and lists. `line_items` cannot be `[]`. **New response fields โ€” list, create & update** * **`type`** โ€” `order` or `quote`. * **`entity_source`** โ€” where the order originated. * **`reference_id`**, **`state_info`**, and **`country_info`** on the addresses and primary contact. **New response fields โ€” detail only** * **`customer_reference_id`** and **`customer_name`** โ€” resolved inline, so no second customer call. * **`price_list`** โ€” the full object (`id`, `name`, `reference_id`) alongside the existing `price_list_id`. * **`cart_total`**. * **`created_by`** and **`updated_by`** โ€” user objects with `id` and `email`. v1 did not return these. * **Line items** gain **`id`**, **`reference_id`**, **`parent_sku_id`**, **`final_unit_price`**, **`applied_promotion`** (`id`, `name`, `reference_id`, `promo_code`), and **`applied_modifiers`** (`id`, `name`, `unique_id`, plus a `values` array of `id`, `value`, `price`, `quantity`, `suffix`). * **Addresses and the primary contact** gain an **`attributes`** array (`id`, `name`, `value`, `created_at`, `updated_at`). * **Charges** gain **`applied_promotion`**. **Products V2** Route: /v2/products **New query parameters โ€” list** * **`ids`** and **`reference_ids`** โ€” filter by product UUID or your own product IDs. Both repeatable. **New request fields โ€” create & update** * **`brand`** โ€” associate the product with a brand for filtering and storefront display. Product-level on create; the fields below are per variant. * **`tags`** โ€” free-form string tags for search and categorisation. * **`seo_info`** โ€” `primary_title`, `title`, `description`, `keywords`. * **`url_slug`** โ€” readable URL path, for example `red-wool-rug-5x8`. * **`channel_visibility.website`** โ€” `DontShow`, `ShowForLoggedInUsersOnly`, or `ShowForLoggedInAndNonLoggedInUsers`. * **`volume`** โ€” physical volume per variant as `cft` or `cbm`. If both are sent, `cft` wins. **New request field โ€” update only** * **`grouping_attributes`** โ€” attributes such as colour or size that group variants under one listing. v1 accepted this on create only. **New request fields โ€” `product_prices[]`** * **`sale_price`** โ€” promotional price alongside the regular price. * **`default_order_quantity`** โ€” quantity pre-filled when a buyer adds the product to an order. * **`volume_tiers`** โ€” tiered pricing by quantity. Each tier takes `start_quantity` and `price` (both required) and an optional `step_increment`, the multiple that ordered quantities must follow within the tier. **New response fields โ€” list** * **`priority`** โ€” display order in a listing; lower values surface first. * **`channel_visibility`**, **`volume`** (`cft`/`cbm`), and **`medias[].order`**. **New response fields โ€” detail & update** Everything from the list response, plus **`categories`**, **`tags`**, **`brand`**, **`url_slug`**, and **`seo_info`**. Each **`price_lists`** entry also returns **`sale_price`**, **`default_order_quantity`**, and **`volume_tiers`**, where `price` is the base amount and `sale_price` the promotional one. **Invoices V2** Route: /v2/invoices **Multiple orders per invoice** * **`order_ids`** (array, required) replaces v1's **`order_id`** (string, required) in requests and responses. **Server-calculated total** * **`total_amount`** is no longer accepted. The total comes from `items` and `charges`, and is returned in the response. **New and changed query parameters โ€” list** * **`ids`** and **`invoice_statuses`** โ€” filter by invoice UUID or detailed status. Both repeatable. * **`status`** โ€” now `PAID` or `PENDING`; v1 used `PAID` or `UNPAID`. **New request fields โ€” create & update** * **`invoice_status`** โ€” `DRAFT`, `OPEN`, `SENT`, `PARTIALLY_PAID`, `CLOSED`, `OVERDUE`, `CANCELLED`, or `CREDIT_NOTE_ISSUED`. * **`payment_method`**, **`payment_terms`**, **`po_number`**, **`shipping_method`**, **`shipped_date`**, **`sales_rep_id`** โ€” commercial and fulfilment details that previously lived outside the invoice. * **`charges`** โ€” invoice-level charges: `name` and `type` required (`discount`, `tax`, or `shipping`), plus `value_type` (`value` or `percentage`) and `amount`. * **`attributes`** โ€” custom metadata: `name` and `value` required, optional `label`. * **`items[].tax_charges`** โ€” per-line breakdown of tax, discount, shipping, and additional charges. Each amount has a matching `*_type` of `value` or `percentage`. * **`items[].item_status`** โ€” per-line fulfilment: `ordered_quantity`, `shipped_quantity`, `open_quantity`, `ship_date`, `delivered_date`, `requested_ship_date`, `requested_delivery_date`. **New response fields** Everything above, plus **`items[].sku`** and **`items[].final_unit_price`**. Returned `attributes` also include `id`, `created_by`, `updated_by`, `created_at`, and `updated_at`.