Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
{"excluded_groups":{"system_status/tools":"Store-maintenance commands are not merchant business CRUD.","settings/payment_gateways":"Store/application configuration includes credentials and plugin-defined settings; no new configuration flow.","webhooks":"Requires merchant delivery endpoint and credentials; no receiver setup is added.","paypal-*":"Requires separate PayPal identity and checkout/session workflows.","plugins/network/admin":"Not part of the existing single-store merchant business grant.","conditional_cogs_fields":"Feature-gated Cost of Goods Sold schema is not enabled or established by the existing connector binding.","products/{product_id}/variations/generate":"Official controller defaults to up to 99 generated variants, plus optional deletion of all unmatched variants. No request-side count bound exists, so this atomic bulk operation cannot meet the existing host D batch cap of 10. Use bounded explicit variation batch CRUD instead."},"inventory":[{"method":"GET","path":"/products","risk":"R","resource":"products","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":{"$php":"array_merge( $params['orderby']['enum'], array( 'price', 'popularity', 'rating' ) )"},"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"slug":{"description":"Limit result set to products with a specific slug.","type":"string","validate_callback":"rest_validate_request_arg"},"status":{"default":"any","description":"Limit result set to products assigned a specific status.","type":"string","enum":{"$php":"array_merge( array( 'any', ProductStatus::FUTURE, ProductStatus::TRASH ), array_keys( get_post_statuses() ) )"},"sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"type":{"description":"Limit result set to products assigned a specific type.","type":"string","enum":{"$php":"array_keys( wc_get_product_types() )"},"sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"sku":{"description":"Limit result set to products with specific SKU(s). Use commas to separate.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"featured":{"description":"Limit result set to featured products.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"category":{"description":"Limit result set to products assigned a specific category ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"tag":{"description":"Limit result set to products assigned a specific tag ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"shipping_class":{"description":"Limit result set to products assigned a specific shipping class ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"attribute":{"description":"Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"attribute_term":{"description":"Limit result set to products with a specific attribute term ID (required an assigned attribute).","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"tax_class":{"description":"Limit result set to products with a specific tax class.","type":"string","enum":{"$php":"array_merge( array( 'standard' ), WC_Tax::get_tax_class_slugs() )"},"sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"in_stock":{"description":"Limit result set to products in stock or out of stock.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg","$unset":true},"on_sale":{"description":"Limit result set to products on sale.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"min_price":{"description":"Limit result set to products based on a minimum price.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"max_price":{"description":"Limit result set to products based on a maximum price.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"image_size":{"description":"Image size to return. Accepts any registered WordPress image size.","type":"string","default":"full","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"},"include_meta":{"default":[],"description":"Limit meta_data to specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"exclude_meta":{"default":[],"description":"Ensure meta_data excludes specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"stock_status":{"description":"Limit result set to products with specified stock status.","type":"string","enum":{"$php":"array_keys( wc_get_product_stock_status_options() )"},"sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"search_sku":{"description":"Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"search_name_or_sku":{"description":"Limit results to those with a name or SKU that partial matches a string. This argument takes precedence over 'search', 'sku' and 'search_sku'.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"search_fields":{"description":"Limit search to specific fields when used with search parameter. Available fields: name, sku, global_unique_id, description, short_description. This argument takes precedence over all other search parameters.","type":"array","items":{"type":"string","enum":{"$php":"$search_fields_enum"}},"default":[],"sanitize_callback":"wp_parse_slug_list","validate_callback":"rest_validate_request_arg"},"include_status":{"description":"Limit result set to products with any of the statuses.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'any', ProductStatus::FUTURE, ProductStatus::TRASH ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"exclude_status":{"description":"Exclude products with any of the statuses from result set.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( ProductStatus::FUTURE, ProductStatus::TRASH ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"include_types":{"description":"Limit result set to products with any of the types.","type":"array","items":{"type":"string","enum":{"$php":"array_keys( wc_get_product_types() )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"exclude_types":{"description":"Exclude products with any of the types from result set.","type":"array","items":{"type":"string","enum":{"$php":"array_keys( wc_get_product_types() )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"downloadable":{"description":"Limit result set to downloadable products.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"virtual":{"description":"Limit result set to virtual products.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"pos_products_only":{"description":"Limit result set to products visible in Point of Sale.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products","risk":"H","resource":"products","args":{"name":{"required":false,"description":"Product name.","type":"string"},"slug":{"required":false,"description":"Product slug.","type":"string"},"type":{"required":false,"default":"simple","enum":["simple","grouped","external","variable"],"description":"Product type.","type":"string"},"status":{"required":false,"default":"publish","enum":["draft","pending","private","publish"],"description":"Product status (post status).","type":"string"},"featured":{"required":false,"default":false,"description":"Featured product.","type":"boolean"},"catalog_visibility":{"required":false,"default":"visible","enum":["visible","catalog","search","hidden"],"description":"Catalog visibility.","type":"string"},"description":{"required":false,"description":"Product description.","type":"string"},"short_description":{"required":false,"description":"Product short description.","type":"string"},"sku":{"required":false,"description":"Unique identifier.","type":"string"},"regular_price":{"required":false,"description":"Product regular price.","type":"string"},"sale_price":{"required":false,"description":"Product sale price.","type":"string"},"date_on_sale_from":{"required":false,"description":"Start date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_from_gmt":{"required":false,"description":"Start date of sale price, as GMT.","type":"date-time"},"date_on_sale_to":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_to_gmt":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"virtual":{"required":false,"default":false,"description":"If the product is virtual.","type":"boolean"},"downloadable":{"required":false,"default":false,"description":"If the product is downloadable.","type":"boolean"},"downloads":{"required":false,"description":"List of downloadable files.","type":"array","items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"],"readonly":true},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"required":false,"default":-1,"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer"},"download_expiry":{"required":false,"default":-1,"description":"Number of days until access to downloadable files expires.","type":"integer"},"external_url":{"required":false,"description":"Product external URL. Only for external products.","type":"string"},"button_text":{"required":false,"description":"Product external button text. Only for external products.","type":"string"},"tax_status":{"required":false,"default":"taxable","enum":["taxable","shipping","none"],"description":"Tax status.","type":"string"},"tax_class":{"required":false,"description":"Tax class.","type":"string"},"manage_stock":{"required":false,"default":false,"description":"Stock management at product level.","type":"boolean"},"stock_quantity":{"required":false,"description":"Stock quantity.","type":"integer"},"in_stock":{"required":false,"default":true,"description":"Controls whether or not the product is listed as \"in stock\" or \"out of stock\" on the frontend.","type":"boolean"},"backorders":{"required":false,"default":"no","enum":["no","notify","yes"],"description":"If managing stock, this controls if backorders are allowed.","type":"string"},"sold_individually":{"required":false,"default":false,"description":"Allow one item to be bought in a single order.","type":"boolean"},"weight":{"required":false,"description":"Product weight (kg).","type":"string"},"dimensions":{"required":false,"description":"Product dimensions.","type":"object"},"shipping_class":{"required":false,"description":"Shipping class slug.","type":"string"},"reviews_allowed":{"required":false,"default":true,"description":"Allow reviews.","type":"boolean"},"upsell_ids":{"required":false,"description":"List of up-sell products IDs.","type":"array","items":{"type":"integer"}},"cross_sell_ids":{"required":false,"description":"List of cross-sell products IDs.","type":"array","items":{"type":"integer"}},"parent_id":{"required":false,"description":"Product parent ID.","type":"integer"},"purchase_note":{"required":false,"description":"Optional note to send the customer after purchase.","type":"string"},"categories":{"required":false,"description":"List of categories.","type":"array","items":{"type":"object","properties":{"id":{"description":"Category ID.","type":"integer","context":["view","edit"]},"name":{"description":"Category name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Category slug.","type":"string","context":["view","edit"],"readonly":true}}}},"tags":{"required":false,"description":"List of tags.","type":"array","items":{"type":"object","properties":{"id":{"description":"Tag ID.","type":"integer","context":["view","edit"]},"name":{"description":"Tag name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Tag slug.","type":"string","context":["view","edit"],"readonly":true}}}},"images":{"required":false,"description":"List of images.","type":"object","items":{"type":"object","properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]},"position":{"description":"Image position. 0 means that the image is featured.","type":"integer","context":["view","edit"]}}}},"attributes":{"required":false,"description":"List of attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"position":{"description":"Attribute position.","type":"integer","context":["view","edit"]},"visible":{"description":"Define if the attribute is visible on the \"Additional information\" tab in the product's page.","type":"boolean","default":false,"context":["view","edit"]},"variation":{"description":"Define if the attribute can be used as variation.","type":"boolean","default":false,"context":["view","edit"]},"options":{"description":"List of available term names of the attribute.","type":"array","context":["view","edit"]}}}},"default_attributes":{"required":false,"description":"Defaults variation attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"menu_order":{"required":false,"description":"Menu order, used to custom sort products.","type":"integer"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"GET","path":"/products/{id}","risk":"R","resource":"products","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"image_size":{"required":false,"default":"full","description":"Use a specific registered image size for the returned image src values. Falls back to the full size if the requested size is not registered.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/{id}","risk":"H","resource":"products","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Product name.","type":"string"},"slug":{"required":false,"description":"Product slug.","type":"string"},"type":{"required":false,"enum":["simple","grouped","external","variable"],"description":"Product type.","type":"string"},"status":{"required":false,"enum":["draft","pending","private","publish"],"description":"Product status (post status).","type":"string"},"featured":{"required":false,"description":"Featured product.","type":"boolean"},"catalog_visibility":{"required":false,"enum":["visible","catalog","search","hidden"],"description":"Catalog visibility.","type":"string"},"description":{"required":false,"description":"Product description.","type":"string"},"short_description":{"required":false,"description":"Product short description.","type":"string"},"sku":{"required":false,"description":"Unique identifier.","type":"string"},"regular_price":{"required":false,"description":"Product regular price.","type":"string"},"sale_price":{"required":false,"description":"Product sale price.","type":"string"},"date_on_sale_from":{"required":false,"description":"Start date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_from_gmt":{"required":false,"description":"Start date of sale price, as GMT.","type":"date-time"},"date_on_sale_to":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_to_gmt":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"virtual":{"required":false,"description":"If the product is virtual.","type":"boolean"},"downloadable":{"required":false,"description":"If the product is downloadable.","type":"boolean"},"downloads":{"required":false,"description":"List of downloadable files.","type":"array","items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"],"readonly":true},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"required":false,"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer"},"download_expiry":{"required":false,"description":"Number of days until access to downloadable files expires.","type":"integer"},"external_url":{"required":false,"description":"Product external URL. Only for external products.","type":"string"},"button_text":{"required":false,"description":"Product external button text. Only for external products.","type":"string"},"tax_status":{"required":false,"enum":["taxable","shipping","none"],"description":"Tax status.","type":"string"},"tax_class":{"required":false,"description":"Tax class.","type":"string"},"manage_stock":{"required":false,"description":"Stock management at product level.","type":"boolean"},"stock_quantity":{"required":false,"description":"Stock quantity.","type":"integer"},"in_stock":{"required":false,"description":"Controls whether or not the product is listed as \"in stock\" or \"out of stock\" on the frontend.","type":"boolean"},"backorders":{"required":false,"enum":["no","notify","yes"],"description":"If managing stock, this controls if backorders are allowed.","type":"string"},"sold_individually":{"required":false,"description":"Allow one item to be bought in a single order.","type":"boolean"},"weight":{"required":false,"description":"Product weight (kg).","type":"string"},"dimensions":{"required":false,"description":"Product dimensions.","type":"object"},"shipping_class":{"required":false,"description":"Shipping class slug.","type":"string"},"reviews_allowed":{"required":false,"description":"Allow reviews.","type":"boolean"},"upsell_ids":{"required":false,"description":"List of up-sell products IDs.","type":"array","items":{"type":"integer"}},"cross_sell_ids":{"required":false,"description":"List of cross-sell products IDs.","type":"array","items":{"type":"integer"}},"parent_id":{"required":false,"description":"Product parent ID.","type":"integer"},"purchase_note":{"required":false,"description":"Optional note to send the customer after purchase.","type":"string"},"categories":{"required":false,"description":"List of categories.","type":"array","items":{"type":"object","properties":{"id":{"description":"Category ID.","type":"integer","context":["view","edit"]},"name":{"description":"Category name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Category slug.","type":"string","context":["view","edit"],"readonly":true}}}},"tags":{"required":false,"description":"List of tags.","type":"array","items":{"type":"object","properties":{"id":{"description":"Tag ID.","type":"integer","context":["view","edit"]},"name":{"description":"Tag name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Tag slug.","type":"string","context":["view","edit"],"readonly":true}}}},"images":{"required":false,"description":"List of images.","type":"object","items":{"type":"object","properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]},"position":{"description":"Image position. 0 means that the image is featured.","type":"integer","context":["view","edit"]}}}},"attributes":{"required":false,"description":"List of attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"position":{"description":"Attribute position.","type":"integer","context":["view","edit"]},"visible":{"description":"Define if the attribute is visible on the \"Additional information\" tab in the product's page.","type":"boolean","default":false,"context":["view","edit"]},"variation":{"description":"Define if the attribute can be used as variation.","type":"boolean","default":false,"context":["view","edit"]},"options":{"description":"List of available term names of the attribute.","type":"array","context":["view","edit"]}}}},"default_attributes":{"required":false,"description":"Defaults variation attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"menu_order":{"required":false,"description":"Menu order, used to custom sort products.","type":"integer"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"DELETE","path":"/products/{id}","risk":"D","resource":"products","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/batch","risk":"D","resource":"products","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/{product_id}/variations","risk":"R","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"slug":{"required":false,"description":"Limit result set to products with a specific slug.","type":"string"},"status":{"required":false,"default":"any","enum":["any","draft","pending","private","publish"],"description":"Limit result set to products assigned a specific status.","type":"string"},"type":{"required":false,"enum":["simple","grouped","external","variable"],"description":"Limit result set to products assigned a specific type.","type":"string"},"sku":{"required":false,"description":"Limit result set to products with a specific SKU.","type":"string"},"featured":{"required":false,"description":"Limit result set to featured products.","type":"boolean"},"category":{"required":false,"description":"Limit result set to products assigned a specific category ID.","type":"string"},"tag":{"required":false,"description":"Limit result set to products assigned a specific tag ID.","type":"string"},"shipping_class":{"required":false,"description":"Limit result set to products assigned a specific shipping class ID.","type":"string"},"attribute":{"required":false,"description":"Limit result set to products with a specific attribute.","type":"string"},"attribute_term":{"required":false,"description":"Limit result set to products with a specific attribute term ID (required an assigned attribute).","type":"string"},"tax_class":{"required":false,"enum":["standard","reduced-rate","zero-rate"],"description":"Limit result set to products with a specific tax class.","type":"string"},"in_stock":{"required":false,"description":"Limit result set to products in stock or out of stock.","type":"boolean"},"on_sale":{"required":false,"description":"Limit result set to products on sale.","type":"boolean"},"min_price":{"required":false,"description":"Limit result set to products based on a minimum price.","type":"string"},"max_price":{"required":false,"description":"Limit result set to products based on a maximum price.","type":"string"},"image_size":{"description":"Use a specific registered image size for the returned variation image src. Falls back to the full size if the requested size is not registered.","type":"string","default":"full","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"},"stock_status":{"description":"Limit result set to products with specified stock status.","type":"string","enum":{"$php":"array_keys( wc_get_product_stock_status_options() )"},"sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"has_price":{"description":"Limit result set to products with or without price.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"attributes":{"description":"Limit result set to products with specified attributes.","type":"array","items":{"type":"object","properties":{"attribute":{"type":"string","description":"Attribute slug."},"term":{"type":"string","description":"Attribute term."},"terms":{"type":"array","description":"Attribute terms."}}}},"virtual":{"description":"Limit result set to virtual product variations.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"downloadable":{"description":"Limit result set to downloadable product variations.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"include_status":{"description":"Limit result set to product variations with any of the statuses.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'any', 'future', 'trash' ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"exclude_status":{"description":"Exclude product variations with any of the statuses from result set.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'future', 'trash' ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"pos_products_only":{"description":"Limit result set to variations visible in Point of Sale.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/{product_id}/variations","risk":"H","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"description":{"required":false,"description":"Variation description.","type":"string"},"sku":{"required":false,"description":"Unique identifier.","type":"string"},"regular_price":{"required":false,"description":"Variation regular price.","type":"string"},"sale_price":{"required":false,"description":"Variation sale price.","type":"string"},"date_on_sale_from":{"required":false,"description":"Start date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_from_gmt":{"required":false,"description":"Start date of sale price, as GMT.","type":"date-time"},"date_on_sale_to":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_to_gmt":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"visible":{"required":false,"default":true,"description":"Define if the attribute is visible on the \"Additional information\" tab in the product's page.","type":"boolean"},"virtual":{"required":false,"default":false,"description":"If the variation is virtual.","type":"boolean"},"downloadable":{"required":false,"default":false,"description":"If the variation is downloadable.","type":"boolean"},"downloads":{"required":false,"description":"List of downloadable files.","type":"array","items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"],"readonly":true},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"required":false,"default":-1,"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer"},"download_expiry":{"required":false,"default":-1,"description":"Number of days until access to downloadable files expires.","type":"integer"},"tax_status":{"required":false,"default":"taxable","enum":["taxable","shipping","none"],"description":"Tax status.","type":"string"},"tax_class":{"required":false,"description":"Tax class.","type":"string"},"manage_stock":{"required":false,"default":false,"description":"Stock management at variation level.","type":["boolean","string"]},"stock_quantity":{"required":false,"description":"Stock quantity.","type":"integer"},"in_stock":{"required":false,"default":true,"description":"Controls whether or not the variation is listed as \"in stock\" or \"out of stock\" on the frontend.","type":"boolean"},"backorders":{"required":false,"default":"no","enum":["no","notify","yes"],"description":"If managing stock, this controls if backorders are allowed.","type":"string"},"weight":{"required":false,"description":"Variation weight (kg).","type":"string"},"dimensions":{"required":false,"description":"Variation dimensions.","type":"object"},"shipping_class":{"required":false,"description":"Shipping class slug.","type":"string"},"image":{"required":false,"description":"Variation image data.","type":"object"},"gallery_image_ids":{"required":false,"description":"Variation gallery image IDs, excluding the featured image (which is set via \"image\").","type":"array","items":{"type":"integer","minimum":1}},"attributes":{"required":false,"description":"List of attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"menu_order":{"required":false,"description":"Menu order, used to custom sort products.","type":"integer"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"GET","path":"/products/{product_id}/variations/{id}","risk":"R","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the variation.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"image_size":{"required":false,"default":"full","description":"Use a specific registered image size for the returned variation image src. Falls back to the full size if the requested size is not registered.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/{product_id}/variations/{id}","risk":"H","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the variation.","type":"integer"},"description":{"required":false,"description":"Variation description.","type":"string"},"sku":{"required":false,"description":"Unique identifier.","type":"string"},"regular_price":{"required":false,"description":"Variation regular price.","type":"string"},"sale_price":{"required":false,"description":"Variation sale price.","type":"string"},"date_on_sale_from":{"required":false,"description":"Start date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_from_gmt":{"required":false,"description":"Start date of sale price, as GMT.","type":"date-time"},"date_on_sale_to":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"date_on_sale_to_gmt":{"required":false,"description":"End date of sale price, in the site's timezone.","type":"date-time"},"visible":{"required":false,"description":"Define if the attribute is visible on the \"Additional information\" tab in the product's page.","type":"boolean"},"virtual":{"required":false,"description":"If the variation is virtual.","type":"boolean"},"downloadable":{"required":false,"description":"If the variation is downloadable.","type":"boolean"},"downloads":{"required":false,"description":"List of downloadable files.","type":"array","items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"],"readonly":true},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"required":false,"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer"},"download_expiry":{"required":false,"description":"Number of days until access to downloadable files expires.","type":"integer"},"tax_status":{"required":false,"enum":["taxable","shipping","none"],"description":"Tax status.","type":"string"},"tax_class":{"required":false,"description":"Tax class.","type":"string"},"manage_stock":{"required":false,"description":"Stock management at variation level.","type":["boolean","string"]},"stock_quantity":{"required":false,"description":"Stock quantity.","type":"integer"},"in_stock":{"required":false,"description":"Controls whether or not the variation is listed as \"in stock\" or \"out of stock\" on the frontend.","type":"boolean"},"backorders":{"required":false,"enum":["no","notify","yes"],"description":"If managing stock, this controls if backorders are allowed.","type":"string"},"weight":{"required":false,"description":"Variation weight (kg).","type":"string"},"dimensions":{"required":false,"description":"Variation dimensions.","type":"object"},"shipping_class":{"required":false,"description":"Shipping class slug.","type":"string"},"image":{"required":false,"description":"Variation image data.","type":"object"},"gallery_image_ids":{"required":false,"description":"Variation gallery image IDs, excluding the featured image (which is set via \"image\").","type":"array","items":{"type":"integer","minimum":1}},"attributes":{"required":false,"description":"List of attributes.","type":"array","items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"menu_order":{"required":false,"description":"Menu order, used to custom sort products.","type":"integer"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"DELETE","path":"/products/{product_id}/variations/{id}","risk":"D","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the variation.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/{product_id}/variations/batch","risk":"D","resource":"products/{product_id}/variations","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/categories","risk":"R","resource":"products/categories","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by resource attribute.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide resources not assigned to any products.","type":"boolean","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"description":"Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"product":{"required":false,"description":"Limit result set to resources assigned to a specific product.","type":"integer","default":null,"validate_callback":"rest_validate_request_arg"},"slug":{"required":false,"description":"Limit result set to resources with a specific slug.","type":["string","array"],"items":{"type":"string"},"validate_callback":"rest_validate_request_arg"},"offset":{"description":"Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/categories","risk":"W","resource":"products/categories","args":{"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the resource.","type":"integer"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"display":{"required":false,"default":"default","enum":["default","products","subcategories","both"],"description":"Category archive display type.","type":"string"},"image":{"required":false,"description":"Image data.","type":"object"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"GET","path":"/products/categories/{id}","risk":"R","resource":"products/categories","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/categories/{id}","risk":"W","resource":"products/categories","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Category name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the resource.","type":"integer"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"display":{"required":false,"enum":["default","products","subcategories","both"],"description":"Category archive display type.","type":"string"},"image":{"required":false,"description":"Image data.","type":"object"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"DELETE","path":"/products/categories/{id}","risk":"D","resource":"products/categories","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/categories/batch","risk":"D","resource":"products/categories","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/brands","risk":"R","resource":"products/brands","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by resource attribute.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide resources not assigned to any products.","type":"boolean","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"description":"Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"product":{"required":false,"description":"Limit result set to resources assigned to a specific product.","type":"integer","default":null,"validate_callback":"rest_validate_request_arg"},"slug":{"required":false,"description":"Limit result set to resources with a specific slug.","type":["string","array"],"items":{"type":"string"},"validate_callback":"rest_validate_request_arg"},"offset":{"description":"Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/brands","risk":"W","resource":"products/brands","args":{"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the resource.","type":"integer"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"display":{"required":false,"default":"default","enum":["default","products","subcategories","both"],"description":"Category archive display type.","type":"string"},"image":{"required":false,"description":"Image data.","type":"object"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"GET","path":"/products/brands/{id}","risk":"R","resource":"products/brands","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/brands/{id}","risk":"W","resource":"products/brands","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Category name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the resource.","type":"integer"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"display":{"required":false,"enum":["default","products","subcategories","both"],"description":"Category archive display type.","type":"string"},"image":{"required":false,"description":"Image data.","type":"object"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"DELETE","path":"/products/brands/{id}","risk":"D","resource":"products/brands","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/brands/batch","risk":"D","resource":"products/brands","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/tags","risk":"R","resource":"products/tags","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by resource attribute.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide resources not assigned to any products.","type":"boolean","validate_callback":"rest_validate_request_arg"},"product":{"required":false,"description":"Limit result set to resources assigned to a specific product.","type":"integer","default":null,"validate_callback":"rest_validate_request_arg"},"slug":{"required":false,"description":"Limit result set to resources with a specific slug.","type":["string","array"],"items":{"type":"string"},"validate_callback":"rest_validate_request_arg"},"parent":{"description":"Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/tags","risk":"W","resource":"products/tags","args":{"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"}},"response_kind":"object"},{"method":"GET","path":"/products/tags/{id}","risk":"R","resource":"products/tags","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/tags/{id}","risk":"W","resource":"products/tags","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Tag name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/products/tags/{id}","risk":"D","resource":"products/tags","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/tags/batch","risk":"D","resource":"products/tags","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/attributes","risk":"R","resource":"products/attributes","args":{"context":{"type":"string","enum":["view","edit"]}},"response_kind":"array"},{"method":"POST","path":"/products/attributes","risk":"W","resource":"products/attributes","args":{"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"type":{"required":false,"default":"select","enum":["select","text"],"description":"Type of attribute.","type":"string"},"order_by":{"required":false,"default":"menu_order","enum":["menu_order","name","name_num","id"],"description":"Default sort order.","type":"string"},"has_archives":{"required":false,"default":false,"description":"Enable/Disable attribute archives.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/products/attributes/{id}","risk":"R","resource":"products/attributes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/attributes/{id}","risk":"W","resource":"products/attributes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Attribute name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"type":{"required":false,"enum":["select","text"],"description":"Type of attribute.","type":"string"},"order_by":{"required":false,"enum":["menu_order","name","name_num","id"],"description":"Default sort order.","type":"string"},"has_archives":{"required":false,"description":"Enable/Disable attribute archives.","type":"boolean"}},"response_kind":"object"},{"method":"DELETE","path":"/products/attributes/{id}","risk":"D","resource":"products/attributes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":true,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/attributes/batch","risk":"D","resource":"products/attributes","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/attributes/{attribute_id}/terms","risk":"R","resource":"products/attributes/{attribute_id}/terms","args":{"attribute_id":{"required":false,"description":"Unique identifier for the attribute of the terms.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by resource attribute.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide resources not assigned to any products.","type":"boolean","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"description":"Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"product":{"required":false,"description":"Limit result set to resources assigned to a specific product.","type":"integer","default":null,"validate_callback":"rest_validate_request_arg"},"slug":{"required":false,"description":"Limit result set to resources with a specific slug.","type":["string","array"],"items":{"type":"string"},"validate_callback":"rest_validate_request_arg"},"offset":{"description":"Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/attributes/{attribute_id}/terms","risk":"W","resource":"products/attributes/{attribute_id}/terms","args":{"attribute_id":{"required":false,"description":"Unique identifier for the attribute of the terms.","type":"integer"},"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"GET","path":"/products/attributes/{attribute_id}/terms/{id}","risk":"R","resource":"products/attributes/{attribute_id}/terms","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"attribute_id":{"required":false,"description":"Unique identifier for the attribute of the terms.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/attributes/{attribute_id}/terms/{id}","risk":"W","resource":"products/attributes/{attribute_id}/terms","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"attribute_id":{"required":false,"description":"Unique identifier for the attribute of the terms.","type":"integer"},"name":{"required":false,"description":"Term name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"},"menu_order":{"required":false,"description":"Menu order, used to custom sort the resource.","type":"integer"}},"response_kind":"object"},{"method":"DELETE","path":"/products/attributes/{attribute_id}/terms/{id}","risk":"D","resource":"products/attributes/{attribute_id}/terms","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"attribute_id":{"required":false,"description":"Unique identifier for the attribute of the terms.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/attributes/{attribute_id}/terms/batch","risk":"D","resource":"products/attributes/{attribute_id}/terms","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/shipping_classes","risk":"R","resource":"products/shipping_classes","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by resource attribute.","type":"string","sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide resources not assigned to any products.","type":"boolean","validate_callback":"rest_validate_request_arg"},"product":{"required":false,"description":"Limit result set to resources assigned to a specific product.","type":"integer","default":null,"validate_callback":"rest_validate_request_arg"},"slug":{"required":false,"description":"Limit result set to resources with a specific slug.","type":["string","array"],"items":{"type":"string"},"validate_callback":"rest_validate_request_arg"},"parent":{"description":"Limit result set to resources assigned to a specific parent. Applies to hierarchical taxonomies only.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/products/shipping_classes","risk":"W","resource":"products/shipping_classes","args":{"name":{"required":true,"description":"Name for the resource.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"}},"response_kind":"object"},{"method":"GET","path":"/products/shipping_classes/{id}","risk":"R","resource":"products/shipping_classes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/products/shipping_classes/{id}","risk":"W","resource":"products/shipping_classes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"name":{"required":false,"description":"Shipping class name.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the resource unique to its type.","type":"string"},"description":{"required":false,"description":"HTML description of the resource.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/products/shipping_classes/{id}","risk":"D","resource":"products/shipping_classes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/shipping_classes/batch","risk":"D","resource":"products/shipping_classes","args":{},"response_kind":"batch"},{"method":"GET","path":"/orders","risk":"R","resource":"orders","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"status":{"default":"any","description":"Limit result set to orders which have specific statuses.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'any', OrderStatus::TRASH ), $this->get_order_statuses() )"}},"validate_callback":"rest_validate_request_arg"},"customer":{"description":"Limit result set to orders assigned a specific customer.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"product":{"description":"Limit result set to orders assigned a specific product.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"dp":{"default":{"$php":"wc_get_price_decimals()"},"description":"Number of decimal points to use in each resource.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"},"order_item_display_meta":{"default":false,"description":"Only show meta which is meant to be displayed for an order.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"include_meta":{"default":[],"description":"Limit meta_data to specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"exclude_meta":{"default":[],"description":"Ensure meta_data excludes specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"created_via":{"description":"Limit result set to orders created via specific sources (e.g. checkout, admin).","type":"array","items":{"type":"string"},"validate_callback":"rest_validate_request_arg","sanitize_callback":"wp_parse_list"}},"response_kind":"array"},{"method":"POST","path":"/orders","risk":"H","resource":"orders","args":{"parent_id":{"required":false,"description":"Parent order ID.","type":"integer"},"status":{"required":false,"default":"pending","enum":["pending","processing","on-hold","completed","cancelled","refunded","failed"],"description":"Order status.","type":"string"},"currency":{"required":false,"default":"USD","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","IRT","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PRB","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"description":"Currency the order was created with, in ISO format.","type":"string"},"customer_id":{"required":false,"default":0,"description":"User ID who owns the order. 0 for guests.","type":"integer"},"customer_note":{"required":false,"description":"Note left by customer during checkout.","type":"string"},"billing":{"required":false,"description":"Billing address.","type":"object"},"shipping":{"required":false,"description":"Shipping address.","type":"object"},"payment_method":{"required":false,"description":"Payment method ID.","type":"string"},"payment_method_title":{"required":false,"description":"Payment method title.","type":"string"},"transaction_id":{"required":false,"description":"Unique transaction ID.","type":"string"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"line_items":{"required":false,"description":"Line items data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"string","context":["view","edit"]},"product_id":{"description":"Product ID.","type":"integer","context":["view","edit"]},"variation_id":{"description":"Variation ID, if applicable.","type":"integer","context":["view","edit"]},"quantity":{"description":"Quantity ordered.","type":"integer","context":["view","edit"]},"tax_class":{"description":"Tax class of product.","type":"integer","context":["view","edit"]},"subtotal":{"description":"Line subtotal (before discounts).","type":"string","context":["view","edit"]},"subtotal_tax":{"description":"Line subtotal tax (before discounts).","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"]},"total":{"description":"Tax total.","type":"string","context":["view","edit"]},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"]}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"sku":{"description":"Product SKU.","type":"string","context":["view","edit"],"readonly":true},"price":{"description":"Product price.","type":"string","context":["view","edit"],"readonly":true}}}},"shipping_lines":{"required":false,"description":"Shipping lines data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"method_title":{"description":"Shipping method name.","type":"string","context":["view","edit"]},"method_id":{"description":"Shipping method ID.","type":"string","context":["view","edit"]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"fee_lines":{"required":false,"description":"Fee lines data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Fee name.","type":"string","context":["view","edit"]},"tax_class":{"description":"Tax class of fee.","type":"string","context":["view","edit"]},"tax_status":{"description":"Tax status of fee.","type":"string","context":["view","edit"],"enum":["taxable","none"]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"coupon_lines":{"required":false,"description":"Coupons line data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"code":{"description":"Coupon code.","type":"string","context":["view","edit"]},"discount":{"description":"Discount total.","type":"string","context":["view","edit"]},"discount_tax":{"description":"Discount total tax.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"set_paid":{"required":false,"default":false,"description":"Define if the order is paid. It will set the status to processing and reduce stock items.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/orders/{id}","risk":"R","resource":"orders","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/orders/{id}","risk":"H","resource":"orders","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"parent_id":{"required":false,"description":"Parent order ID.","type":"integer"},"status":{"required":false,"enum":["pending","processing","on-hold","completed","cancelled","refunded","failed"],"description":"Order status.","type":"string"},"currency":{"required":false,"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","IRT","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PRB","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW"],"description":"Currency the order was created with, in ISO format.","type":"string"},"customer_id":{"required":false,"description":"User ID who owns the order. 0 for guests.","type":"integer"},"customer_note":{"required":false,"description":"Note left by customer during checkout.","type":"string"},"billing":{"required":false,"description":"Billing address.","type":"object"},"shipping":{"required":false,"description":"Shipping address.","type":"object"},"payment_method":{"required":false,"description":"Payment method ID.","type":"string"},"payment_method_title":{"required":false,"description":"Payment method title.","type":"string"},"transaction_id":{"required":false,"description":"Unique transaction ID.","type":"string"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"line_items":{"required":false,"description":"Line items data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"string","context":["view","edit"]},"product_id":{"description":"Product ID.","type":"integer","context":["view","edit"]},"variation_id":{"description":"Variation ID, if applicable.","type":"integer","context":["view","edit"]},"quantity":{"description":"Quantity ordered.","type":"integer","context":["view","edit"]},"tax_class":{"description":"Tax class of product.","type":"integer","context":["view","edit"]},"subtotal":{"description":"Line subtotal (before discounts).","type":"string","context":["view","edit"]},"subtotal_tax":{"description":"Line subtotal tax (before discounts).","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"]},"total":{"description":"Tax total.","type":"string","context":["view","edit"]},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"]}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"sku":{"description":"Product SKU.","type":"string","context":["view","edit"],"readonly":true},"price":{"description":"Product price.","type":"string","context":["view","edit"],"readonly":true}}}},"shipping_lines":{"required":false,"description":"Shipping lines data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"method_title":{"description":"Shipping method name.","type":"string","context":["view","edit"]},"method_id":{"description":"Shipping method ID.","type":"string","context":["view","edit"]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"fee_lines":{"required":false,"description":"Fee lines data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Fee name.","type":"string","context":["view","edit"]},"tax_class":{"description":"Tax class of fee.","type":"string","context":["view","edit"]},"tax_status":{"description":"Tax status of fee.","type":"string","context":["view","edit"],"enum":["taxable","none"]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"coupon_lines":{"required":false,"description":"Coupons line data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"code":{"description":"Coupon code.","type":"string","context":["view","edit"]},"discount":{"description":"Discount total.","type":"string","context":["view","edit"]},"discount_tax":{"description":"Discount total tax.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}}}},"set_paid":{"required":false,"description":"Define if the order is paid. It will set the status to processing and reduce stock items.","type":"boolean"}},"response_kind":"object"},{"method":"DELETE","path":"/orders/{id}","risk":"D","resource":"orders","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/orders/batch","risk":"D","resource":"orders","args":{},"response_kind":"batch"},{"method":"GET","path":"/orders/{order_id}/notes","risk":"R","resource":"orders/{order_id}/notes","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"type":{"required":false,"default":"any","enum":["any","customer","internal"],"description":"Limit result to customers or internal notes.","type":"string"}},"response_kind":"array"},{"method":"POST","path":"/orders/{order_id}/notes","risk":"H","resource":"orders/{order_id}/notes","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"note":{"required":true,"description":"Order note content.","type":"string"},"customer_note":{"required":false,"default":false,"description":"If true, the note will be shown to customers and they will be notified. If false, the note will be for admin reference only.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/orders/{order_id}/notes/{id}","risk":"R","resource":"orders/{order_id}/notes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"order_id":{"required":false,"description":"The order ID.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/orders/{order_id}/notes/{id}","risk":"D","resource":"orders/{order_id}/notes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"order_id":{"required":false,"description":"The order ID.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/orders/{order_id}/refunds","risk":"R","resource":"orders/{order_id}/refunds","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"dp":{"default":{"$php":"wc_get_price_decimals()"},"description":"Number of decimal points to use in each resource.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/orders/{order_id}/refunds","risk":"H","resource":"orders/{order_id}/refunds","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"amount":{"required":false,"description":"Refund amount.","type":"string"},"reason":{"required":false,"description":"Reason for refund.","type":"string"},"refunded_by":{"required":false,"description":"User ID of user who created the refund.","type":"integer"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"line_items":{"required":false,"description":"Line items data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"string","context":["view","edit"]},"product_id":{"description":"Product ID.","type":"integer","context":["view","edit"]},"variation_id":{"description":"Variation ID, if applicable.","type":"integer","context":["view","edit"]},"quantity":{"description":"Quantity ordered.","type":"integer","context":["view","edit"]},"tax_class":{"description":"Tax class of product.","type":"integer","context":["view","edit"]},"subtotal":{"description":"Line subtotal (before discounts).","type":"string","context":["view","edit"]},"subtotal_tax":{"description":"Line subtotal tax (before discounts).","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"]},"total":{"description":"Tax total.","type":"string","context":["view","edit"]},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"]}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}},"sku":{"description":"Product SKU.","type":"string","context":["view","edit"],"readonly":true},"price":{"description":"Product price.","type":"string","context":["view","edit"],"readonly":true}}}},"api_refund":{"required":false,"default":true,"description":"When true, the payment gateway API is used to generate the refund.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/orders/{order_id}/refunds/{id}","risk":"R","resource":"orders/{order_id}/refunds","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/orders/{order_id}/refunds/{id}","risk":"D","resource":"orders/{order_id}/refunds","args":{"order_id":{"required":false,"description":"The order ID.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":true,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/customers","risk":"R","resource":"customers","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"sanitize_callback":"wp_parse_id_list"},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"sanitize_callback":"wp_parse_id_list"},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"default":"asc","description":"Order sort attribute ascending or descending.","enum":["asc","desc"],"sanitize_callback":"sanitize_key","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"default":"name","description":"Sort collection by object attribute.","enum":["id","include","name","registered_date"],"sanitize_callback":"sanitize_key","type":"string","validate_callback":"rest_validate_request_arg"},"email":{"description":"Limit result set to resources with a specific email.","type":"string","format":"email","validate_callback":"rest_validate_request_arg"},"role":{"description":"Limit result set to resources with a specific role.","type":"string","default":"customer","enum":{"$php":"array_merge( array( 'all' ), $this->get_role_names() )"},"validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/customers","risk":"W","resource":"customers","args":{"email":{"required":true,"description":"New user email address.","type":"string"},"first_name":{"required":false,"description":"Customer first name.","type":"string"},"last_name":{"required":false,"description":"Customer last name.","type":"string"},"username":{"required":false,"description":"New user username.","type":"string"},"password":{"required":false,"description":"New user password.","type":"string"},"billing":{"required":false,"description":"List of billing address data.","type":"object"},"shipping":{"required":false,"description":"List of shipping address data.","type":"object"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"GET","path":"/customers/{id}","risk":"R","resource":"customers","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/customers/{id}","risk":"W","resource":"customers","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"email":{"required":false,"description":"The email address for the customer.","type":"string"},"first_name":{"required":false,"description":"Customer first name.","type":"string"},"last_name":{"required":false,"description":"Customer last name.","type":"string"},"username":{"required":false,"description":"Customer login name.","type":"string"},"password":{"required":false,"description":"Customer password.","type":"string"},"billing":{"required":false,"description":"List of billing address data.","type":"object"},"shipping":{"required":false,"description":"List of shipping address data.","type":"object"},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"DELETE","path":"/customers/{id}","risk":"D","resource":"customers","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"},"reassign":{"required":false,"default":0,"description":"ID to reassign posts to.","type":"integer"}},"response_kind":"object"},{"method":"POST","path":"/customers/batch","risk":"D","resource":"customers","args":{},"response_kind":"batch"},{"method":"GET","path":"/coupons","risk":"R","resource":"coupons","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"code":{"description":"Limit result set to resources with a specific code.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"},"parent":{"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list","default":[]},"parent_exclude":{"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list","default":[]}},"response_kind":"array"},{"method":"POST","path":"/coupons","risk":"H","resource":"coupons","args":{"code":{"required":true,"description":"Coupon code.","type":"string"},"amount":{"required":false,"description":"The amount of discount. Should always be numeric, even if setting a percentage.","type":"string"},"discount_type":{"required":false,"default":"fixed_cart","enum":["percent","fixed_cart","fixed_product"],"description":"Determines the type of discount that will be applied.","type":"string"},"description":{"required":false,"description":"Coupon description.","type":"string"},"date_expires":{"required":false,"description":"The date the coupon expires, in the site's timezone.","type":"string"},"date_expires_gmt":{"required":false,"description":"The date the coupon expires, as GMT.","type":"string"},"individual_use":{"required":false,"default":false,"description":"If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.","type":"boolean"},"product_ids":{"required":false,"description":"List of product IDs the coupon can be used on.","type":"array","items":{"type":"integer"}},"excluded_product_ids":{"required":false,"description":"List of product IDs the coupon cannot be used on.","type":"array","items":{"type":"integer"}},"usage_limit":{"required":false,"description":"How many times the coupon can be used in total.","type":"integer"},"usage_limit_per_user":{"required":false,"description":"How many times the coupon can be used per customer.","type":"integer"},"limit_usage_to_x_items":{"required":false,"description":"Max number of items in the cart the coupon can be applied to.","type":"integer"},"free_shipping":{"required":false,"default":false,"description":"If true and if the free shipping method requires a coupon, this coupon will enable free shipping.","type":"boolean"},"product_categories":{"required":false,"description":"List of category IDs the coupon applies to.","type":"array","items":{"type":"integer"}},"excluded_product_categories":{"required":false,"description":"List of category IDs the coupon does not apply to.","type":"array","items":{"type":"integer"}},"exclude_sale_items":{"required":false,"default":false,"description":"If true, this coupon will not be applied to items that have sale prices.","type":"boolean"},"minimum_amount":{"required":false,"description":"Minimum order amount that needs to be in the cart before coupon applies.","type":"string"},"maximum_amount":{"required":false,"description":"Maximum order amount allowed when using the coupon.","type":"string"},"email_restrictions":{"required":false,"description":"List of email addresses that can use this coupon.","type":"array","items":{"type":"string"}},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"GET","path":"/coupons/{id}","risk":"R","resource":"coupons","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/coupons/{id}","risk":"H","resource":"coupons","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"code":{"required":false,"description":"Coupon code.","type":"string"},"amount":{"required":false,"description":"The amount of discount. Should always be numeric, even if setting a percentage.","type":"string"},"discount_type":{"required":false,"enum":["percent","fixed_cart","fixed_product"],"description":"Determines the type of discount that will be applied.","type":"string"},"description":{"required":false,"description":"Coupon description.","type":"string"},"date_expires":{"required":false,"description":"The date the coupon expires, in the site's timezone.","type":"string"},"date_expires_gmt":{"required":false,"description":"The date the coupon expires, as GMT.","type":"string"},"individual_use":{"required":false,"description":"If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.","type":"boolean"},"product_ids":{"required":false,"description":"List of product IDs the coupon can be used on.","type":"array","items":{"type":"integer"}},"excluded_product_ids":{"required":false,"description":"List of product IDs the coupon cannot be used on.","type":"array","items":{"type":"integer"}},"usage_limit":{"required":false,"description":"How many times the coupon can be used in total.","type":"integer"},"usage_limit_per_user":{"required":false,"description":"How many times the coupon can be used per customer.","type":"integer"},"limit_usage_to_x_items":{"required":false,"description":"Max number of items in the cart the coupon can be applied to.","type":"integer"},"free_shipping":{"required":false,"description":"If true and if the free shipping method requires a coupon, this coupon will enable free shipping.","type":"boolean"},"product_categories":{"required":false,"description":"List of category IDs the coupon applies to.","type":"array","items":{"type":"integer"}},"excluded_product_categories":{"required":false,"description":"List of category IDs the coupon does not apply to.","type":"array","items":{"type":"integer"}},"exclude_sale_items":{"required":false,"description":"If true, this coupon will not be applied to items that have sale prices.","type":"boolean"},"minimum_amount":{"required":false,"description":"Minimum order amount that needs to be in the cart before coupon applies.","type":"string"},"maximum_amount":{"required":false,"description":"Maximum order amount allowed when using the coupon.","type":"string"},"email_restrictions":{"required":false,"description":"List of email addresses that can use this coupon.","type":"array","items":{"type":"string"}},"meta_data":{"required":false,"description":"Meta data.","type":"array","items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"string","context":["view","edit"]}}}}},"response_kind":"object"},{"method":"DELETE","path":"/coupons/{id}","risk":"D","resource":"coupons","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/coupons/batch","risk":"D","resource":"coupons","args":{},"response_kind":"batch"},{"method":"GET","path":"/products/reviews","risk":"R","resource":"products/reviews","args":{"context":{"type":"string","enum":["view","edit"]},"after":{"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time"},"before":{"description":"Limit response to reviews published before a given ISO8601 compliant date.","type":"string","format":"date-time"},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[]},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[]},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"]},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date_gmt","enum":["date","date_gmt","id","include","product"]},"reviewer":{"description":"Limit result set to reviews assigned to specific user IDs.","type":"array","items":{"type":"integer"}},"reviewer_exclude":{"description":"Ensure result set excludes reviews assigned to specific user IDs.","type":"array","items":{"type":"integer"}},"reviewer_email":{"default":null,"description":"Limit result set to that from a specific author email.","format":"email","type":"string"},"product":{"default":[],"description":"Limit result set to reviews assigned to specific product IDs.","type":"array","items":{"type":"integer"}},"status":{"default":"approved","description":"Limit result set to reviews assigned a specific status.","sanitize_callback":"sanitize_key","type":"string","enum":["all","hold","approved","spam","trash"]},"page":{"type":"integer","minimum":1},"per_page":{"type":"integer","minimum":1,"maximum":100},"search":{"type":"string"}},"response_kind":"array"},{"method":"POST","path":"/products/reviews","risk":"H","resource":"products/reviews","args":{},"response_kind":"object"},{"method":"GET","path":"/products/reviews/{id}","risk":"R","resource":"products/reviews","args":{},"response_kind":"object"},{"method":"PUT","path":"/products/reviews/{id}","risk":"H","resource":"products/reviews","args":{},"response_kind":"object"},{"method":"DELETE","path":"/products/reviews/{id}","risk":"D","resource":"products/reviews","args":{"force":{"type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/products/reviews/batch","risk":"D","resource":"products/reviews","args":{},"response_kind":"batch"},{"method":"GET","path":"/taxes","risk":"R","resource":"taxes","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"description":"Current page of the collection.","type":"integer","default":1,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"default":"asc","description":"Order sort attribute ascending or descending.","enum":["asc","desc"],"sanitize_callback":"sanitize_key","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"default":"order","description":"Sort collection by object attribute.","enum":["id","order","priority"],"sanitize_callback":"sanitize_key","type":"string","validate_callback":"rest_validate_request_arg"},"class":{"description":"Sort by tax class.","enum":{"$php":"array_merge( array( 'standard' ), WC_Tax::get_tax_class_slugs() )"},"sanitize_callback":"sanitize_title","type":"string","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"POST","path":"/taxes","risk":"H","resource":"taxes","args":{"country":{"required":false,"description":"Country ISO 3166 code.","type":"string"},"state":{"required":false,"description":"State code.","type":"string"},"postcode":{"required":false,"description":"Postcode / ZIP.","type":"string"},"city":{"required":false,"description":"City name.","type":"string"},"rate":{"required":false,"description":"Tax rate.","type":"string"},"name":{"required":false,"description":"Tax rate name.","type":"string"},"priority":{"required":false,"default":1,"description":"Tax priority.","type":"integer"},"compound":{"required":false,"default":false,"description":"Whether or not this is a compound rate.","type":"boolean"},"shipping":{"required":false,"default":true,"description":"Whether or not this tax rate also gets applied to shipping.","type":"boolean"},"order":{"required":false,"description":"Indicates the order that will appear in queries.","type":"integer"},"class":{"required":false,"default":"standard","enum":["standard","reduced-rate","zero-rate"],"description":"Tax class.","type":"string"}},"response_kind":"object"},{"method":"GET","path":"/taxes/{id}","risk":"R","resource":"taxes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"PUT","path":"/taxes/{id}","risk":"H","resource":"taxes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"country":{"required":false,"description":"Country ISO 3166 code.","type":"string"},"state":{"required":false,"description":"State code.","type":"string"},"postcode":{"required":false,"description":"Postcode / ZIP.","type":"string"},"city":{"required":false,"description":"City name.","type":"string"},"rate":{"required":false,"description":"Tax rate.","type":"string"},"name":{"required":false,"description":"Tax rate name.","type":"string"},"priority":{"required":false,"description":"Tax priority.","type":"integer"},"compound":{"required":false,"description":"Whether or not this is a compound rate.","type":"boolean"},"shipping":{"required":false,"description":"Whether or not this tax rate also gets applied to shipping.","type":"boolean"},"order":{"required":false,"description":"Indicates the order that will appear in queries.","type":"integer"},"class":{"required":false,"enum":["standard","reduced-rate","zero-rate"],"description":"Tax class.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/taxes/{id}","risk":"D","resource":"taxes","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"POST","path":"/taxes/batch","risk":"D","resource":"taxes","args":{},"response_kind":"batch"},{"method":"GET","path":"/taxes/classes","risk":"R","resource":"taxes/classes","args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"array"},{"method":"POST","path":"/taxes/classes","risk":"H","resource":"taxes/classes","args":{"name":{"required":true,"description":"Tax class name.","type":"string"}},"response_kind":"object"},{"method":"DELETE","path":"/taxes/classes/{slug}","risk":"D","resource":"taxes/classes","args":{"slug":{"required":false,"description":"Unique slug for the resource.","type":"string"},"force":{"required":false,"default":false,"description":"Required to be true, as resource does not support trashing.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/shipping/zones","risk":"R","resource":"shipping/zones","args":{},"response_kind":"array"},{"method":"POST","path":"/shipping/zones","risk":"H","resource":"shipping/zones","args":{"name":{"required":true,"description":"Shipping zone name.","type":"string"},"order":{"required":false,"description":"Shipping zone order.","type":"integer"}},"response_kind":"object"},{"method":"GET","path":"/shipping/zones/{id}","risk":"R","resource":"shipping/zones","args":{"id":{"required":false,"description":"Unique ID for the resource.","type":"integer"}},"response_kind":"object"},{"method":"PUT","path":"/shipping/zones/{id}","risk":"H","resource":"shipping/zones","args":{"id":{"required":false,"description":"Unique ID for the resource.","type":"integer"},"name":{"required":false,"description":"Shipping zone name.","type":"string"},"order":{"required":false,"description":"Shipping zone order.","type":"integer"}},"response_kind":"object"},{"method":"DELETE","path":"/shipping/zones/{id}","risk":"D","resource":"shipping/zones","args":{"id":{"required":false,"description":"Unique ID for the resource.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/shipping/zones/{id}/locations","risk":"R","resource":"shipping/zones/{id}/locations","args":{"id":{"required":false,"description":"Unique ID for the resource.","type":"integer"}},"response_kind":"array"},{"method":"PUT","path":"/shipping/zones/{id}/locations","risk":"H","resource":"shipping/zones/{id}/locations","args":{"id":{"required":false,"description":"Unique ID for the resource.","type":"integer"},"code":{"required":false,"description":"Shipping zone location code.","type":"string"},"type":{"required":false,"enum":["postcode","state","country","continent"],"description":"Shipping zone location type.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/shipping/zones/{zone_id}/methods","risk":"R","resource":"shipping/zones/{zone_id}/methods","args":{"zone_id":{"required":false,"description":"Unique ID for the zone.","type":"integer"}},"response_kind":"array"},{"method":"POST","path":"/shipping/zones/{zone_id}/methods","risk":"H","resource":"shipping/zones/{zone_id}/methods","args":{"zone_id":{"required":false,"description":"Unique ID for the zone.","type":"integer"},"order":{"required":false,"description":"Shipping method sort order.","type":"integer"},"enabled":{"required":false,"description":"Shipping method enabled status.","type":"boolean"},"settings":{"required":false,"description":"Shipping method settings.","type":"object"},"method_id":{"required":true,"description":"Shipping method ID."}},"response_kind":"object"},{"method":"GET","path":"/shipping/zones/{zone_id}/methods/{instance_id}","risk":"R","resource":"shipping/zones/{zone_id}/methods","args":{"zone_id":{"required":false,"description":"Unique ID for the zone.","type":"integer"},"instance_id":{"required":false,"description":"Unique ID for the instance.","type":"integer"}},"response_kind":"object"},{"method":"PUT","path":"/shipping/zones/{zone_id}/methods/{instance_id}","risk":"H","resource":"shipping/zones/{zone_id}/methods","args":{"zone_id":{"required":false,"description":"Unique ID for the zone.","type":"integer"},"instance_id":{"required":false,"description":"Unique ID for the instance.","type":"integer"},"order":{"required":false,"description":"Shipping method sort order.","type":"integer"},"enabled":{"required":false,"description":"Shipping method enabled status.","type":"boolean"},"settings":{"required":false,"description":"Shipping method settings.","type":"object"}},"response_kind":"object"},{"method":"DELETE","path":"/shipping/zones/{zone_id}/methods/{instance_id}","risk":"D","resource":"shipping/zones/{zone_id}/methods","args":{"zone_id":{"required":false,"description":"Unique ID for the zone.","type":"integer"},"instance_id":{"required":false,"description":"Unique ID for the instance.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}},"response_kind":"object"},{"method":"GET","path":"/shipping_methods","risk":"R","resource":"shipping_methods","args":{"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/shipping_methods/{id}","risk":"R","resource":"shipping_methods","args":{"id":{"required":false,"description":"Unique identifier for the resource.","type":"string"},"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"GET","path":"/data","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/data/countries","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/data/countries/{location}","risk":"R","resource":null,"args":{},"response_kind":"object"},{"method":"GET","path":"/data/continents","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/data/continents/{location}","risk":"R","resource":null,"args":{},"response_kind":"object"},{"method":"GET","path":"/data/currencies","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/data/currencies/current","risk":"R","resource":null,"args":{},"response_kind":"object"},{"method":"GET","path":"/data/currencies/{currency}","risk":"R","resource":null,"args":{},"response_kind":"object"},{"method":"GET","path":"/reports","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/reports/sales","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"period":{"required":false,"enum":["week","month","last_month","year"],"description":"Report period.","type":"string"},"date_min":{"required":false,"description":"Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.","type":"string"},"date_max":{"required":false,"description":"Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/reports/top_sellers","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"period":{"required":false,"enum":["week","month","last_month","year"],"description":"Report period.","type":"string"},"date_min":{"required":false,"description":"Return sales for a specific start date, the date need to be in the YYYY-MM-DD format.","type":"string"},"date_max":{"required":false,"description":"Return sales for a specific end date, the date need to be in the YYYY-MM-DD format.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/reports/orders/totals","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/reports/products/totals","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/reports/customers/totals","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/reports/coupons/totals","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/reports/reviews/totals","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"GET","path":"/customers/{customer_id}/downloads","risk":"R","resource":null,"args":{"customer_id":{"required":false,"description":"Unique identifier for the resource.","type":"integer"},"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"array"},{"method":"GET","path":"/system_status","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}},"response_kind":"object"},{"method":"GET","path":"/products/custom-fields/names","risk":"R","resource":null,"args":{"context":{"type":"string","enum":["view","edit"]},"page":{"type":"integer","minimum":1},"per_page":{"type":"integer","minimum":1,"maximum":100},"search":{"type":"string"},"order":{"type":"string","enum":["asc","desc"]}},"response_kind":"array"},{"method":"GET","path":"/refunds","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"dp":{"default":{"$php":"wc_get_price_decimals()"},"description":"Number of decimal points to use in each resource.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"GET","path":"/orders/{id}/actions/email_templates","risk":"R","resource":null,"args":{},"response_kind":"array"},{"method":"POST","path":"/orders/{id}/actions/send_email","risk":"H","resource":null,"args":{"email":{"type":"string","format":"email"},"force_email_update":{"type":"boolean"},"template_id":{"type":"string","description":"Use an ID returned by email_templates; available templates depend on the order."}},"response_kind":"message"},{"method":"POST","path":"/orders/{id}/actions/send_order_details","risk":"H","resource":null,"args":{"email":{"type":"string","format":"email"},"force_email_update":{"type":"boolean"}},"response_kind":"message"},{"method":"GET","path":"/products/shipping_classes/slug-suggestion","risk":"R","resource":null,"args":{"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"}},"response_kind":"string"},{"method":"POST","path":"/products/{id}/duplicate","risk":"H","resource":"products","args":{},"response_kind":"object"},{"method":"GET","path":"/variations","risk":"R","resource":"products/{product_id}/variations","args":{"product_id":{"required":false,"description":"Unique identifier for the variable product.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg","minimum":1},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer","sanitize_callback":"absint","validate_callback":"rest_validate_request_arg"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string","validate_callback":"rest_validate_request_arg"},"orderby":{"required":false,"default":"date","enum":["date","id","include","title","slug","modified"],"description":"Sort collection by object attribute.","type":"string","validate_callback":"rest_validate_request_arg"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"sanitize_callback":"wp_parse_id_list"},"slug":{"required":false,"description":"Limit result set to products with a specific slug.","type":"string"},"status":{"required":false,"default":"any","enum":["any","draft","pending","private","publish"],"description":"Limit result set to products assigned a specific status.","type":"string"},"type":{"required":false,"enum":["simple","grouped","external","variable"],"description":"Limit result set to products assigned a specific type.","type":"string"},"sku":{"required":false,"description":"Limit result set to products with a specific SKU.","type":"string"},"featured":{"required":false,"description":"Limit result set to featured products.","type":"boolean"},"category":{"required":false,"description":"Limit result set to products assigned a specific category ID.","type":"string"},"tag":{"required":false,"description":"Limit result set to products assigned a specific tag ID.","type":"string"},"shipping_class":{"required":false,"description":"Limit result set to products assigned a specific shipping class ID.","type":"string"},"attribute":{"required":false,"description":"Limit result set to products with a specific attribute.","type":"string"},"attribute_term":{"required":false,"description":"Limit result set to products with a specific attribute term ID (required an assigned attribute).","type":"string"},"tax_class":{"required":false,"enum":["standard","reduced-rate","zero-rate"],"description":"Limit result set to products with a specific tax class.","type":"string"},"in_stock":{"required":false,"description":"Limit result set to products in stock or out of stock.","type":"boolean"},"on_sale":{"required":false,"description":"Limit result set to products on sale.","type":"boolean"},"min_price":{"required":false,"description":"Limit result set to products based on a minimum price.","type":"string"},"max_price":{"required":false,"description":"Limit result set to products based on a maximum price.","type":"string"},"image_size":{"description":"Use a specific registered image size for the returned variation image src. Falls back to the full size if the requested size is not registered.","type":"string","default":"full","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"modified_after":{"description":"Limit response to resources modified after a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"modified_before":{"description":"Limit response to resources modified before a given ISO8601 compliant date.","type":"string","format":"date-time","validate_callback":"rest_validate_request_arg"},"dates_are_gmt":{"description":"Whether to consider GMT post dates when limiting response by published or modified date.","type":"boolean","default":false,"validate_callback":"rest_validate_request_arg"},"stock_status":{"description":"Limit result set to products with specified stock status.","type":"string","enum":{"$php":"array_keys( wc_get_product_stock_status_options() )"},"sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"has_price":{"description":"Limit result set to products with or without price.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"attributes":{"description":"Limit result set to products with specified attributes.","type":"array","items":{"type":"object","properties":{"attribute":{"type":"string","description":"Attribute slug."},"term":{"type":"string","description":"Attribute term."},"terms":{"type":"array","description":"Attribute terms."}}}},"virtual":{"description":"Limit result set to virtual product variations.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"downloadable":{"description":"Limit result set to downloadable product variations.","type":"boolean","sanitize_callback":"rest_sanitize_boolean","validate_callback":"rest_validate_request_arg"},"include_status":{"description":"Limit result set to product variations with any of the statuses.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'any', 'future', 'trash' ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"exclude_status":{"description":"Exclude product variations with any of the statuses from result set.","type":"array","items":{"type":"string","enum":{"$php":"array_merge( array( 'future', 'trash' ), array_keys( get_post_statuses() ) )"}},"sanitize_callback":"wp_parse_list","validate_callback":"rest_validate_request_arg"},"pos_products_only":{"description":"Limit result set to variations visible in Point of Sale.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"}},"response_kind":"array"},{"method":"GET","path":"/products/suggested-products","risk":"R","resource":null,"args":{"context":{"required":false,"default":"view","enum":["view","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to resources published after a given ISO8601 compliant date.","type":"string"},"before":{"required":false,"description":"Limit response to resources published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific ids.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":{"$php":"array_merge( $params['orderby']['enum'], array( 'menu_order' ) )"},"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"description":"Limit result set to products with a specific slug.","type":"string","validate_callback":"rest_validate_request_arg"},"status":{"default":"any","description":"Limit result set to products assigned a specific status.","type":"string","enum":{"$php":"array_merge( array( 'any', ProductStatus::FUTURE, ProductStatus::TRASH ), array_keys( get_post_statuses() ) )"},"sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"type":{"description":"Limit result set to products assigned a specific type.","type":"string","enum":{"$php":"array_keys( wc_get_product_types() )"},"sanitize_callback":"sanitize_key","validate_callback":"rest_validate_request_arg"},"sku":{"description":"Limit result set to products with specific SKU(s). Use commas to separate.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"featured":{"description":"Limit result set to featured products.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"category":{"description":"Limit result set to products assigned a specific category ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"tag":{"description":"Limit result set to products assigned a specific tag ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"shipping_class":{"description":"Limit result set to products assigned a specific shipping class ID.","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"attribute":{"description":"Limit result set to products with a specific attribute. Use the taxonomy name/attribute slug.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"attribute_term":{"description":"Limit result set to products with a specific attribute term ID (required an assigned attribute).","type":"string","sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"tax_class":{"description":"Limit result set to products with a specific tax class.","type":"string","enum":{"$php":"array_merge( array( 'standard' ), WC_Tax::get_tax_class_slugs() )"},"sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"in_stock":{"description":"Limit result set to products in stock or out of stock.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"on_sale":{"description":"Limit result set to products on sale.","type":"boolean","sanitize_callback":"wc_string_to_bool","validate_callback":"rest_validate_request_arg"},"min_price":{"description":"Limit result set to products based on a minimum price.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"max_price":{"description":"Limit result set to products based on a maximum price.","type":"string","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"image_size":{"description":"Image size to return. Accepts any registered WordPress image size.","type":"string","default":"full","sanitize_callback":"sanitize_text_field","validate_callback":"rest_validate_request_arg"},"include_meta":{"default":[],"description":"Limit meta_data to specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"exclude_meta":{"default":[],"description":"Ensure meta_data excludes specific keys.","type":"array","items":{"type":"string"},"sanitize_callback":"wp_parse_list"},"categories":{"description":"Limit result set to specific product categorie ids.","type":"array","items":{"type":"integer"},"default":[],"sanitize_callback":"wp_parse_id_list","validate_callback":"rest_validate_request_arg"},"tags":{"description":"Limit result set to specific product tag ids.","type":"array","items":{"type":"integer"},"default":[],"validate_callback":"rest_validate_request_arg","sanitize_callback":"wp_parse_id_list"},"limit":{"description":"Limit result set to specific amount of suggested products.","type":"integer","default":5,"validate_callback":"rest_validate_request_arg","sanitize_callback":"absint"}},"response_kind":"array"},{"method":"GET","path":"/products/{id}/related","risk":"R","resource":null,"args":{},"response_kind":"related"},{"method":"POST","path":"/orders/{order_id}/refunds/preview","risk":"R","resource":null,"args":{"line_items":{"description":"Line items to include in the refund preview.","type":"array","required":true,"minItems":1,"validate_callback":"rest_validate_request_arg","sanitize_callback":"rest_sanitize_request_arg","items":{"type":"object","required":["line_item_id"],"additionalProperties":false,"properties":{"line_item_id":{"description":"ID of the original order line item.","type":"integer","minimum":1},"quantity":{"description":"Quantity to refund. Required when refund_total is omitted.","type":"integer","minimum":1},"refund_total":{"description":"Tax-inclusive amount to refund for this line item. Must be non-zero and match the line's sign (negative for discount or credit lines, positive otherwise). Required when quantity is omitted.","type":["number","null"]}}}}},"response_kind":"preview"}],"release":"11.1.2","release_commit":"2316335b1bce366178ce865d4e61a4c5e2219352","schemas":{"products":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->post_type"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"string","context":["view","edit"]},"slug":{"description":"Product slug.","type":"string","context":["view","edit"]},"permalink":{"description":"Product URL.","type":"string","format":"uri","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the product was created, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_created_gmt":{"description":"The date the product was created, as GMT.","type":"date-time","context":["view","edit"]},"date_modified":{"description":"The date the product was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the product was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"type":{"description":"Product type.","type":"string","default":{"$php":"ProductType::SIMPLE"},"enum":{"$php":"array_keys( wc_get_product_types() )"},"context":["view","edit"]},"status":{"description":"Product status (post status).","type":"string","default":{"$php":"ProductStatus::PUBLISH"},"enum":{"$php":"array_merge( array_keys( get_post_statuses() ), array( ProductStatus::FUTURE, ProductStatus::AUTO_DRAFT, ProductStatus::TRASH ) )"},"context":["view","edit"]},"featured":{"description":"Featured product.","type":"boolean","default":false,"context":["view","edit"]},"catalog_visibility":{"description":"Catalog visibility.","type":"string","default":{"$php":"CatalogVisibility::VISIBLE"},"enum":[{"$php":"CatalogVisibility::VISIBLE"},{"$php":"CatalogVisibility::CATALOG"},{"$php":"CatalogVisibility::SEARCH"},{"$php":"CatalogVisibility::HIDDEN"}],"context":["view","edit"]},"description":{"description":"Product description.","type":"string","context":["view","edit"]},"short_description":{"description":"Product short description.","type":"string","context":["view","edit"]},"sku":{"description":"Stock Keeping Unit.","type":"string","context":["view","edit"]},"global_unique_id":{"description":"GTIN, UPC, EAN or ISBN.","type":"string","context":["view","edit"]},"price":{"description":"Current product price.","type":"string","context":["view","edit"],"readonly":true},"regular_price":{"description":"Product regular price.","type":"string","context":["view","edit"]},"sale_price":{"description":"Product sale price.","type":"string","context":["view","edit"]},"date_on_sale_from":{"description":"Start date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_on_sale_from_gmt":{"description":"Start date of sale price, as GMT.","type":"date-time","context":["view","edit"]},"date_on_sale_to":{"description":"End date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_on_sale_to_gmt":{"description":"End date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"price_html":{"description":"Price formatted in HTML.","type":"string","context":["view","edit"],"readonly":true},"on_sale":{"description":"Shows if the product is on sale.","type":"boolean","context":["view","edit"],"readonly":true},"purchasable":{"description":"Shows if the product can be bought.","type":"boolean","context":["view","edit"],"readonly":true},"total_sales":{"description":"Amount of sales.","type":"integer","context":["view","edit"],"readonly":true},"virtual":{"description":"If the product is virtual.","type":"boolean","default":false,"context":["view","edit"]},"downloadable":{"description":"If the product is downloadable.","type":"boolean","default":false,"context":["view","edit"]},"downloads":{"description":"List of downloadable files.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"]},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer","default":-1,"context":["view","edit"]},"download_expiry":{"description":"Number of days until access to downloadable files expires.","type":"integer","default":-1,"context":["view","edit"]},"external_url":{"description":"Product external URL. Only for external products.","type":"string","format":"uri","context":["view","edit"]},"button_text":{"description":"Product external button text. Only for external products.","type":"string","context":["view","edit"]},"tax_status":{"description":"Tax status.","type":"string","default":{"$php":"ProductTaxStatus::TAXABLE"},"enum":[{"$php":"ProductTaxStatus::TAXABLE"},{"$php":"ProductTaxStatus::SHIPPING"},{"$php":"ProductTaxStatus::NONE"}],"context":["view","edit"]},"tax_class":{"description":"Tax class.","type":"string","context":["view","edit"]},"manage_stock":{"description":"Stock management at product level.","type":"boolean","default":false,"context":["view","edit"]},"stock_quantity":{"description":"Stock quantity.","type":"number","context":["view","edit"]},"stock_status":{"description":"Controls the stock status of the product.","type":"string","default":{"$php":"ProductStockStatus::IN_STOCK"},"enum":{"$php":"array_keys( wc_get_product_stock_status_options() )"},"context":["view","edit"]},"backorders":{"description":"If managing stock, this controls if backorders are allowed.","type":"string","default":"no","enum":["no","notify","yes"],"context":["view","edit"]},"backorders_allowed":{"description":"Shows if backorders are allowed.","type":"boolean","context":["view","edit"],"readonly":true},"backordered":{"description":"Shows if the product is on backordered.","type":"boolean","context":["view","edit"],"readonly":true},"low_stock_amount":{"description":"Low Stock amount for the product.","type":["integer","null"],"context":["view","edit"]},"sold_individually":{"description":"Allow one item to be bought in a single order.","type":"boolean","default":false,"context":["view","edit"]},"weight":{"description":{"$php":"sprintf( __( 'Product weight (%s).', 'woocommerce' ), $weight_unit_label )"},"type":"string","context":["view","edit"]},"dimensions":{"description":"Product dimensions.","type":"object","context":["view","edit"],"properties":{"length":{"description":{"$php":"sprintf( __( 'Product length (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]},"width":{"description":{"$php":"sprintf( __( 'Product width (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]},"height":{"description":{"$php":"sprintf( __( 'Product height (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]}}},"shipping_required":{"description":"Shows if the product need to be shipped.","type":"boolean","context":["view","edit"],"readonly":true},"shipping_taxable":{"description":"Shows whether or not the product shipping is taxable.","type":"boolean","context":["view","edit"],"readonly":true},"shipping_class":{"description":"Shipping class slug.","type":"string","context":["view","edit"]},"shipping_class_id":{"description":"Shipping class ID.","type":"string","context":["view","edit"],"readonly":true},"reviews_allowed":{"description":"Allow reviews.","type":"boolean","default":true,"context":["view","edit"]},"post_password":{"description":"Post password.","type":"string","context":["view","edit"]},"average_rating":{"description":"Reviews average rating.","type":"string","context":["view","edit"],"readonly":true},"rating_count":{"description":"Amount of reviews that the product have.","type":"integer","context":["view","edit"],"readonly":true},"related_ids":{"description":"List of related products IDs.","type":"array","items":{"type":"integer"},"context":["view","edit"],"readonly":true},"upsell_ids":{"description":"List of up-sell products IDs.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"cross_sell_ids":{"description":"List of cross-sell products IDs.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"parent_id":{"description":"Product parent ID.","type":"integer","context":["view","edit"]},"purchase_note":{"description":"Optional note to send the customer after purchase.","type":"string","context":["view","edit"]},"categories":{"description":"List of categories.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Category ID.","type":"integer","context":["view","edit"]},"name":{"description":"Category name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Category slug.","type":"string","context":["view","edit"],"readonly":true}}}},"brands":{"description":"List of brands.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Brand ID.","type":"integer","context":["view","edit"]},"name":{"description":"Brand name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Brand slug.","type":"string","context":["view","edit"],"readonly":true}}}},"tags":{"description":"List of tags.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Tag ID.","type":"integer","context":["view","edit"]},"name":{"description":"Tag name.","type":"string","context":["view","edit"],"readonly":true},"slug":{"description":"Tag slug.","type":"string","context":["view","edit"],"readonly":true}}}},"images":{"description":"List of images.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]}}}},"has_options":{"description":"Shows if the product needs to be configured before it can be bought.","type":"boolean","context":["view","edit"],"readonly":true},"attributes":{"description":"List of attributes.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"position":{"description":"Attribute position.","type":"integer","context":["view","edit"]},"visible":{"description":"Define if the attribute is visible on the \"Additional information\" tab in the product's page.","type":"boolean","default":false,"context":["view","edit"]},"variation":{"description":"Define if the attribute can be used as variation.","type":"boolean","default":false,"context":["view","edit"]},"options":{"description":"List of available term names of the attribute.","type":"array","items":{"type":"string"},"context":["view","edit"]}}}},"default_attributes":{"description":"Defaults variation attributes.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"variations":{"description":"List of variations IDs.","type":"array","context":["view","edit"],"items":{"type":"integer"},"readonly":true},"grouped_products":{"description":"List of grouped products ID.","type":"array","items":{"type":"integer"},"context":["view","edit"],"readonly":true},"menu_order":{"description":"Menu order, used to custom sort products.","type":"integer","context":["view","edit"]},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}},"permalink_template":{"description":"Permalink template for the product.","type":"string","context":["edit"],"readonly":true},"generated_slug":{"description":"Slug automatically generated from the product name.","type":"string","context":["edit"],"readonly":true}}},"products/{product_id}/variations":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->post_type"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"type":{"description":"Product type.","type":"string","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the variation was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the variation was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"description":{"description":"Variation description.","type":"string","context":["view","edit"]},"permalink":{"description":"Variation URL.","type":"string","format":"uri","context":["view","edit"],"readonly":true},"sku":{"description":"Stock Keeping Unit.","type":"string","context":["view","edit"]},"global_unique_id":{"description":"GTIN, UPC, EAN or ISBN.","type":"string","context":["view","edit"]},"price":{"description":"Current variation price.","type":"string","context":["view","edit"],"readonly":true},"regular_price":{"description":"Variation regular price.","type":"string","context":["view","edit"]},"sale_price":{"description":"Variation sale price.","type":"string","context":["view","edit"]},"date_on_sale_from":{"description":"Start date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_on_sale_from_gmt":{"description":"Start date of sale price, as GMT.","type":"date-time","context":["view","edit"]},"date_on_sale_to":{"description":"End date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_on_sale_to_gmt":{"description":"End date of sale price, in the site's timezone.","type":"date-time","context":["view","edit"]},"on_sale":{"description":"Shows if the variation is on sale.","type":"boolean","context":["view","edit"],"readonly":true},"status":{"description":"Variation status.","type":"string","default":"publish","enum":{"$php":"array_keys( get_post_statuses() )"},"context":["view","edit"]},"purchasable":{"description":"Shows if the variation can be bought.","type":"boolean","context":["view","edit"],"readonly":true},"virtual":{"description":"If the variation is virtual.","type":"boolean","default":false,"context":["view","edit"]},"downloadable":{"description":"If the variation is downloadable.","type":"boolean","default":false,"context":["view","edit"]},"downloads":{"description":"List of downloadable files.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"File ID.","type":"string","context":["view","edit"]},"name":{"description":"File name.","type":"string","context":["view","edit"]},"file":{"description":"File URL.","type":"string","context":["view","edit"]}}}},"download_limit":{"description":"Number of times downloadable files can be downloaded after purchase.","type":"integer","default":-1,"context":["view","edit"]},"download_expiry":{"description":"Number of days until access to downloadable files expires.","type":"integer","default":-1,"context":["view","edit"]},"tax_status":{"description":"Tax status.","type":"string","default":{"$php":"ProductTaxStatus::TAXABLE"},"enum":[{"$php":"ProductTaxStatus::TAXABLE"},{"$php":"ProductTaxStatus::SHIPPING"},{"$php":"ProductTaxStatus::NONE"}],"context":["view","edit"]},"tax_class":{"description":"Tax class.","type":"string","context":["view","edit"]},"manage_stock":{"description":"Stock management at variation level.","type":["boolean","string"],"default":false,"context":["view","edit"]},"stock_quantity":{"description":"Stock quantity.","type":"integer","context":["view","edit"]},"stock_status":{"description":"Controls the stock status of the product.","type":"string","default":{"$php":"ProductStockStatus::IN_STOCK"},"enum":{"$php":"array_keys( wc_get_product_stock_status_options() )"},"context":["view","edit"]},"backorders":{"description":"If managing stock, this controls if backorders are allowed.","type":"string","default":"no","enum":["no","notify","yes"],"context":["view","edit"]},"backorders_allowed":{"description":"Shows if backorders are allowed.","type":"boolean","context":["view","edit"],"readonly":true},"backordered":{"description":"Shows if the variation is on backordered.","type":"boolean","context":["view","edit"],"readonly":true},"low_stock_amount":{"description":"Low Stock amount for the variation.","type":["integer","null"],"context":["view","edit"]},"weight":{"description":{"$php":"sprintf( __( 'Variation weight (%s).', 'woocommerce' ), $weight_unit_label )"},"type":"string","context":["view","edit"]},"dimensions":{"description":"Variation dimensions.","type":"object","context":["view","edit"],"properties":{"length":{"description":{"$php":"sprintf( __( 'Variation length (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]},"width":{"description":{"$php":"sprintf( __( 'Variation width (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]},"height":{"description":{"$php":"sprintf( __( 'Variation height (%s).', 'woocommerce' ), $dimension_unit_label )"},"type":"string","context":["view","edit"]}}},"shipping_class":{"description":"Shipping class slug.","type":"string","context":["view","edit"]},"shipping_class_id":{"description":"Shipping class ID.","type":"string","context":["view","edit"],"readonly":true},"image":{"description":"Variation image data.","type":"object","context":["view","edit"],"properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]}}},"gallery_image_ids":{"description":"Variation gallery image IDs, excluding the featured image (which is set via \"image\"). Mirrors how galleries work on parent products.","type":"array","context":["view","edit"],"items":{"type":"integer","minimum":1}},"attributes":{"description":"List of attributes.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Attribute ID.","type":"integer","context":["view","edit"]},"name":{"description":"Attribute name.","type":"string","context":["view","edit"]},"option":{"description":"Selected attribute term name.","type":"string","context":["view","edit"]}}}},"menu_order":{"description":"Menu order, used to custom sort products.","type":"integer","context":["view","edit"]},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}},"parent_id":{"description":"Product parent ID.","type":"integer","context":["view","edit"],"readonly":true}}},"products/categories":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->taxonomy"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Category name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"parent":{"description":"The ID for the parent of the resource.","type":"integer","context":["view","edit"]},"description":{"description":"HTML description of the resource.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"display":{"description":"Category archive display type.","type":"string","default":"default","enum":["default","products","subcategories","both"],"context":["view","edit"]},"image":{"description":"Image data.","type":"object","context":["view","edit"],"properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]}}},"menu_order":{"description":"Menu order, used to custom sort the resource.","type":"integer","context":["view","edit"]},"count":{"description":"Number of published products for the resource.","type":"integer","context":["view","edit"],"readonly":true}}},"products/brands":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->taxonomy"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Category name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"parent":{"description":"The ID for the parent of the resource.","type":"integer","context":["view","edit"]},"description":{"description":"HTML description of the resource.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"display":{"description":"Category archive display type.","type":"string","default":"default","enum":["default","products","subcategories","both"],"context":["view","edit"]},"image":{"description":"Image data.","type":"object","context":["view","edit"],"properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"date_created":{"description":"The date the image was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the image was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the image was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the image was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]},"name":{"description":"Image name.","type":"string","context":["view","edit"]},"alt":{"description":"Image alternative text.","type":"string","context":["view","edit"]}}},"menu_order":{"description":"Menu order, used to custom sort the resource.","type":"integer","context":["view","edit"]},"count":{"description":"Number of published products for the resource.","type":"integer","context":["view","edit"],"readonly":true}}},"products/tags":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->taxonomy"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Tag name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"description":{"description":"HTML description of the resource.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"count":{"description":"Number of published products for the resource.","type":"integer","context":["view","edit"],"readonly":true}}},"products/attributes":{"$schema":"http://json-schema.org/draft-04/schema#","title":"product_attribute","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Attribute name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"type":{"description":"Type of attribute.","type":"string","default":"select","enum":{"$php":"array_keys( wc_get_attribute_types() )"},"context":["view","edit"]},"order_by":{"description":"Default sort order.","type":"string","default":"menu_order","enum":["menu_order","name","name_num","id"],"context":["view","edit"]},"has_archives":{"description":"Enable/Disable attribute archives.","type":"boolean","default":false,"context":["view","edit"]}}},"products/attributes/{attribute_id}/terms":{"$schema":"http://json-schema.org/draft-04/schema#","title":"product_attribute_term","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Term name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"description":{"description":"HTML description of the resource.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"menu_order":{"description":"Menu order, used to custom sort the resource.","type":"integer","context":["view","edit"]},"count":{"description":"Number of published products for the resource.","type":"integer","context":["view","edit"],"readonly":true}}},"products/shipping_classes":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->taxonomy"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Shipping class name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"slug":{"description":"An alphanumeric identifier for the resource unique to its type.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":[{"$php":"$this"},"sanitize_slug"]}},"description":{"description":"HTML description of the resource.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"count":{"description":"Number of published products for the resource.","type":"integer","context":["view","edit"],"readonly":true}}},"orders":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->post_type"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"parent_id":{"description":"Parent order ID.","type":"integer","context":["view","edit"]},"number":{"description":"Order number.","type":"string","context":["view","edit"],"readonly":true},"order_key":{"description":"Order key.","type":"string","context":["view","edit"],"readonly":true},"created_via":{"description":"Shows where the order was created.","type":"string","context":["view","edit"],"readonly":false},"version":{"description":"Version of WooCommerce which last updated the order.","type":"string","context":["view","edit"],"readonly":true},"status":{"description":"Order status.","type":"string","default":{"$php":"OrderStatus::PENDING"},"enum":{"$php":"$this->get_order_statuses()"},"context":["view","edit"]},"currency":{"description":"Currency the order was created with, in ISO format.","type":"string","default":{"$php":"get_woocommerce_currency()"},"enum":{"$php":"array_keys( get_woocommerce_currencies() )"},"context":["view","edit"]},"date_created":{"description":"The date the order was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the order was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the order was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the order was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"discount_total":{"description":"Total discount amount for the order.","type":"string","context":["view","edit"],"readonly":true},"discount_tax":{"description":"Total discount tax amount for the order.","type":"string","context":["view","edit"],"readonly":true},"shipping_total":{"description":"Total shipping amount for the order.","type":"string","context":["view","edit"],"readonly":true},"shipping_tax":{"description":"Total shipping tax amount for the order.","type":"string","context":["view","edit"],"readonly":true},"cart_tax":{"description":"Sum of line item taxes only.","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Grand total, including tax.","type":"string","context":["view","edit"],"readonly":true},"total_tax":{"description":"Sum of all taxes.","type":"string","context":["view","edit"],"readonly":true},"prices_include_tax":{"description":"Whether prices included tax during checkout.","type":"boolean","context":["view","edit"],"readonly":true},"customer_id":{"description":"User ID who owns the order. 0 for guests.","type":"integer","default":0,"context":["view","edit"]},"customer_ip_address":{"description":"Customer's IP address.","type":"string","context":["view","edit"],"readonly":true},"customer_user_agent":{"description":"User agent of the customer.","type":"string","context":["view","edit"],"readonly":true},"customer_note":{"description":"Note left by customer during checkout.","type":"string","context":["view","edit"]},"billing":{"description":"Billing address.","type":"object","context":["view","edit"],"properties":{"first_name":{"description":"First name.","type":"string","context":["view","edit"]},"last_name":{"description":"Last name.","type":"string","context":["view","edit"]},"company":{"description":"Company name.","type":"string","context":["view","edit"]},"address_1":{"description":"Address line 1","type":"string","context":["view","edit"]},"address_2":{"description":"Address line 2","type":"string","context":["view","edit"]},"city":{"description":"City name.","type":"string","context":["view","edit"]},"state":{"description":"ISO code or name of the state, province or district.","type":"string","context":["view","edit"]},"postcode":{"description":"Postal code.","type":"string","context":["view","edit"]},"country":{"description":"Country code in ISO 3166-1 alpha-2 format.","type":"string","context":["view","edit"]},"email":{"description":"Email address.","type":["string","null"],"format":"email","context":["view","edit"]},"phone":{"description":"Phone number.","type":"string","context":["view","edit"]}}},"shipping":{"description":"Shipping address.","type":"object","context":["view","edit"],"properties":{"first_name":{"description":"First name.","type":"string","context":["view","edit"]},"last_name":{"description":"Last name.","type":"string","context":["view","edit"]},"company":{"description":"Company name.","type":"string","context":["view","edit"]},"address_1":{"description":"Address line 1","type":"string","context":["view","edit"]},"address_2":{"description":"Address line 2","type":"string","context":["view","edit"]},"city":{"description":"City name.","type":"string","context":["view","edit"]},"state":{"description":"ISO code or name of the state, province or district.","type":"string","context":["view","edit"]},"postcode":{"description":"Postal code.","type":"string","context":["view","edit"]},"country":{"description":"Country code in ISO 3166-1 alpha-2 format.","type":"string","context":["view","edit"]}}},"payment_method":{"description":"Payment method ID.","type":"string","context":["view","edit"]},"payment_method_title":{"description":"Payment method title.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"transaction_id":{"description":"Unique transaction ID.","type":"string","context":["view","edit"]},"date_paid":{"description":"The date the order was paid, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_paid_gmt":{"description":"The date the order was paid, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_completed":{"description":"The date the order was completed, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_completed_gmt":{"description":"The date the order was completed, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"cart_hash":{"description":"MD5 hash of cart items to ensure orders are not modified.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]}}}},"line_items":{"description":"Line items data.","type":"array","context":["view","edit"],"arg_options":{"validate_callback":[{"$php":"OrderLineMetaValidator::class"},"validate_request_arg"]},"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"mixed","context":["view","edit"]},"parent_name":{"description":"Parent product name if the product is a variation.","type":["string","null"],"context":["view","edit"]},"product_id":{"description":"Product ID.","type":"mixed","context":["view","edit"]},"variation_id":{"description":"Variation ID, if applicable.","type":"integer","context":["view","edit"]},"quantity":{"description":"Quantity ordered.","type":"integer","context":["view","edit"]},"tax_class":{"description":"Tax class of product.","type":"string","context":["view","edit"]},"subtotal":{"description":"Line subtotal, excluding tax (before discounts).","type":"string","context":["view","edit"]},"subtotal_tax":{"description":"Line subtotal tax (before discounts).","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Line total, excluding tax (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"]},"total":{"description":"Tax total.","type":"string","context":["view","edit"]},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"]}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]},"display_key":{"description":"Meta key for UI display.","type":"string","context":["view","edit"],"readonly":true},"display_value":{"description":"Meta value for UI display. May be a string or, when mirroring a complex meta value, an array or object.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"],"readonly":true}}}},"sku":{"description":"Product SKU.","type":"string","context":["view","edit"],"readonly":true},"global_unique_id":{"description":"GTIN, UPC, EAN or ISBN.","type":"string","context":["view","edit"],"readonly":true},"price":{"description":"Product price.","type":"number","context":["view","edit"],"readonly":true},"image":{"description":"Properties of the main product image.","type":"object","context":["view","edit"],"readonly":true,"properties":{"id":{"description":"Image ID.","type":"integer","context":["view","edit"]},"src":{"description":"Image URL.","type":"string","format":"uri","context":["view","edit"]}}}}}},"tax_lines":{"description":"Tax lines data.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"rate_code":{"description":"Tax rate code.","type":"string","context":["view","edit"],"readonly":true},"rate_id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"label":{"description":"Tax rate label.","type":"string","context":["view","edit"],"readonly":true},"compound":{"description":"Show if is a compound tax rate.","type":"boolean","context":["view","edit"],"readonly":true},"tax_total":{"description":"Tax total (not including shipping taxes).","type":"string","context":["view","edit"],"readonly":true},"shipping_tax_total":{"description":"Shipping tax total.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]}}}}}}},"shipping_lines":{"description":"Shipping lines data.","type":"array","context":["view","edit"],"arg_options":{"validate_callback":[{"$php":"OrderLineMetaValidator::class"},"validate_request_arg"]},"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"method_title":{"description":"Shipping method name.","type":"mixed","context":["view","edit"]},"method_id":{"description":"Shipping method ID.","type":"mixed","context":["view","edit"]},"instance_id":{"description":"Shipping instance ID.","type":"string","context":["view","edit"]},"total":{"description":"Shipping total, excluding tax.","type":"string","context":["view","edit"]},"total_tax":{"description":"Shipping total tax.","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]}}}}}}},"fee_lines":{"description":"Fee lines data.","type":"array","context":["view","edit"],"arg_options":{"validate_callback":[{"$php":"OrderLineMetaValidator::class"},"validate_request_arg"]},"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Fee name.","type":"mixed","context":["view","edit"]},"tax_class":{"description":"Tax class of fee.","type":"string","context":["view","edit"]},"tax_status":{"description":"Tax status of fee.","type":"string","context":["view","edit"],"enum":["taxable","none"]},"total":{"description":"Fee total, excluding tax.","type":"string","context":["view","edit"]},"total_tax":{"description":"Fee total tax.","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]}}}}}}},"coupon_lines":{"description":"Coupons line data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"code":{"description":"Coupon code.","type":"mixed","context":["view","edit"]},"discount":{"description":"Discount total.","type":"string","context":["view","edit"],"readonly":true},"discount_tax":{"description":"Discount total tax.","type":"string","context":["view","edit"],"readonly":true},"discount_type":{"description":"Discount type.","type":"string","context":["view"],"readonly":true},"nominal_amount":{"description":"Discount amount as defined in the coupon (absolute value or a percent, depending on the discount type).","type":"number","context":["view"],"readonly":true},"free_shipping":{"description":"Whether the coupon grants free shipping or not.","type":"boolean","context":["view"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":["null","object","string","number","boolean","integer","array"],"context":["view","edit"]}}}}}}},"refunds":{"description":"List of refunds.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Refund ID.","type":"integer","context":["view","edit"],"readonly":true},"reason":{"description":"Refund reason.","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Refund total, including tax.","type":"string","context":["view","edit"],"readonly":true},"total_tax":{"description":"Refund total tax.","type":"string","context":["view","edit"],"readonly":true}}}},"payment_url":{"description":"Order payment URL.","type":"string","context":["view","edit"],"readonly":true},"set_paid":{"description":"Define if the order is paid. It will set the status to processing and reduce stock items.","type":"boolean","default":false,"context":["edit"]},"is_editable":{"description":"Whether an order can be edited.","type":"boolean","context":["view","edit"],"readonly":true},"needs_payment":{"description":"Whether an order needs payment, based on status and order total.","type":"boolean","context":["view","edit"],"readonly":true},"needs_processing":{"description":"Whether an order needs processing before it can be completed.","type":"boolean","context":["view","edit"],"readonly":true},"manual_update":{"default":false,"description":"Set the action as manual so that the order note registers as \"added by user\".","type":"boolean","context":["edit"]}}},"orders/{order_id}/notes":{"$schema":"http://json-schema.org/draft-04/schema#","title":"order_note","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"author":{"description":"Order note author.","type":"string","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the order note was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the order note was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"note":{"description":"Order note content.","type":"string","context":["view","edit"]},"customer_note":{"description":"If true, the note will be shown to customers and they will be notified. If false, the note will be for admin reference only.","type":"boolean","default":false,"context":["view","edit"]},"added_by_user":{"description":"If true, this note will be attributed to the current user. If false, the note will be attributed to the system.","type":"boolean","default":false,"context":["edit"]}}},"orders/{order_id}/refunds":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->post_type"},"type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the order refund was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the order refund was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"amount":{"description":"Refund amount.","type":"string","context":["view","edit"]},"reason":{"description":"Reason for refund.","type":"string","context":["view","edit"]},"refunded_by":{"description":"User ID of user who created the refund.","type":"integer","context":["view","edit"]},"refunded_payment":{"description":"If the payment was refunded via the API.","type":"boolean","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}},"line_items":{"description":"Line items data.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Product name.","type":"mixed","context":["view","edit"],"readonly":true},"product_id":{"description":"Product ID.","type":"mixed","context":["view","edit"],"readonly":true},"variation_id":{"description":"Variation ID, if applicable.","type":"integer","context":["view","edit"],"readonly":true},"quantity":{"description":"Quantity ordered.","type":"integer","context":["view","edit"],"readonly":true},"tax_class":{"description":"Tax class of product.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Line subtotal (before discounts).","type":"string","context":["view","edit"],"readonly":true},"subtotal_tax":{"description":"Line subtotal tax (before discounts).","type":"string","context":["view","edit"],"readonly":true},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"],"readonly":true},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"],"readonly":true},"refund_total":{"description":"Amount that will be refunded for this tax.","type":"number","context":["edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"],"readonly":true},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"],"readonly":true}}}},"sku":{"description":"Product SKU.","type":"string","context":["view","edit"],"readonly":true},"price":{"description":"Product price.","type":"number","context":["view","edit"],"readonly":true},"refund_total":{"description":"Amount that will be refunded for this line item (excluding taxes).","type":"number","context":["edit"],"readonly":true}}}},"tax_lines":{"description":"Tax lines data.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"rate_code":{"description":"Tax rate code.","type":"string","context":["view","edit"],"readonly":true},"rate_id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"label":{"description":"Tax rate label.","type":"string","context":["view","edit"],"readonly":true},"compound":{"description":"Show if is a compound tax rate.","type":"boolean","context":["view","edit"],"readonly":true},"tax_total":{"description":"Tax total (not including shipping taxes).","type":"string","context":["view","edit"],"readonly":true},"shipping_tax_total":{"description":"Shipping tax total.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}}}}},"shipping_lines":{"description":"Shipping lines data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"method_title":{"description":"Shipping method name.","type":"mixed","context":["view","edit"]},"method_id":{"description":"Shipping method ID.","type":"mixed","context":["view","edit"]},"instance_id":{"description":"Shipping instance ID.","type":"string","context":["view","edit"]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}}}}},"fee_lines":{"description":"Fee lines data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Item ID.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Fee name.","type":"mixed","context":["view","edit"]},"tax_class":{"description":"Tax class of fee.","type":"string","context":["view","edit"]},"tax_status":{"description":"Tax status of fee.","type":"string","context":["view","edit"],"enum":[{"$php":"ProductTaxStatus::TAXABLE"},{"$php":"ProductTaxStatus::NONE"}]},"total":{"description":"Line total (after discounts).","type":"string","context":["view","edit"]},"total_tax":{"description":"Line total tax (after discounts).","type":"string","context":["view","edit"],"readonly":true},"taxes":{"description":"Line taxes.","type":"array","context":["view","edit"],"readonly":true,"items":{"type":"object","properties":{"id":{"description":"Tax rate ID.","type":"integer","context":["view","edit"],"readonly":true},"total":{"description":"Tax total.","type":"string","context":["view","edit"],"readonly":true},"subtotal":{"description":"Tax subtotal.","type":"string","context":["view","edit"],"readonly":true}}}},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}}}}},"api_refund":{"description":"When true, the payment gateway API is used to generate the refund.","type":"boolean","context":["edit"],"default":true},"api_restock":{"description":"When true, refunded items are restocked.","type":"boolean","context":["edit"],"default":true},"compute_totals":{"description":"When true, the server computes per-line refund amounts from quantities using the order's stored prices and taxes, validating the request against the order's refund history. Defaults to false, which preserves the pre-existing behavior of this endpoint.","type":"boolean","context":["edit"],"default":false}}},"customers":{"$schema":"http://json-schema.org/draft-04/schema#","title":"customer","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the customer was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the customer was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the customer was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the customer was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"email":{"description":"The email address for the customer.","type":"string","format":"email","context":["view","edit"]},"first_name":{"description":"Customer first name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"last_name":{"description":"Customer last name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"role":{"description":"Customer role.","type":"string","context":["view","edit"],"readonly":true},"username":{"description":"Customer login name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_user"}},"password":{"description":"Customer password.","type":"string","context":["edit"]},"billing":{"description":"List of billing address data.","type":"object","context":["view","edit"],"properties":{"first_name":{"description":"First name.","type":"string","context":["view","edit"]},"last_name":{"description":"Last name.","type":"string","context":["view","edit"]},"company":{"description":"Company name.","type":"string","context":["view","edit"]},"address_1":{"description":"Address line 1","type":"string","context":["view","edit"]},"address_2":{"description":"Address line 2","type":"string","context":["view","edit"]},"city":{"description":"City name.","type":"string","context":["view","edit"]},"state":{"description":"ISO code or name of the state, province or district.","type":"string","context":["view","edit"]},"postcode":{"description":"Postal code.","type":"string","context":["view","edit"]},"country":{"description":"ISO code of the country.","type":"string","context":["view","edit"]},"email":{"description":"Email address.","type":"string","format":"email","context":["view","edit"]},"phone":{"description":"Phone number.","type":"string","context":["view","edit"]}}},"shipping":{"description":"List of shipping address data.","type":"object","context":["view","edit"],"properties":{"first_name":{"description":"First name.","type":"string","context":["view","edit"]},"last_name":{"description":"Last name.","type":"string","context":["view","edit"]},"company":{"description":"Company name.","type":"string","context":["view","edit"]},"address_1":{"description":"Address line 1","type":"string","context":["view","edit"]},"address_2":{"description":"Address line 2","type":"string","context":["view","edit"]},"city":{"description":"City name.","type":"string","context":["view","edit"]},"state":{"description":"ISO code or name of the state, province or district.","type":"string","context":["view","edit"]},"postcode":{"description":"Postal code.","type":"string","context":["view","edit"]},"country":{"description":"ISO code of the country.","type":"string","context":["view","edit"]},"phone":{"description":"Phone number.","type":"string","context":["view","edit"]}}},"is_paying_customer":{"description":"Is the customer a paying customer?","type":"bool","context":["view","edit"],"readonly":true},"avatar_url":{"description":"Avatar URL.","type":"string","context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}}}},"coupons":{"$schema":"http://json-schema.org/draft-04/schema#","title":{"$php":"$this->post_type"},"type":"object","properties":{"id":{"description":"Unique identifier for the object.","type":"integer","context":["view","edit"],"readonly":true},"code":{"description":"Coupon code.","type":"string","context":["view","edit"]},"amount":{"description":"The amount of discount. Should always be numeric, even if setting a percentage.","type":["number","string"],"context":["view","edit"]},"status":{"description":"The status of the coupon. Should always be draft, published, or pending review","type":"string","context":["view","edit"]},"date_created":{"description":"The date the coupon was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the coupon was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified":{"description":"The date the coupon was last modified, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_modified_gmt":{"description":"The date the coupon was last modified, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"discount_type":{"description":"Determines the type of discount that will be applied.","type":"string","default":"fixed_cart","enum":{"$php":"array_keys( wc_get_coupon_types() )"},"context":["view","edit"]},"description":{"description":"Coupon description.","type":"string","context":["view","edit"]},"date_expires":{"description":"The date the coupon expires, in the site's timezone.","type":"date-time","context":["view","edit"]},"date_expires_gmt":{"description":"The date the coupon expires, as GMT.","type":"date-time","context":["view","edit"]},"usage_count":{"description":"Number of times the coupon has been used already.","type":"integer","context":["view","edit"],"readonly":true},"individual_use":{"description":"If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.","type":"boolean","default":false,"context":["view","edit"]},"product_ids":{"description":"List of product IDs the coupon can be used on.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"excluded_product_ids":{"description":"List of product IDs the coupon cannot be used on.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"usage_limit":{"description":"How many times the coupon can be used in total.","type":"integer","context":["view","edit"]},"usage_limit_per_user":{"description":"How many times the coupon can be used per customer.","type":"integer","context":["view","edit"]},"limit_usage_to_x_items":{"description":"Max number of items in the cart the coupon can be applied to.","type":"integer","context":["view","edit"]},"free_shipping":{"description":"If true and if the free shipping method requires a coupon, this coupon will enable free shipping.","type":"boolean","default":false,"context":["view","edit"]},"product_categories":{"description":"List of category IDs the coupon applies to.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"excluded_product_categories":{"description":"List of category IDs the coupon does not apply to.","type":"array","items":{"type":"integer"},"context":["view","edit"]},"exclude_sale_items":{"description":"If true, this coupon will not be applied to items that have sale prices.","type":"boolean","default":false,"context":["view","edit"]},"minimum_amount":{"description":"Minimum order amount that needs to be in the cart before coupon applies.","type":["number","string"],"context":["view","edit"]},"maximum_amount":{"description":"Maximum order amount allowed when using the coupon.","type":["number","string"],"context":["view","edit"]},"email_restrictions":{"description":"List of email addresses that can use this coupon.","type":"array","items":{"type":"string"},"context":["view","edit"]},"used_by":{"description":"List of user IDs (or guest email addresses) that have used the coupon.","type":"array","items":{"type":"integer"},"context":["view","edit"],"readonly":true},"meta_data":{"description":"Meta data.","type":"array","context":["view","edit"],"items":{"type":"object","properties":{"id":{"description":"Meta ID.","type":"integer","context":["view","edit"],"readonly":true},"key":{"description":"Meta key.","type":"string","context":["view","edit"]},"value":{"description":"Meta value.","type":"mixed","context":["view","edit"]}}}}}},"products/reviews":{"$schema":"http://json-schema.org/draft-04/schema#","title":"product_review","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"date_created":{"description":"The date the review was created, in the site's timezone.","type":"date-time","context":["view","edit"],"readonly":true},"date_created_gmt":{"description":"The date the review was created, as GMT.","type":"date-time","context":["view","edit"],"readonly":true},"product_id":{"description":"Unique identifier for the product that the review belongs to.","type":"integer","context":["view","edit"]},"product_name":{"description":"Product name.","type":"string","context":["view","edit"]},"product_permalink":{"description":"Product URL.","type":"string","format":"uri","context":["view","edit"],"readonly":true},"status":{"description":"Status of the review.","type":"string","default":"approved","enum":["approved","hold","spam","unspam","trash","untrash"],"context":["view","edit"]},"reviewer":{"description":"Reviewer name.","type":"string","context":["view","edit"]},"reviewer_email":{"description":"Reviewer email.","type":"string","format":"email","context":["view","edit"]},"review":{"description":"The content of the review.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"wp_filter_post_kses"}},"rating":{"description":"Review rating (0 to 5).","type":"integer","context":["view","edit"]},"verified":{"description":"Shows if the reviewer bought the product or not.","type":"boolean","context":["view","edit"],"readonly":true},"reviewer_avatar_urls":{"description":"Avatar URLs for the object reviewer.","type":"object","context":["view","edit"],"readonly":true,"properties":{"$php":"$avatar_properties"}}}},"taxes":{"$schema":"http://json-schema.org/draft-04/schema#","title":"tax","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"country":{"description":"Country ISO 3166 code.","type":"string","context":["view","edit"]},"state":{"description":"State code.","type":"string","context":["view","edit"]},"postcode":{"description":"Postcode/ZIP, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'postcodes' should be used instead.","type":"string","context":["view","edit"]},"city":{"description":"City name, it doesn't support multiple values. Deprecated as of WooCommerce 5.3, 'cities' should be used instead.","type":"string","context":["view","edit"]},"rate":{"description":"Tax rate.","type":"string","context":["view","edit"]},"name":{"description":"Tax rate name.","type":"string","context":["view","edit"]},"priority":{"description":"Tax priority.","type":"integer","default":1,"context":["view","edit"]},"compound":{"description":"Whether or not this is a compound rate.","type":"boolean","default":false,"context":["view","edit"]},"shipping":{"description":"Whether or not this tax rate also gets applied to shipping.","type":"boolean","default":true,"context":["view","edit"]},"order":{"description":"Indicates the order that will appear in queries.","type":"integer","context":["view","edit"]},"class":{"description":"Tax class.","type":"string","default":"standard","enum":{"$php":"array_merge( array( 'standard' ), WC_Tax::get_tax_class_slugs() )"},"context":["view","edit"]},"postcodes":{"description":"List of postcodes / ZIPs. Introduced in WooCommerce 5.3.","type":"array","items":{"type":"string"},"context":["view","edit"]},"cities":{"description":"List of city names. Introduced in WooCommerce 5.3.","type":"array","items":{"type":"string"},"context":["view","edit"]}}},"taxes/classes":{"$schema":"http://json-schema.org/draft-04/schema#","title":"tax_class","type":"object","properties":{"slug":{"description":"Unique identifier for the resource.","type":"string","context":["view","edit"],"readonly":true},"name":{"description":"Tax class name.","type":"string","context":["view","edit"],"required":true,"arg_options":{"sanitize_callback":"sanitize_text_field"}}}},"shipping/zones":{"$schema":"http://json-schema.org/draft-04/schema#","title":"shipping_zone","type":"object","properties":{"id":{"description":"Unique identifier for the resource.","type":"integer","context":["view","edit"],"readonly":true},"name":{"description":"Shipping zone name.","type":"string","context":["view","edit"],"arg_options":{"sanitize_callback":"sanitize_text_field"}},"order":{"description":"Shipping zone order.","type":"integer","context":["view","edit"]}}},"shipping_methods":{"$schema":"http://json-schema.org/draft-04/schema#","title":"shipping_method","type":"object","properties":{"id":{"description":"Method ID.","type":"string","context":["view"],"readonly":true},"title":{"description":"Shipping method title.","type":"string","context":["view"],"readonly":true},"description":{"description":"Shipping method description.","type":"string","context":["view"],"readonly":true}}},"shipping/zones/{zone_id}/methods":{"$schema":"http://json-schema.org/draft-04/schema#","title":"shipping_zone_method","type":"object","properties":{"id":{"description":"Shipping method instance ID.","type":"integer","context":["view","edit"],"readonly":true},"instance_id":{"description":"Shipping method instance ID.","type":"integer","context":["view","edit"],"readonly":true},"title":{"description":"Shipping method customer facing title.","type":"string","context":["view","edit"],"readonly":true},"order":{"description":"Shipping method sort order.","type":"integer","context":["view","edit"]},"enabled":{"description":"Shipping method enabled status.","type":"boolean","context":["view","edit"]},"method_id":{"description":"Shipping method ID.","type":"string","context":["view","edit"],"readonly":true},"method_title":{"description":"Shipping method title.","type":"string","context":["view","edit"],"readonly":true},"method_description":{"description":"Shipping method description.","type":"string","context":["view","edit"],"readonly":true},"settings":{"description":"Shipping method settings.","type":"object","context":["view","edit"],"properties":{"id":{"description":"A unique identifier for the setting.","type":"string","context":["view","edit"],"readonly":true},"label":{"description":"A human readable label for the setting used in interfaces.","type":"string","context":["view","edit"],"readonly":true},"description":{"description":"A human readable description for the setting used in interfaces.","type":"string","context":["view","edit"],"readonly":true},"type":{"description":"Type of setting.","type":"string","context":["view","edit"],"enum":["text","email","number","color","password","textarea","select","multiselect","radio","image_width","checkbox"],"readonly":true},"value":{"description":"Setting value.","type":"string","context":["view","edit"]},"default":{"description":"Default value for the setting.","type":"string","context":["view","edit"],"readonly":true},"tip":{"description":"Additional help text shown to the user about the setting.","type":"string","context":["view","edit"],"readonly":true},"placeholder":{"description":"Placeholder text to be displayed in text inputs.","type":"string","context":["view","edit"],"readonly":true}}}}},"shipping/zones/{id}/locations":{"$schema":"http://json-schema.org/draft-04/schema#","title":"shipping_zone_location","type":"object","properties":{"code":{"description":"Shipping zone location code.","type":"string","context":["view","edit"]},"type":{"description":"Shipping zone location type.","type":"string","default":"country","enum":["postcode","state","country","continent"],"context":["view","edit"]}}}}}