{ "name": "Double Happiness Asia Food Hong Kong", "description": "Natural Baby Food Provider in Hong Kong", "url": "https:\/\/doublehappinessasiafood.com\/hk", "home": "https:\/\/doublehappinessasiafood.com\/hk\/zh", "gmt_offset": 8, "timezone_string": "Asia\/Hong_Kong", "page_for_posts": 0, "page_on_front": 5523, "show_on_front": "page", "namespaces": [ "wp\/v2", "oembed\/1.0", "wc\/v3", "wc\/v1", "code-snippets\/v1", "klaviyo\/v1", "leadin\/v1", "redirection\/v1", "jetpack\/v4", "wc-admin", "wc-analytics", "wc\/store", "wc\/store\/v1", "wc\/private", "wp-rocket\/v1", "wc\/v2", "awb\/instagram", "awb", "wc-admin-email", "wc-telemetry", "wccom-site\/v3", "ctxfeed\/v1", "wp-site-health\/v1", "wp-block-editor\/v1" ], "authentication": { "application-passwords": { "endpoints": { "authorization": "https:\/\/doublehappinessasiafood.com\/hk\/wp-admin\/authorize-application.php" } } }, "routes": { "\/": { "namespace": "", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/" } ] } }, "\/batch\/v1": { "namespace": "", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "validation": { "type": "string", "enum": [ "require-all-validate", "normal" ], "default": "normal", "required": false }, "requests": { "type": "array", "maxItems": 25, "items": { "type": "object", "properties": { "method": { "type": "string", "enum": [ "POST", "PUT", "PATCH", "DELETE" ], "default": "POST" }, "path": { "type": "string", "required": true }, "body": { "type": "object", "properties": [], "additionalProperties": true }, "headers": { "type": "object", "properties": [], "additionalProperties": { "type": [ "string", "array" ], "items": { "type": "string" } } } } }, "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/batch\/v1" } ] } }, "\/wp\/v2": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wp\/v2", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2" } ] } }, "\/wp\/v2\/gamipress-user-earnings": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "user_earning_id", "enum": [ "user_earning_id", "title", "user_id", "post_id", "post_type", "points", "points_type", "date", "include", "relevance" ], "required": false }, "user_id": { "description": "Limit result set to earnings assigned to specific users.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "post_id": { "description": "Limit result set to earnings assigned to specific posts.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "post_type": { "description": "Limit result set to earnings assigned to specific post types.", "type": "array", "items": { "type": "string" }, "default": [], "required": false }, "points_type": { "description": "Limit result set to earnings assigned to specific points types.", "type": "array", "items": { "type": "string" }, "default": [], "required": false }, "force_types": { "description": "Setting it to true will force to limit results of the same post_type and points_type.", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "Ensure result set excludes specific IDs.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "Limit result set to specific IDs.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "after": { "description": "Limit response to user earnings after a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "before": { "description": "Limit response to user earnings before a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false } } }, { "methods": [ "POST" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "title": { "description": "The title for the object.", "type": "string", "required": false }, "user_id": { "description": "The ID for the user of the object.", "type": "integer", "required": false }, "post_id": { "description": "The ID for the post of the object.", "type": "integer", "required": false }, "post_type": { "description": "The type for the post of the object.", "type": "string", "required": false }, "points": { "description": "The points amount of the object.", "type": "integer", "required": false }, "points_type": { "description": "The type for the points amount of the object.", "type": "string", "required": false }, "date": { "description": "The date the object was created, in the site's timezone.", "type": "string", "format": "date-time", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/gamipress-user-earnings" } ] } }, "\/wp\/v2\/gamipress-user-earnings\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "title": { "description": "The title for the object.", "type": "string", "required": false }, "user_id": { "description": "The ID for the user of the object.", "type": "integer", "required": false }, "post_id": { "description": "The ID for the post of the object.", "type": "integer", "required": false }, "post_type": { "description": "The type for the post of the object.", "type": "string", "required": false }, "points": { "description": "The points amount of the object.", "type": "integer", "required": false }, "points_type": { "description": "The type for the points amount of the object.", "type": "string", "required": false }, "date": { "description": "The date the object was created, in the site's timezone.", "type": "string", "format": "date-time", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false } } } ] }, "\/wp\/v2\/gamipress-logs": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "log_id", "enum": [ "log_id", "title", "type", "trigger_type", "access", "user_id", "points", "points_type", "date", "include", "relevance" ], "required": false }, "type": { "description": "Limit result set to logs with a specific type.", "type": "string", "default": "", "enum": [ "", "event_trigger", "achievement_earn", "achievement_award", "points_earn", "points_deduct", "points_expend", "points_award", "points_revoke", "rank_earn", "rank_award" ], "required": false }, "trigger_type": { "description": "Limit result set to logs with a specific trigger.", "type": "array", "items": { "type": "string" }, "default": [], "required": false }, "access": { "description": "Limit result set to logs with a specific access.", "type": "string", "default": "", "enum": [ "", "public", "private" ], "required": false }, "user_id": { "description": "Limit result set to logs assigned to specific users.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "exclude": { "description": "Ensure result set excludes specific IDs.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "Limit result set to specific IDs.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "after": { "description": "Limit response to logs after a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "before": { "description": "Limit response to logs before a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false } } }, { "methods": [ "POST" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "title": { "description": "The title for the object.", "type": "string", "required": false }, "type": { "description": "Type of log for the object.", "type": "string", "required": false }, "trigger_type": { "description": "Trigger of log for the object.", "type": "string", "required": false }, "access": { "description": "Access of log for the object.", "type": "string", "required": false }, "user_id": { "description": "The ID for the user of the object.", "type": "integer", "required": false }, "date": { "description": "The date the object was created, in the site's timezone.", "type": "string", "format": "date-time", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/gamipress-logs" } ] } }, "\/wp\/v2\/gamipress-logs\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "title": { "description": "The title for the object.", "type": "string", "required": false }, "type": { "description": "Type of log for the object.", "type": "string", "required": false }, "trigger_type": { "description": "Trigger of log for the object.", "type": "string", "required": false }, "access": { "description": "Access of log for the object.", "type": "string", "required": false }, "user_id": { "description": "The ID for the user of the object.", "type": "integer", "required": false }, "date": { "description": "The date the object was created, in the site's timezone.", "type": "string", "format": "date-time", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u7269\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false } } } ] }, "\/oembed\/1.0": { "namespace": "oembed\/1.0", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "oembed\/1.0", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/oembed\/1.0" } ] } }, "\/oembed\/1.0\/embed": { "namespace": "oembed\/1.0", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "url": { "description": "\u7528\u65bc\u64f7\u53d6 oEmbed \u8cc7\u6599\u7684\u8cc7\u6e90\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": true }, "format": { "default": "json", "required": false }, "maxwidth": { "default": 600, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/oembed\/1.0\/embed" } ] } }, "\/oembed\/1.0\/proxy": { "namespace": "oembed\/1.0", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "url": { "description": "\u7528\u65bc\u64f7\u53d6 oEmbed \u8cc7\u6599\u7684\u8cc7\u6e90\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": true }, "format": { "description": "\u8981\u4f7f\u7528\u7684 oEmbed \u683c\u5f0f\u3002", "type": "string", "default": "json", "enum": [ "json", "xml" ], "required": false }, "maxwidth": { "description": "\u5167\u5d4c\u6846\u67b6\u6700\u5927\u5bec\u5ea6 (\u55ae\u4f4d\u70ba px)\u3002", "type": "integer", "default": 600, "required": false }, "maxheight": { "description": "\u5167\u5d4c\u6846\u67b6\u6700\u5927\u9ad8\u5ea6 (\u55ae\u4f4d\u70ba px)\u3002", "type": "integer", "required": false }, "discover": { "description": "\u662f\u5426\u57f7\u884c\u672a\u6279\u51c6\u7684\u63d0\u4f9b\u8005\u7684 oEmbed \u63a2\u7d22\u8981\u6c42\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/oembed\/1.0\/proxy" } ] } }, "\/wc\/v3": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/v3", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3" } ] } }, "\/wc\/v3\/marketplace\/featured": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/featured" } ] } }, "\/wc\/v1": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1" } ] } }, "\/wc\/v1\/marketplace\/product-preview": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/marketplace\/product-preview" } ] } }, "\/wc\/v3\/marketplace\/refresh": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/refresh" } ] } }, "\/wc\/v3\/marketplace\/subscriptions": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions" } ] } }, "\/wc\/v3\/marketplace\/subscriptions\/connect": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions\/connect" } ] } }, "\/wc\/v3\/marketplace\/subscriptions\/activate-plugin": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions\/activate-plugin" } ] } }, "\/wc\/v3\/marketplace\/subscriptions\/disconnect": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions\/disconnect" } ] } }, "\/wc\/v3\/marketplace\/subscriptions\/activate": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions\/activate" } ] } }, "\/wc\/v3\/marketplace\/subscriptions\/install-url": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/subscriptions\/install-url" } ] } }, "\/wc\/v3\/marketplace\/create-order": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_id": { "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/marketplace\/create-order" } ] } }, "\/code-snippets\/v1": { "namespace": "code-snippets\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "code-snippets\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/code-snippets\/v1" } ] } }, "\/code-snippets\/v1\/snippets": { "namespace": "code-snippets\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": { "name": { "description": "Descriptive title for the snippet.", "type": "string", "required": false }, "desc": { "description": "Descriptive text associated with snippet.", "type": "string", "required": false }, "code": { "description": "Executable snippet code.", "type": "string", "required": false }, "tags": { "description": "List of tag categories the snippet belongs to.", "type": "array", "required": false }, "scope": { "description": "Context in which the snippet is executable.", "type": "string", "required": false }, "active": { "description": "Snippet activation status.", "type": "boolean", "required": false }, "priority": { "description": "Relative priority in which the snippet is executed.", "type": "integer", "required": false }, "network": { "description": "Whether the snippet is network-wide instead of site-wide.", "type": "boolean", "required": false }, "shared_network": { "description": "If a network snippet, whether can be activated on discrete sites instead of network-wide.", "type": "boolean", "required": false }, "modified": { "description": "Date and time when the snippet was last modified, in ISO format.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/code-snippets\/v1\/snippets" } ] } }, "\/code-snippets\/v1\/snippets\/(?P[\\d]+)": { "namespace": "code-snippets\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "Descriptive title for the snippet.", "type": "string", "required": false }, "desc": { "description": "Descriptive text associated with snippet.", "type": "string", "required": false }, "code": { "description": "Executable snippet code.", "type": "string", "required": false }, "tags": { "description": "List of tag categories the snippet belongs to.", "type": "array", "required": false }, "scope": { "description": "Context in which the snippet is executable.", "type": "string", "required": false }, "active": { "description": "Snippet activation status.", "type": "boolean", "required": false }, "priority": { "description": "Relative priority in which the snippet is executed.", "type": "integer", "required": false }, "network": { "description": "Whether the snippet is network-wide instead of site-wide.", "type": "boolean", "required": false }, "shared_network": { "description": "If a network snippet, whether can be activated on discrete sites instead of network-wide.", "type": "boolean", "required": false }, "modified": { "description": "Date and time when the snippet was last modified, in ISO format.", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": [] } ] }, "\/code-snippets\/v1\/snippets\/schema": { "namespace": "code-snippets\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/code-snippets\/v1\/snippets\/schema" } ] } }, "\/code-snippets\/v1\/snippets\/(?P[\\d]+)\/activate": { "namespace": "code-snippets\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/code-snippets\/v1\/snippets\/(?P[\\d]+)\/deactivate": { "namespace": "code-snippets\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/code-snippets\/v1\/snippets\/(?P[\\d]+)\/export": { "namespace": "code-snippets\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/code-snippets\/v1\/snippets\/(?P[\\d]+)\/export-code": { "namespace": "code-snippets\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wp\/v2\/gamipress-posts": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "Limit response to resources published after a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "default": [], "required": false }, "before": { "description": "Limit response to resources published before a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "Ensure result set excludes specific ids.", "type": "array", "default": [], "required": false }, "include": { "description": "Limit result set to specific ids.", "type": "array", "default": [], "required": false }, "menu_order": { "description": "Limit result set to resources with a specific menu_order value.", "type": "integer", "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "menu_order" ], "required": false }, "parent": { "description": "Limit result set to those of particular parent ids.", "type": "array", "default": [], "required": false }, "parent_exclude": { "description": "Limit result set to all items except those of a particular parent id.", "type": "array", "default": [], "required": false }, "slug": { "description": "Limit result set to posts with a specific slug.", "type": "string", "required": false }, "status": { "default": "publish", "description": "Limit result set to posts assigned a specific status.", "type": "string", "required": false }, "filter": { "description": "Use WP Query arguments to modify the response; private query vars require appropriate authorization.", "required": false }, "categories": { "description": "Limit result set to all items that have the specified term assigned in the categories taxonomy.", "type": "array", "default": [], "required": false }, "tags": { "description": "Limit result set to all items that have the specified term assigned in the tags taxonomy.", "type": "array", "default": [], "required": false }, "menus": { "description": "Limit result set to all items that have the specified term assigned in the menus taxonomy.", "type": "array", "default": [], "required": false }, "wp_pattern_category": { "description": "Limit result set to all items that have the specified term assigned in the wp_pattern_category taxonomy.", "type": "array", "default": [], "required": false }, "product_brand": { "description": "Limit result set to all items that have the specified term assigned in the product_brand taxonomy.", "type": "array", "default": [], "required": false }, "product_cat": { "description": "Limit result set to all items that have the specified term assigned in the product_cat taxonomy.", "type": "array", "default": [], "required": false }, "product_tag": { "description": "Limit result set to all items that have the specified term assigned in the product_tag taxonomy.", "type": "array", "default": [], "required": false }, "portfolio_category": { "description": "Limit result set to all items that have the specified term assigned in the portfolio_category taxonomy.", "type": "array", "default": [], "required": false }, "portfolio_skills": { "description": "Limit result set to all items that have the specified term assigned in the portfolio_skills taxonomy.", "type": "array", "default": [], "required": false }, "portfolio_tags": { "description": "Limit result set to all items that have the specified term assigned in the portfolio_tags taxonomy.", "type": "array", "default": [], "required": false }, "faq_category": { "description": "Limit result set to all items that have the specified term assigned in the faq_category taxonomy.", "type": "array", "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/gamipress-posts" } ] } }, "\/klaviyo\/v1": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "klaviyo\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1" } ] } }, "\/klaviyo\/v1\/version": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/version" } ] } }, "\/klaviyo\/v1\/orders\/count": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/orders\/count" } ] } }, "\/klaviyo\/v1\/products\/count": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/products\/count" } ] } }, "\/klaviyo\/v1\/orders": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/orders" } ] } }, "\/klaviyo\/v1\/products": { "namespace": "klaviyo\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/products" } ] } }, "\/klaviyo\/v1\/options": { "namespace": "klaviyo\/v1", "methods": [ "POST", "GET" ], "endpoints": [ { "methods": [ "POST" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/options" } ] } }, "\/klaviyo\/v1\/disable": { "namespace": "klaviyo\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/klaviyo\/v1\/disable" } ] } }, "\/leadin\/v1": { "namespace": "leadin\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "leadin\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1" } ] } }, "\/leadin\/v1\/healthcheck": { "namespace": "leadin\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/healthcheck" } ] } }, "\/leadin\/v1\/internal-tracking": { "namespace": "leadin\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/internal-tracking" } ] } }, "\/leadin\/v1\/hublet": { "namespace": "leadin\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/hublet" } ] } }, "\/leadin\/v1\/skip-review": { "namespace": "leadin\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/skip-review" } ] } }, "\/leadin\/v1\/track-consent": { "namespace": "leadin\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/track-consent" } ] } }, "\/leadin\/v1\/business-unit": { "namespace": "leadin\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/business-unit" } ] } }, "\/leadin\/v1\/wp-mappings-cache-reset": { "namespace": "leadin\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/wp-mappings-cache-reset" } ] } }, "\/leadin\/v1\/wp-mappings-proxy-enabled": { "namespace": "leadin\/v1", "methods": [ "POST", "PUT", "PATCH", "GET" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/leadin\/v1\/wp-mappings-proxy-enabled" } ] } }, "\/redirection\/v1": { "namespace": "redirection\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "redirection\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1" } ] } }, "\/redirection\/v1\/redirect": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "source", "last_count", "last_access", "position", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "source", "last_count", "last_access", "position", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/redirect" } ] } }, "\/redirection\/v1\/redirect\/(?P[\\d]+)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/redirection\/v1\/redirect\/post": { "namespace": "redirection\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "text": { "description": "Text to match", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/redirect\/post" } ] } }, "\/redirection\/v1\/bulk\/redirect\/(?Pdelete|enable|disable|reset)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "source", "last_count", "last_access", "position", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false }, "global": { "description": "Apply bulk action globally, as per filters", "type": "boolean", "required": false }, "items": { "description": "Array of IDs to perform action on", "type": "array", "items": { "description": "Item ID", "type": [ "string", "number" ] }, "required": false } } } ] }, "\/redirection\/v1\/group": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "name", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "name", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false }, "moduleId": { "description": "Module ID", "type": "integer", "minimum": 0, "maximum": 3, "required": true }, "name": { "description": "Group name", "type": "string", "required": true }, "status": { "description": "Status of the group", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/group" } ] } }, "\/redirection\/v1\/group\/(?P[\\d]+)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "moduleId": { "description": "Module ID", "type": "integer", "minimum": 0, "maximum": 3, "required": true }, "name": { "description": "Group name", "type": "string", "required": true }, "status": { "description": "Status of the group", "required": false } } } ] }, "\/redirection\/v1\/bulk\/group\/(?Pdelete|enable|disable)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "name", "id", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false }, "items": { "description": "Comma separated list of item IDs to perform action on", "type": "array", "items": { "description": "Item ID", "type": [ "string", "number" ] }, "required": false } } } ] }, "\/redirection\/v1\/log": { "namespace": "redirection\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "url", "ip", "total", "count", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/log" } ] } }, "\/redirection\/v1\/bulk\/log\/(?Pdelete)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "url", "ip", "total", "count", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false }, "items": { "description": "Comma separated list of item IDs to perform action on", "type": "array", "items": { "description": "Item ID", "type": [ "string", "number" ] }, "required": false } } } ] }, "\/redirection\/v1\/404": { "namespace": "redirection\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "url", "ip", "total", "count", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/404" } ] } }, "\/redirection\/v1\/bulk\/404\/(?Pdelete)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "filterBy": { "description": "Field to filter by", "required": false }, "orderby": { "description": "Field to order results by", "type": "string", "enum": [ "url", "ip", "total", "count", "" ], "required": false }, "direction": { "description": "Direction of ordered results", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "per_page": { "description": "Number of results per page", "type": "integer", "default": 25, "minimum": 5, "maximum": 200, "required": false }, "page": { "description": "Page offset", "type": "integer", "minimum": 0, "default": 0, "required": false }, "items": { "description": "Comma separated list of item IDs to perform action on", "type": "array", "items": { "description": "Item ID", "type": [ "string", "number" ] }, "required": false } } } ] }, "\/redirection\/v1\/setting": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/setting" } ] } }, "\/redirection\/v1\/plugin": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "Name", "type": "string", "required": false }, "value": { "description": "Value", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/plugin" } ] } }, "\/redirection\/v1\/plugin\/delete": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/plugin\/delete" } ] } }, "\/redirection\/v1\/plugin\/test": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/plugin\/test" } ] } }, "\/redirection\/v1\/plugin\/data": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "upgrade": { "description": "Upgrade parameter", "type": "string", "enum": [ "stop", "skip", "retry" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/plugin\/data" } ] } }, "\/redirection\/v1\/import\/file\/(?P\\d+)": { "namespace": "redirection\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/redirection\/v1\/import\/plugin": { "namespace": "redirection\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/redirection\/v1\/import\/plugin" } ] } }, "\/redirection\/v1\/export\/(?P1|2|3|all)\/(?Pcsv|apache|nginx|json)": { "namespace": "redirection\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/jetpack\/v4": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "jetpack\/v4", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4" } ] } }, "\/jetpack\/v4\/verify_xmlrpc_error": { "namespace": "jetpack\/v4", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "nonce": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/verify_xmlrpc_error" } ] } }, "\/jetpack\/v4\/heartbeat\/data": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "prefix": { "description": "Prefix to add before the stats identifiers.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/heartbeat\/data" } ] } }, "\/wc-admin": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc-admin", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin" } ] } }, "\/wc-admin\/notice\/dismiss": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/notice\/dismiss" } ] } }, "\/wc-admin\/features": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/features" } ] } }, "\/wc-admin\/experiments\/assignment": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/experiments\/assignment" } ] } }, "\/wc-admin\/marketing\/recommended": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "category": { "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/recommended" } ] } }, "\/wc-admin\/marketing\/knowledge-base": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "category": { "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/knowledge-base" } ] } }, "\/wc-admin\/marketing\/misc-recommendations": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/misc-recommendations" } ] } }, "\/wc-admin\/marketing\/overview\/activate-plugin": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "plugin": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/overview\/activate-plugin" } ] } }, "\/wc-admin\/marketing\/overview\/installed-plugins": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/overview\/installed-plugins" } ] } }, "\/wc-admin\/marketing\/recommendations": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "category": { "type": "string", "enum": [ "channels", "extensions" ], "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/recommendations" } ] } }, "\/wc-admin\/marketing\/channels": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/channels" } ] } }, "\/wc-admin\/marketing\/campaigns": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/campaigns" } ] } }, "\/wc-admin\/marketing\/campaign-types": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/marketing\/campaign-types" } ] } }, "\/wc-admin\/options": { "namespace": "wc-admin", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/options" } ] } }, "\/wc-admin\/legacy-settings": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "schema": { "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/legacy-settings" } ] } }, "\/wc-admin\/payment-gateway-suggestions": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "force_default_suggestions": { "type": "boolean", "description": "Return the default payment suggestions when woocommerce_show_marketplace_suggestions and woocommerce_setting_payments_recommendations_hidden options are set to no", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/payment-gateway-suggestions" } ] } }, "\/wc-admin\/payment-gateway-suggestions\/dismiss": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/payment-gateway-suggestions\/dismiss" } ] } }, "\/wc-admin\/themes": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "pluginzip": { "description": "\u8981\u4e0a\u8f09\u7684\u4f48\u666f\u4e3b\u984c zip \u6a94\u6848\u3002", "type": "file", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/themes" } ] } }, "\/wc-admin\/plugins\/install": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/install" } ] } }, "\/wc-admin\/plugins\/install\/status": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/install\/status" } ] } }, "\/wc-admin\/plugins\/install\/status\/(?P[a-z0-9_\\-]+)": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc-admin\/plugins\/active": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/active" } ] } }, "\/wc-admin\/plugins\/installed": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/installed" } ] } }, "\/wc-admin\/plugins\/activate": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/activate" } ] } }, "\/wc-admin\/plugins\/activate\/status": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/activate\/status" } ] } }, "\/wc-admin\/plugins\/activate\/status\/(?P[a-z0-9_\\-]+)": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc-admin\/plugins\/connect-jetpack": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/connect-jetpack" } ] } }, "\/wc-admin\/plugins\/request-wccom-connect": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/request-wccom-connect" } ] } }, "\/wc-admin\/plugins\/finish-wccom-connect": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/finish-wccom-connect" } ] } }, "\/wc-admin\/plugins\/connect-wcpay": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/connect-wcpay" } ] } }, "\/wc-admin\/plugins\/connect-square": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/plugins\/connect-square" } ] } }, "\/wc-admin\/onboarding\/free-extensions": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/free-extensions" } ] } }, "\/wc-admin\/onboarding\/product-types": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/product-types" } ] } }, "\/wc-admin\/onboarding\/profile": { "namespace": "wc-admin", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "completed": { "type": "boolean", "description": "\u500b\u4eba\u8cc7\u6599\u662f\u5426\u5df2\u5b8c\u6210\u3002", "required": false }, "skipped": { "type": "boolean", "description": "\u662f\u5426\u7565\u904e\u500b\u4eba\u6a94\u6848\u3002", "required": false }, "industry": { "type": "array", "description": "\u7522\u696d\u3002", "items": { "type": "string" }, "required": false }, "business_extensions": { "type": "array", "description": "\u8981\u5b89\u88dd\u7684\u984d\u5916\u5546\u52d9\u64f4\u5145\u529f\u80fd\u3002", "items": { "type": "string" }, "required": false }, "is_agree_marketing": { "type": "boolean", "description": "Whether or not this store agreed to receiving marketing contents from WooCommerce.com.", "required": false }, "store_email": { "type": "string", "description": "\u5546\u5e97\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "required": false }, "is_store_country_set": { "type": "boolean", "description": "Whether or not this store country is set via onboarding profiler.", "required": false }, "is_plugins_page_skipped": { "type": "boolean", "description": "Whether or not plugins step in core profiler was skipped.", "required": false }, "business_choice": { "type": "string", "description": "Business choice.", "required": false }, "selling_online_answer": { "type": "string", "description": "Selling online answer.", "required": false }, "selling_platforms": { "type": [ "array", "null" ], "description": "Selling platforms.", "items": { "type": [ "string", "null" ] }, "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/profile" } ] } }, "\/wc-admin\/onboarding\/profile\/experimental_get_email_prefill": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/profile\/experimental_get_email_prefill" } ] } }, "\/wc-admin\/onboarding\/profile\/progress": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/profile\/progress" } ] } }, "\/wc-admin\/onboarding\/profile\/progress\/core-profiler\/complete": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "step": { "type": "string", "description": "The Core Profiler step to mark as complete.", "enum": [ "intro-opt-in", "skip-guided-setup", "user-profile", "business-info", "plugins", "intro-builder", "skip-guided-setup" ], "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/profile\/progress\/core-profiler\/complete" } ] } }, "\/wc-admin\/onboarding\/profile\/update-store-currency-and-measurement-units": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "country_code": { "description": "Country code.", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/profile\/update-store-currency-and-measurement-units" } ] } }, "\/wc-admin\/onboarding\/tasks\/import_sample_products": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/tasks\/import_sample_products" } ] } }, "\/wc-admin\/onboarding\/tasks\/create_homepage": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/tasks\/create_homepage" } ] } }, "\/wc-admin\/onboarding\/tasks\/create_product_from_template": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "template_name": { "type": "string", "description": "\u7522\u54c1\u7bc4\u672c\u540d\u7a31\u3002", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/tasks\/create_product_from_template" } ] } }, "\/wc-admin\/onboarding\/tasks": { "namespace": "wc-admin", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "ids": { "description": "Optional parameter to get only specific task lists by id.", "type": "array", "items": { "enum": [], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "ids": { "description": "Optional parameter to get only specific task lists by id.", "type": "array", "items": { "enum": [], "type": "string" }, "required": false }, "extended_tasks": { "description": "\u4f86\u81ea\u7528\u6236\u7aef\u7be9\u9078\u5668\u7684\u904e\u6642\u4efb\u52d9\u64f4\u5145\u6e05\u55ae\u3002", "type": "array", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/tasks" } ] } }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/hide": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/unhide": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/dismiss": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/undo_dismiss": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_-]+)\/snooze": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "duration": { "description": "\u4efb\u52d9\u5ef6\u9072\u6642\u9593\u3002", "type": "string", "required": false }, "task_list_id": { "description": "\u7528\u65bc\u67e5\u8a62\u7279\u5b9a\u4efb\u52d9\u6e05\u55ae\u7684\u53c3\u6578 (\u9078\u7528)\u3002", "type": "string", "required": false } } } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/action": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/tasks\/(?P[a-z0-9_\\-]+)\/undo_snooze": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/onboarding\/themes\/install": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/themes\/install" } ] } }, "\/wc-admin\/onboarding\/themes\/activate": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/themes\/activate" } ] } }, "\/wc-admin\/onboarding\/themes\/recommended": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "industry": { "type": "string", "description": "Limits the results to themes relevant for this industry (optional)", "required": false }, "currency": { "type": "string", "enum": [ "USD", "AUD", "CAD", "EUR", "GBP" ], "default": "USD", "description": "Returns pricing in this currency (optional, default: USD)", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/themes\/recommended" } ] } }, "\/wc-admin\/onboarding\/plugins\/install-and-activate-async": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "plugins": { "description": "A list of plugins to install", "type": "array", "items": "string", "required": true }, "source": { "description": "The source of the request", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/plugins\/install-and-activate-async" } ] } }, "\/wc-admin\/onboarding\/plugins\/install-and-activate": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/plugins\/install-and-activate" } ] } }, "\/wc-admin\/onboarding\/plugins\/scheduled-installs\/(?P\\w+)": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc-admin\/onboarding\/plugins\/jetpack-authorization-url": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "redirect_url": { "description": "The URL to redirect to after authorization", "type": "string", "required": true }, "from": { "description": "from value for the jetpack authorization page", "type": "string", "default": "woocommerce-onboarding", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/plugins\/jetpack-authorization-url" } ] } }, "\/wc-admin\/onboarding\/products": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/onboarding\/products" } ] } }, "\/wc-admin\/mobile-app\/send-magic-link": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/mobile-app\/send-magic-link" } ] } }, "\/wc-admin\/mobile-app": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/mobile-app" } ] } }, "\/wc-admin\/shipping-partner-suggestions": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "force_default_suggestions": { "type": "boolean", "description": "Return the default shipping partner suggestions when woocommerce_show_marketplace_suggestions option is set to no", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/shipping-partner-suggestions" } ] } }, "\/wc-admin\/launch-your-store\/initialize-coming-soon": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/launch-your-store\/initialize-coming-soon" } ] } }, "\/wc-admin\/launch-your-store\/update-survey-status": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "status": { "type": "string", "enum": [ "yes", "no" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/launch-your-store\/update-survey-status" } ] } }, "\/wc-admin\/launch-your-store\/survey-completed": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/launch-your-store\/survey-completed" } ] } }, "\/wc-admin\/launch-your-store\/woopayments\/test-orders\/count": { "namespace": "wc-admin", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/launch-your-store\/woopayments\/test-orders\/count" } ] } }, "\/wc-admin\/launch-your-store\/woopayments\/test-orders": { "namespace": "wc-admin", "methods": [ "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/launch-your-store\/woopayments\/test-orders" } ] } }, "\/wc-analytics": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc-analytics", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics" } ] } }, "\/wc-analytics\/customers": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_registered", "enum": [ "username", "name", "country", "city", "state", "postcode", "date_registered", "date_last_active", "orders_count", "total_spend", "avg_order_value" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "registered_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "registered_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "search": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u9867\u5ba2\u6b04\u4f4d\u5305\u542b\u641c\u5c0b\u5b57\u8a5e\u7684\u7269\u4ef6\u3002\u641c\u5c0b\u300csearchby\u300d\u63d0\u4f9b\u7684\u6b04\u4f4d\u3002", "type": "string", "required": false }, "searchby": { "description": "Limit results with `search` and `searchby` to specific fields containing the search term.", "type": "string", "default": "name", "enum": [ "name", "username", "email", "all" ], "required": false }, "name_includes": { "description": "Limit response to objects with specific names.", "type": "string", "required": false }, "name_excludes": { "description": "Limit response to objects excluding specific names.", "type": "string", "required": false }, "username_includes": { "description": "Limit response to objects with specific usernames.", "type": "string", "required": false }, "username_excludes": { "description": "Limit response to objects excluding specific usernames.", "type": "string", "required": false }, "email_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u5305\u542b\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "email_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6392\u9664\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "country_includes": { "description": "Limit response to objects with specific countries.", "type": "string", "required": false }, "country_excludes": { "description": "Limit response to objects excluding specific countries.", "type": "string", "required": false }, "last_active_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "registered_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "orders_count_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6574\u6578\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "total_spend_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "avg_order_value_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "last_order_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_order_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "users": { "description": "Limit result to items with specified user ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "filter_empty": { "description": "Filter out results where any of the passed fields are empty", "type": "array", "items": { "type": "string", "enum": [ "email", "name", "country", "city", "state", "postcode" ] }, "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/customers" } ] } }, "\/wc-analytics\/customers\/(?P[\\d-]+)": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_registered", "enum": [ "username", "name", "country", "city", "state", "postcode", "date_registered", "date_last_active", "orders_count", "total_spend", "avg_order_value" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "registered_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "registered_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "search": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u9867\u5ba2\u6b04\u4f4d\u5305\u542b\u641c\u5c0b\u5b57\u8a5e\u7684\u7269\u4ef6\u3002\u641c\u5c0b\u300csearchby\u300d\u63d0\u4f9b\u7684\u6b04\u4f4d\u3002", "type": "string", "required": false }, "searchby": { "description": "Limit results with `search` and `searchby` to specific fields containing the search term.", "type": "string", "default": "name", "enum": [ "name", "username", "email", "all" ], "required": false }, "name_includes": { "description": "Limit response to objects with specific names.", "type": "string", "required": false }, "name_excludes": { "description": "Limit response to objects excluding specific names.", "type": "string", "required": false }, "username_includes": { "description": "Limit response to objects with specific usernames.", "type": "string", "required": false }, "username_excludes": { "description": "Limit response to objects excluding specific usernames.", "type": "string", "required": false }, "email_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u5305\u542b\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "email_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6392\u9664\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "country_includes": { "description": "Limit response to objects with specific countries.", "type": "string", "required": false }, "country_excludes": { "description": "Limit response to objects excluding specific countries.", "type": "string", "required": false }, "last_active_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "registered_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "orders_count_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6574\u6578\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "total_spend_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "avg_order_value_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "last_order_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_order_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "users": { "description": "Limit result to items with specified user ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "filter_empty": { "description": "Filter out results where any of the passed fields are empty", "type": "array", "items": { "type": "string", "enum": [ "email", "name", "country", "city", "state", "postcode" ] }, "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wc-analytics\/leaderboards": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 5, "minimum": 1, "maximum": 20, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "persisted_query": { "description": "\u5728\u9023\u7d50\u4e4b\u9593\u4fdd\u5b58\u7684\u7db2\u5740\u67e5\u8a62\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/leaderboards" } ] } }, "\/wc-analytics\/leaderboards\/allowed": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/leaderboards\/allowed" } ] } }, "\/wc-analytics\/leaderboards\/(?P\\w+)": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "leaderboard": { "type": "string", "enum": [ "customers", "coupons", "categories", "products" ], "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 5, "minimum": 1, "maximum": 20, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "persisted_query": { "description": "\u5728\u9023\u7d50\u4e4b\u9593\u4fdd\u5b58\u7684\u7db2\u5740\u67e5\u8a62\u3002", "type": "string", "required": false } } } ] }, "\/wc-analytics\/reports": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports" } ] } }, "\/wc-analytics\/reports\/import": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "days": { "description": "\u532f\u5165\u6240\u9700\u5929\u6578\u3002", "type": "integer", "minimum": 0, "required": false }, "skip_existing": { "description": "\u7565\u904e\u73fe\u6709\u8a02\u55ae\u8cc7\u6599\u7684\u532f\u5165\u4f5c\u696d\u3002", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/import" } ] } }, "\/wc-analytics\/reports\/import\/cancel": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/import\/cancel" } ] } }, "\/wc-analytics\/reports\/import\/delete": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/import\/delete" } ] } }, "\/wc-analytics\/reports\/import\/status": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/import\/status" } ] } }, "\/wc-analytics\/reports\/import\/totals": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "days": { "description": "\u532f\u5165\u6240\u9700\u5929\u6578\u3002", "type": "integer", "minimum": 0, "required": false }, "skip_existing": { "description": "\u7565\u904e\u73fe\u6709\u8a02\u55ae\u8cc7\u6599\u7684\u532f\u5165\u4f5c\u696d\u3002", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/import\/totals" } ] } }, "\/wc-analytics\/reports\/(?P[a-z]+)\/export": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "report_args": { "description": "\u50b3\u81f3\u532f\u51fa\u5831\u544a\u7684\u53c3\u6578\u3002", "type": "object", "required": false }, "email": { "description": "\u5982\u679c\u70ba\u771f\uff0c\u8acb\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u50b3\u9001\u532f\u51fa\u4e0b\u8f09\u9023\u7d50\u7d66\u63d0\u51fa\u8981\u6c42\u7684\u4f7f\u7528\u8005\u3002", "type": "boolean", "required": false } } } ] }, "\/wc-analytics\/reports\/(?P[a-z]+)\/export\/(?P[a-z0-9]+)\/status": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc-analytics\/reports\/products": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "orders_count", "items_sold", "product_name", "variations", "sku" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "categories": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u6307\u5b9a\u5206\u985e\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "products": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u7522\u54c1 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "\u5c07\u6bcf\u500b\u7522\u54c1\u7684\u5176\u4ed6\u8cc7\u8a0a\u65b0\u589e\u5230\u5831\u544a\u4e2d\u3002", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/products" } ] } }, "\/wc-analytics\/reports\/variations": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "orders_count", "items_sold", "sku" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u4e0a\u5c64\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u4e0a\u5c64\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variations": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u5b50\u9805 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "\u5c07\u5404\u8b8a\u5316\u7684\u5176\u4ed6\u8cc7\u8a0a\u65b0\u589e\u5230\u5831\u544a\u4e2d\u3002", "type": "boolean", "default": false, "required": false }, "attribute_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5305\u542b\u6307\u5b9a\u5c6c\u6027\u7684\u8b8a\u5316\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "attribute_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u4e0d\u542b\u6307\u5b9a\u5c6c\u6027\u7684\u8b8a\u5316\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "category_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6307\u5b9a\u985e\u5225\u4e2d\u7684\u8b8a\u5316\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "category_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u6307\u5b9a\u985e\u5225\u4e2d\u7684\u8b8a\u5316\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "products": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u7522\u54c1 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/variations" } ] } }, "\/wc-analytics\/reports\/products\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "coupons", "refunds", "shipping", "taxes", "net_revenue", "orders_count", "items_sold" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "categories": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u6307\u5b9a\u5206\u985e\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "products": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u7522\u54c1 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "variations": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u5b50\u9805 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "product", "category", "variation" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/products\/stats" } ] } }, "\/wc-analytics\/reports\/variations\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "coupons", "refunds", "shipping", "taxes", "net_revenue", "orders_count", "items_sold" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "category_includes": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u6307\u5b9a\u5206\u985e\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "category_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u6307\u5b9a\u985e\u5225\u4e2d\u7684\u8b8a\u5316\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u4e0a\u5c64\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u4e0a\u5c64\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variations": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u5b50\u9805 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "product", "category", "variation" ], "required": false }, "attribute_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5305\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "attribute_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u4e0d\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/variations\/stats" } ] } }, "\/wc-analytics\/reports\/revenue\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "total_sales", "coupons", "refunds", "shipping", "taxes", "net_revenue", "orders_count", "items_sold", "gross_sales" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "product", "category", "variation", "coupon", "customer_type" ], "required": false }, "date_type": { "description": "Override the \"woocommerce_date_type\" option that is used for the database date field considered for revenue reports.", "type": "string", "enum": [ "date_paid", "date_created", "date_completed" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/revenue\/stats" } ] } }, "\/wc-analytics\/reports\/orders": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "num_items_sold", "net_total" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variation_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u8b8a\u5316\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variation_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u8b8a\u5316\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "coupon_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u512a\u60e0\u5238\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "coupon_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u512a\u60e0\u5238\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tax_rate_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7a05\u7387\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tax_rate_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7a05\u7387\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "status_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "customer_type": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u8001\u9867\u5ba2\u6216\u65b0\u9867\u5ba2\u3002", "type": "string", "default": "", "enum": [ "", "returning", "new" ], "required": false }, "refunds": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u9000\u6b3e\u985e\u578b\u3002", "type": "string", "default": "", "enum": [ "", "all", "partial", "full", "none" ], "required": false }, "extended_info": { "description": "\u5c07\u6bcf\u500b\u512a\u60e0\u5238\u7684\u5176\u4ed6\u8cc7\u8a0a\u65b0\u589e\u5230\u5831\u544a\u4e2d\u3002", "type": "boolean", "default": false, "required": false }, "order_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "order_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "attribute_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5305\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "attribute_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u4e0d\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/orders" } ] } }, "\/wc-analytics\/reports\/orders\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "orders_count", "avg_order_value" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "status_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "default": null, "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "status_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variation_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u8b8a\u5316\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "variation_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u8b8a\u5316\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "coupon_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u512a\u60e0\u5238\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "coupon_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u512a\u60e0\u5238\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tax_rate_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7a05\u7387\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tax_rate_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7a05\u7387\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "customer": { "description": "customer_type \u7684\u5225\u540d (\u5df2\u904e\u6642)\u3002", "type": "string", "enum": [ "new", "returning" ], "required": false }, "customer_type": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5305\u542b\u6307\u5b9a customer_type \u7684\u8a02\u55ae", "type": "string", "enum": [ "new", "returning" ], "required": false }, "refunds": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u9000\u6b3e\u985e\u578b\u3002", "type": "string", "default": "", "enum": [ "", "all", "partial", "full", "none" ], "required": false }, "attribute_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5305\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "attribute_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u4e0d\u542b\u6307\u5b9a\u5c6c\u6027\u5546\u54c1\u7684\u8a02\u55ae\u3002", "type": "array", "items": { "type": "array" }, "default": [], "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "product", "category", "variation", "coupon", "customer_type" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/orders\/stats" } ] } }, "\/wc-analytics\/reports\/categories": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "category_id", "enum": [ "category_id", "items_sold", "net_revenue", "orders_count", "products_count", "category" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "status_is": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "status_is_not": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae\u72c0\u614b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "type": "string" }, "required": false }, "categories": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u985e\u5225\u5206\u985e\u6cd5\u4e2d\u6240\u6709\u7372\u6d3e\u6307\u5b9a\u5b57\u8a5e\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "\u5c07\u5404\u985e\u5225\u7684\u5176\u4ed6\u8cc7\u8a0a\u65b0\u589e\u5230\u5831\u544a\u4e2d\u3002", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/categories" } ] } }, "\/wc-analytics\/reports\/taxes": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "tax_rate_id", "enum": [ "name", "tax_rate_id", "tax_code", "rate", "order_tax", "total_tax", "shipping_tax", "orders_count" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "taxes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u7372\u6d3e\u4e00\u500b\u6216\u591a\u500b\u7a05\u7387\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/taxes" } ] } }, "\/wc-analytics\/reports\/taxes\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "items_sold", "total_sales", "orders_count", "products_count" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "taxes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u7a05\u91d1\u5206\u985e\u6cd5\u4e2d\u6240\u6709\u7372\u6d3e\u6307\u5b9a\u5b57\u8a5e\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "tax_rate_id" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/taxes\/stats" } ] } }, "\/wc-analytics\/reports\/coupons": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "coupon_id", "enum": [ "coupon_id", "code", "amount", "orders_count" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "coupons": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u7279\u5b9a\u512a\u60e0\u5238 ID \u7684\u512a\u60e0\u5238\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "\u5c07\u6bcf\u500b\u512a\u60e0\u5238\u7684\u5176\u4ed6\u8cc7\u8a0a\u65b0\u589e\u5230\u5831\u544a\u4e2d\u3002", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/coupons" } ] } }, "\/wc-analytics\/reports\/coupons\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "amount", "coupons_count", "orders_count" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "coupons": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u7279\u5b9a\u512a\u60e0\u5238 ID \u7684\u512a\u60e0\u5238\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "segmentby": { "description": "\u4f9d\u5176\u4ed6\u689d\u4ef6\u7d04\u675f\u70ba\u56de\u61c9\u9032\u884c\u5e02\u5834\u5340\u9694\u3002", "type": "string", "enum": [ "product", "variation", "category", "coupon" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/coupons\/stats" } ] } }, "\/wc-analytics\/reports\/stock": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "stock_status", "enum": [ "stock_status", "stock_quantity", "date", "id", "include", "title", "sku" ], "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "type": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u7372\u6d3e\u5eab\u5b58\u5831\u544a\u985e\u578b\u7684\u9805\u76ee\u3002", "type": "string", "default": "all", "enum": [ "all", "lowstock", "instock", "outofstock", "onbackorder" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/stock" } ] } }, "\/wc-analytics\/reports\/stock\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/stock\/stats" } ] } }, "\/wc-analytics\/reports\/downloads": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "product" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1aproducts, orders, username, ip_address.", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "order_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "customer_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u4f7f\u7528\u8005 ID \u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "customer_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u4f7f\u7528\u8005 ID \u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "ip_address_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6709\u6307\u5b9a IP \u4f4d\u5740\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "ip_address_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a IP \u4f4d\u5740\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/downloads" } ] } }, "\/wc-analytics\/reports\/downloads\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "download_count" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "interval": { "description": "\u50b3\u56de\u7684\u8cc7\u6599\u4e2d\u7528\u65bc\u8caf\u9ad4\u7684\u6642\u9593\u9593\u9694\u3002", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "product_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "product_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u672a\u7372\u6d3e\u6307\u5b9a\u7522\u54c1\u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order_includes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "order_excludes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u8a02\u55ae ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "customer_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "customer_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "ip_address_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6709\u6307\u5b9a IP \u4f4d\u5740\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "ip_address_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6c92\u6709\u6307\u5b9a IP \u4f4d\u5740\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/downloads\/stats" } ] } }, "\/wc-analytics\/reports\/customers": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_registered", "enum": [ "username", "name", "country", "city", "state", "postcode", "date_registered", "date_last_active", "orders_count", "total_spend", "avg_order_value" ], "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false }, "registered_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "registered_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "search": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u9867\u5ba2\u6b04\u4f4d\u5305\u542b\u641c\u5c0b\u5b57\u8a5e\u7684\u7269\u4ef6\u3002\u641c\u5c0b\u300csearchby\u300d\u63d0\u4f9b\u7684\u6b04\u4f4d\u3002", "type": "string", "required": false }, "searchby": { "description": "Limit results with `search` and `searchby` to specific fields containing the search term.", "type": "string", "default": "name", "enum": [ "name", "username", "email", "all" ], "required": false }, "name_includes": { "description": "Limit response to objects with specific names.", "type": "string", "required": false }, "name_excludes": { "description": "Limit response to objects excluding specific names.", "type": "string", "required": false }, "username_includes": { "description": "Limit response to objects with specific usernames.", "type": "string", "required": false }, "username_excludes": { "description": "Limit response to objects excluding specific usernames.", "type": "string", "required": false }, "email_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u5305\u542b\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "email_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6392\u9664\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "country_includes": { "description": "Limit response to objects with specific countries.", "type": "string", "required": false }, "country_excludes": { "description": "Limit response to objects excluding specific countries.", "type": "string", "required": false }, "last_active_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "registered_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "orders_count_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6574\u6578\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "total_spend_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "avg_order_value_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "last_order_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_order_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "customers": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "users": { "description": "Limit result to items with specified user ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "filter_empty": { "description": "Filter out results where any of the passed fields are empty", "type": "array", "items": { "type": "string", "enum": [ "email", "name", "country", "city", "state", "postcode" ] }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/customers" } ] } }, "\/wc-analytics\/reports\/customers\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "registered_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "registered_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u8a3b\u518a\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "match": { "description": "\u8aaa\u660e\u7d50\u679c\u96c6\u7684\u6240\u6709\u689d\u4ef6\u662f\u5426\u7686\u61c9\u70ba\u771f\uff0c\u6216\u8005\u53ea\u8981\u4efb\u4e00\u689d\u4ef6\u7b26\u5408\u5373\u8db3\u5920\u3002\u6bd4\u5c0d\u6703\u5f71\u97ff\u4ee5\u4e0b\u53c3\u6578\uff1astatus_is\u3001status_is_not\u3001product_includes\u3001product_excludes\u3001coupon_includes\u3001coupon_excludes\u3001customer\u3001categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "search": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u9867\u5ba2\u6b04\u4f4d\u5305\u542b\u641c\u5c0b\u5b57\u8a5e\u7684\u7269\u4ef6\u3002\u641c\u5c0b\u300csearchby\u300d\u63d0\u4f9b\u7684\u6b04\u4f4d\u3002", "type": "string", "required": false }, "searchby": { "description": "Limit results with `search` and `searchby` to specific fields containing the search term.", "type": "string", "default": "name", "enum": [ "name", "username", "email", "all" ], "required": false }, "name_includes": { "description": "Limit response to objects with specific names.", "type": "string", "required": false }, "name_excludes": { "description": "Limit response to objects excluding specific names.", "type": "string", "required": false }, "username_includes": { "description": "Limit response to objects with specific usernames.", "type": "string", "required": false }, "username_excludes": { "description": "Limit response to objects excluding specific usernames.", "type": "string", "required": false }, "email_includes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u5305\u542b\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "email_excludes": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6392\u9664\u96fb\u5b50\u90f5\u4ef6\u7684\u7269\u4ef6\u3002", "type": "string", "required": false }, "country_includes": { "description": "Limit response to objects with specific countries.", "type": "string", "required": false }, "country_excludes": { "description": "Limit response to objects excluding specific countries.", "type": "string", "required": false }, "last_active_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u70ba\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_active_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "registered_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u4e0a\u6b21\u555f\u7528\u6642\u9593\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u7684 ISO8601 \u5408\u898f\u65e5\u671f\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "orders_count_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6574\u6578\u7684\u7269\u4ef6\u3002", "type": "integer", "required": false }, "orders_count_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u8a08\u6578\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6574\u6578\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "total_spend_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "total_spend_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u7e3d\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "avg_order_value_min": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5927\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_max": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u5c0f\u65bc\u6216\u7b49\u65bc\u6307\u5b9a\u6578\u5b57\u7684\u7269\u4ef6\u3002", "type": "number", "required": false }, "avg_order_value_between": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u8a02\u55ae\u6d88\u8cbb\u5e73\u5747\u91d1\u984d\u4ecb\u65bc\u5169\u500b\u6307\u5b9a\u6578\u5b57\u4e4b\u9593\u7684\u7269\u4ef6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "last_order_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u524d (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "last_order_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u6307\u5b9a ISO8601 \u5408\u898f\u65e5\u671f\u6642\u9593\u4e4b\u5f8c (\u6216\u7576\u6642) \u767c\u4f48\u6700\u5f8c\u4e00\u7b46\u8a02\u55ae\u7684\u7269\u4ef6\u3002", "type": "string", "format": "date-time", "required": false }, "customers": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u5177\u6709\u6307\u5b9a\u9867\u5ba2 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "fields": { "description": "\u5c07\u7d71\u8a08\u8cc7\u6599\u6b04\u4f4d\u9650\u5b9a\u5728\u6307\u5b9a\u9805\u76ee\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "force_cache_refresh": { "description": "Force retrieval of fresh data instead of from the cache.", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/customers\/stats" } ] } }, "\/wc-analytics\/reports\/performance-indicators": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "stats": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u7279\u5b9a\u5831\u544a\u7d71\u8a08\u8cc7\u6599\u3002\u5141\u8a31\u7684\u503c\uff1a\u3002", "type": "array", "items": { "type": "string", "enum": [] }, "default": [], "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/performance-indicators" } ] } }, "\/wc-analytics\/reports\/performance-indicators\/allowed": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "stats": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u5728\u7279\u5b9a\u5831\u544a\u7d71\u8a08\u8cc7\u6599\u3002\u5141\u8a31\u7684\u503c\uff1a\u3002", "type": "array", "items": { "type": "string", "enum": [] }, "default": [], "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/performance-indicators\/allowed" } ] } }, "\/wc-analytics\/admin\/notes": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "note_id", "date", "type", "title", "status" ], "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "type": { "description": "\u5099\u8a3b\u985e\u578b\u3002", "type": "array", "items": { "enum": [ "error", "warning", "update", "info", "marketing", "survey" ], "type": "string" }, "required": false }, "status": { "description": "\u5099\u8a3b\u72c0\u614b\u3002", "type": "array", "items": { "enum": [ "pending", "actioned", "unactioned", "snoozed", "sent" ], "type": "string" }, "required": false }, "source": { "description": "\u5099\u8a3b\u4f86\u6e90\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "note_id", "date", "type", "title", "status" ], "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "type": { "description": "\u5099\u8a3b\u985e\u578b\u3002", "type": "array", "items": { "enum": [ "error", "warning", "update", "info", "marketing", "survey" ], "type": "string" }, "required": false }, "status": { "description": "\u5099\u8a3b\u72c0\u614b\u3002", "type": "array", "items": { "enum": [ "pending", "actioned", "unactioned", "snoozed", "sent" ], "type": "string" }, "required": false }, "source": { "description": "\u5099\u8a3b\u4f86\u6e90\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/admin\/notes" } ] } }, "\/wc-analytics\/admin\/notes\/(?P[\\d-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/admin\/notes\/delete\/(?P[\\d-]+)": { "namespace": "wc-analytics", "methods": [ "DELETE", "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": [] }, { "methods": [ "DELETE" ], "args": [] } ] }, "\/wc-analytics\/admin\/notes\/delete\/all": { "namespace": "wc-analytics", "methods": [ "DELETE", "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": { "status": { "description": "\u5099\u8a3b\u72c0\u614b\u3002", "type": "array", "items": { "enum": [ "pending", "actioned", "unactioned", "snoozed", "sent" ], "type": "string" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "status": { "description": "\u5099\u8a3b\u72c0\u614b\u3002", "type": "array", "items": { "enum": [ "pending", "actioned", "unactioned", "snoozed", "sent" ], "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/admin\/notes\/delete\/all" } ] } }, "\/wc-analytics\/admin\/notes\/tracker\/(?P[\\d-]+)\/user\/(?P[\\d-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ] }, "\/wc-analytics\/admin\/notes\/update": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/admin\/notes\/update" } ] } }, "\/wc-analytics\/admin\/notes\/experimental-activate-promo\/(?P[\\w-]+)": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-analytics\/admin\/notes\/(?P[\\d-]+)\/action\/(?P[\\d-]+)": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "note_id": { "description": "\u5099\u8a3b\u7684\u552f\u4e00 ID\u3002", "type": "integer", "required": false }, "action_id": { "description": "\u5099\u8a3b\u52d5\u4f5c\u7684\u552f\u4e00 ID\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "note_id": { "description": "\u5099\u8a3b\u7684\u552f\u4e00 ID\u3002", "type": "integer", "required": false }, "action_id": { "description": "\u5099\u8a3b\u52d5\u4f5c\u7684\u552f\u4e00 ID\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/coupons": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u4ee3\u78bc\u7b26\u5408\u6307\u5b9a\u5b57\u4e32\u7684\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "code": { "description": "\u900f\u904e\u7279\u5b9a\u4ee3\u78bc\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": true }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "default": "fixed_cart", "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u5728\u4ee3\u78bc\u7b26\u5408\u6307\u5b9a\u5b57\u4e32\u7684\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "code": { "description": "\u900f\u904e\u7279\u5b9a\u4ee3\u78bc\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": true }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "default": "fixed_cart", "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/coupons" } ] } }, "\/wc-analytics\/coupons\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc-analytics\/coupons\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/coupons\/batch" } ] } }, "\/wc-analytics\/data": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/data" } ] } }, "\/wc-analytics\/data\/countries\/locales": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/data\/countries\/locales" } ] } }, "\/wc-analytics\/data\/countries": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/data\/countries" } ] } }, "\/wc-analytics\/data\/countries\/(?P[\\w-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "location": { "description": "ISO3166 alpha-2 \u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "GET" ], "args": { "location": { "description": "ISO3166 alpha-2 \u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc-analytics\/data\/download-ips": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/data\/download-ips" } ] } }, "\/wc-analytics\/orders": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": [ "any" ], "description": "\u9650\u5236\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u8a2d\u5b9a\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "string", "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ] }, "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "created_via": { "description": "Limit result set to orders created via specific sources (e.g. checkout, admin).", "type": "array", "items": { "type": "string" }, "required": false }, "number": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u7b26\u5408\u90e8\u5206\u8a02\u55ae\u865f\u78bc\u7684\u8a02\u55ae\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "default": "pending", "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "default": "HKD", "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "default": 0, "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "default": false, "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "default": false, "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": [ "any" ], "description": "\u9650\u5236\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u8a2d\u5b9a\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "string", "enum": [ "any", "trash", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ] }, "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "created_via": { "description": "Limit result set to orders created via specific sources (e.g. checkout, admin).", "type": "array", "items": { "type": "string" }, "required": false }, "number": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u7b26\u5408\u90e8\u5206\u8a02\u55ae\u865f\u78bc\u7684\u8a02\u55ae\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "default": "pending", "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "default": "HKD", "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "default": 0, "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "default": false, "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "default": false, "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/orders" } ] } }, "\/wc-analytics\/orders\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc-analytics\/orders\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/orders\/batch" } ] } }, "\/wc-analytics\/products": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u7522\u54c1\u540d\u7a31\u6216 SKU \u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order", "price", "popularity", "rating" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "search_sku": { "description": "Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'.", "type": "string", "required": false }, "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", "required": false }, "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": [ "name", "global_unique_id", "description", "short_description", "sku" ] }, "default": [], "required": false }, "include_status": { "description": "Limit result set to products with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude products with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "include_types": { "description": "Limit result set to products with any of the types.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "exclude_types": { "description": "Exclude products with any of the types from result set.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "downloadable": { "description": "Limit result set to downloadable products.", "type": "boolean", "required": false }, "virtual": { "description": "Limit result set to virtual products.", "type": "boolean", "required": false }, "low_in_stock": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5eab\u5b58\u4e0d\u8db3\u6216\u6c92\u6709\u5eab\u5b58\u7684\u7522\u54c1\u3002 (\u5df2\u904e\u6642)", "type": "boolean", "default": false, "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "default": "simple", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "default": "publish", "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "default": false, "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "default": "visible", "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "default": false, "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "default": true, "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u7522\u54c1\u540d\u7a31\u6216 SKU \u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order", "price", "popularity", "rating" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "search_sku": { "description": "Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'.", "type": "string", "required": false }, "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", "required": false }, "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": [ "name", "global_unique_id", "description", "short_description", "sku" ] }, "default": [], "required": false }, "include_status": { "description": "Limit result set to products with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude products with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "include_types": { "description": "Limit result set to products with any of the types.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "exclude_types": { "description": "Exclude products with any of the types from result set.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "downloadable": { "description": "Limit result set to downloadable products.", "type": "boolean", "required": false }, "virtual": { "description": "Limit result set to virtual products.", "type": "boolean", "required": false }, "low_in_stock": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5eab\u5b58\u4e0d\u8db3\u6216\u6c92\u6709\u5eab\u5b58\u7684\u7522\u54c1\u3002 (\u5df2\u904e\u6642)", "type": "boolean", "default": false, "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "default": "simple", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "default": "publish", "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "default": false, "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "default": "visible", "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "default": false, "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "default": true, "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products" } ] } }, "\/wc-analytics\/products\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "type": "boolean", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "type": "boolean", "required": false } } } ] }, "\/wc-analytics\/products\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/batch" } ] } }, "\/wc-analytics\/products\/suggested-products": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "in_stock": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u5eab\u5b58\u6216\u7f3a\u8ca8\u7522\u54c1\u3002", "type": "boolean", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "categories": { "description": "Limit result set to specific product categorie ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tags": { "description": "Limit result set to specific product tag ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "limit": { "description": "Limit result set to specific amount of suggested products.", "type": "integer", "default": 5, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "in_stock": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u5eab\u5b58\u6216\u7f3a\u8ca8\u7522\u54c1\u3002", "type": "boolean", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "categories": { "description": "Limit result set to specific product categorie ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tags": { "description": "Limit result set to specific product tag ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "limit": { "description": "Limit result set to specific amount of suggested products.", "type": "integer", "default": 5, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/suggested-products" } ] } }, "\/wc-analytics\/products\/(?P[\\d]+)\/duplicate": { "namespace": "wc-analytics", "methods": [ "POST", "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wc-analytics\/products\/attributes": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "search": { "description": "\u4f9d\u76f8\u4f3c\u5c6c\u6027\u540d\u7a31\u641c\u5c0b\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "type": "string", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "default": "select", "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "default": "menu_order", "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "default": false, "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "search": { "description": "\u4f9d\u76f8\u4f3c\u5c6c\u6027\u540d\u7a31\u641c\u5c0b\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "type": "string", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "default": "select", "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "default": "menu_order", "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "default": false, "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/attributes" } ] } }, "\/wc-analytics\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc-analytics\/products\/attributes\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/attributes\/batch" } ] } }, "\/wc-analytics\/products\/attributes\/(?P[a-z0-9_\\-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u4ee3\u7a31\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "GET" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u4ee3\u7a31\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc-analytics\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/products\/attributes\/(?P[\\d]+)\/terms\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc-analytics\/products\/attributes\/(?P[\\d]+)\/terms\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/products\/attributes\/(?P[a-z0-9_\\-]+)\/terms": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false } } }, { "methods": [ "GET" ], "args": { "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false } } } ] }, "\/wc-analytics\/products\/categories": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/categories" } ] } }, "\/wc-analytics\/products\/categories\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc-analytics\/products\/categories\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/categories\/batch" } ] } }, "\/wc-analytics\/products\/(?P[\\d]+)\/variations": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST", "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/products\/(?P[\\d]+)\/variations\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc-analytics\/products\/(?P[\\d]+)\/variations\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH", "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/products\/(?P[\\d]+)\/variations\/generate": { "namespace": "wc-analytics", "methods": [ "POST", "POST", "POST", "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "delete": { "description": "Deletes unused variations.", "type": "boolean", "required": false }, "default_values": { "description": "Default values for generated variations.", "type": "object", "properties": { "type": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ] }, "description": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string" }, "sku": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "Stock Keeping Unit.", "type": "string" }, "global_unique_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "GTIN, UPC, EAN or ISBN.", "type": "string" }, "regular_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string" }, "sale_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string" }, "date_on_sale_from": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_from_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ] }, "virtual": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean" }, "downloadable": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean" }, "downloads": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer" }, "download_expiry": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer" }, "tax_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ] }, "tax_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u7387\u985e\u5225", "type": "string" }, "manage_stock": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ] }, "stock_quantity": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer" }, "stock_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ] }, "backorders": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ] }, "low_stock_amount": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ] }, "weight": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string" }, "dimensions": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string" }, "image": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "attributes": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "menu_order": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer" }, "meta_data": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } }, "name": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string" }, "parent_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer" } }, "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "delete": { "description": "Deletes unused variations.", "type": "boolean", "required": false }, "default_values": { "description": "Default values for generated variations.", "type": "object", "properties": { "type": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ] }, "description": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string" }, "sku": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "Stock Keeping Unit.", "type": "string" }, "global_unique_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "GTIN, UPC, EAN or ISBN.", "type": "string" }, "regular_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string" }, "sale_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string" }, "date_on_sale_from": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_from_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ] }, "virtual": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean" }, "downloadable": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean" }, "downloads": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer" }, "download_expiry": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer" }, "tax_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ] }, "tax_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u7387\u985e\u5225", "type": "string" }, "manage_stock": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ] }, "stock_quantity": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer" }, "stock_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ] }, "backorders": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ] }, "low_stock_amount": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ] }, "weight": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string" }, "dimensions": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string" }, "image": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "attributes": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "menu_order": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer" }, "meta_data": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } }, "name": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string" }, "parent_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer" } }, "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "delete": { "description": "Deletes unused variations.", "type": "boolean", "required": false }, "default_values": { "description": "Default values for generated variations.", "type": "object", "properties": { "type": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ] }, "description": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string" }, "sku": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "Stock Keeping Unit.", "type": "string" }, "global_unique_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "GTIN, UPC, EAN or ISBN.", "type": "string" }, "regular_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string" }, "sale_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string" }, "date_on_sale_from": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_from_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ] }, "virtual": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean" }, "downloadable": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean" }, "downloads": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer" }, "download_expiry": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer" }, "tax_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ] }, "tax_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u7387\u985e\u5225", "type": "string" }, "manage_stock": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ] }, "stock_quantity": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer" }, "stock_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ] }, "backorders": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ] }, "low_stock_amount": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ] }, "weight": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string" }, "dimensions": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string" }, "image": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "attributes": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "menu_order": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer" }, "meta_data": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } }, "name": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string" }, "parent_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer" } }, "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "delete": { "description": "Deletes unused variations.", "type": "boolean", "required": false }, "default_values": { "description": "Default values for generated variations.", "type": "object", "properties": { "type": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ] }, "description": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string" }, "sku": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "Stock Keeping Unit.", "type": "string" }, "global_unique_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "GTIN, UPC, EAN or ISBN.", "type": "string" }, "regular_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string" }, "sale_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string" }, "date_on_sale_from": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_from_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ] }, "virtual": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean" }, "downloadable": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean" }, "downloads": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer" }, "download_expiry": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer" }, "tax_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ] }, "tax_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u7387\u985e\u5225", "type": "string" }, "manage_stock": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ] }, "stock_quantity": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer" }, "stock_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ] }, "backorders": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ] }, "low_stock_amount": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ] }, "weight": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string" }, "dimensions": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string" }, "image": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "attributes": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "menu_order": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer" }, "meta_data": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } }, "name": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string" }, "parent_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer" } }, "required": false }, "type": { "default": "variation", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "variation" ], "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "name": { "description": "\u7522\u54c1\u4e0a\u5c64\u9805\u540d\u7a31\u3002", "type": "string", "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false } } } ] }, "\/wc-analytics\/variations": { "namespace": "wc-analytics", "methods": [ "GET", "GET", "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u5546\u54c1\u540d\u7a31\u3001SKU \u6216\u5c6c\u6027\u503c\u641c\u5c0b\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/variations" } ] } }, "\/wc-analytics\/products\/reviews": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u767c\u4f48\u7684\u8a55\u8ad6\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_gmt", "enum": [ "date", "date_gmt", "id", "include", "product" ], "required": false }, "reviewer": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_email": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u4f86\u81ea\u7279\u5b9a\u4f5c\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "format": "email", "type": "string", "required": false }, "product": { "default": [], "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "status": { "default": "approved", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u7684\u8a55\u8ad6\u3002", "type": "string", "enum": [ "all", "hold", "approved", "spam", "trash" ], "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": true }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "default": "approved", "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "type": "string", "description": "\u8a55\u8ad6\u8005\u540d\u7a31\u3002", "required": true }, "reviewer_email": { "type": "string", "description": "\u8a55\u8ad6\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u3002", "required": true }, "review": { "type": "string", "description": "\u8a55\u8ad6\u5167\u5bb9\u3002", "required": true }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u767c\u4f48\u7684\u8a55\u8ad6\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_gmt", "enum": [ "date", "date_gmt", "id", "include", "product" ], "required": false }, "reviewer": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_email": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u4f86\u81ea\u7279\u5b9a\u4f5c\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "format": "email", "type": "string", "required": false }, "product": { "default": [], "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "status": { "default": "approved", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u7684\u8a55\u8ad6\u3002", "type": "string", "enum": [ "all", "hold", "approved", "spam", "trash" ], "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": true }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "default": "approved", "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "type": "string", "description": "\u8a55\u8ad6\u8005\u540d\u7a31\u3002", "required": true }, "reviewer_email": { "type": "string", "description": "\u8a55\u8ad6\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u3002", "required": true }, "review": { "type": "string", "description": "\u8a55\u8ad6\u5167\u5bb9\u3002", "required": true }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/reviews" } ] } }, "\/wc-analytics\/products\/reviews\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc-analytics\/products\/reviews\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/reviews\/batch" } ] } }, "\/wc-analytics\/products\/low-in-stock": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "status": { "default": "publish", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "status": { "default": "publish", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/low-in-stock" } ] } }, "\/wc-analytics\/products\/count-low-in-stock": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "status": { "default": "publish", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "status": { "default": "publish", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/products\/count-low-in-stock" } ] } }, "\/wc-analytics\/settings\/(?P[\\w-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false } } }, { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false } } } ] }, "\/wc-analytics\/settings\/(?P[\\w-]+)\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc-analytics\/settings\/(?P[\\w-]+)\/(?P[\\w-]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } }, { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc-analytics\/taxes": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "order", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "order", "priority" ], "type": "string", "required": false }, "class": { "description": "\u4f9d\u7a05\u7387\u985e\u5225.", "enum": [ "standard", "reduced-rate", "zero-rate" ], "type": "string", "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u7684\u7a05\u78bc\u641c\u5c0b\u3002", "type": "string", "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u8cbb\u7387 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false } } }, { "methods": [ "POST" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "default": 1, "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "default": false, "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "default": true, "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "default": "standard", "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "order", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "order", "priority" ], "type": "string", "required": false }, "class": { "description": "\u4f9d\u7a05\u7387\u985e\u5225.", "enum": [ "standard", "reduced-rate", "zero-rate" ], "type": "string", "required": false }, "search": { "description": "\u4f9d\u985e\u4f3c\u7684\u7a05\u78bc\u641c\u5c0b\u3002", "type": "string", "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u5728\u5df2\u7372\u6d3e\u6307\u5b9a\u8cbb\u7387 ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false } } }, { "methods": [ "POST" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "default": 1, "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "default": false, "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "default": true, "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "default": "standard", "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/taxes" } ] } }, "\/wc-analytics\/taxes\/(?P[\\d]+)": { "namespace": "wc-analytics", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE", "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc-analytics\/taxes\/batch": { "namespace": "wc-analytics", "methods": [ "POST", "PUT", "PATCH", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/taxes\/batch" } ] } }, "\/wc-analytics\/reports\/bundles\/stock": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "Current page of the collection.", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "Maximum number of items to be returned in result set.", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "order": { "description": "Order sort attribute ascending or descending.", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "Sort collection by object attribute.", "type": "string", "default": "product_name", "enum": [ "product_name", "bundle_name", "units_required" ], "required": false }, "products": { "description": "Limit result to items with specified product ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "Add additional piece of info about each product to the report.", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/bundles\/stock" } ] } }, "\/wc-analytics\/reports\/bundles": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "Current page of the collection.", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "Maximum number of items to be returned in result set.", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "Limit response to resources published after a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "before": { "description": "Limit response to resources published before a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "order": { "description": "Order sort attribute ascending or descending.", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "Sort collection by object attribute.", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "orders_count", "items_sold", "bundled_items_sold", "product_name", "sku" ], "required": false }, "match": { "description": "Indicates whether all the conditions should be true for the resulting set, or if any one of them is sufficient. Match affects the following parameters: status_is, status_is_not, product_includes, product_excludes, coupon_includes, coupon_excludes, customer, categories", "type": "string", "default": "all", "enum": [ "all", "any" ], "required": false }, "products": { "description": "Limit result to items with specified product ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "extended_info": { "description": "Add additional piece of info about each product to the report.", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/bundles" } ] } }, "\/wc-analytics\/reports\/bundles\/stats": { "namespace": "wc-analytics", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "Current page of the collection.", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "Maximum number of items to be returned in result set.", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "after": { "description": "Limit response to resources published after a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "before": { "description": "Limit response to resources published before a given ISO8601 compliant date.", "type": "string", "format": "date-time", "required": false }, "order": { "description": "Order sort attribute ascending or descending.", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "Sort collection by object attribute.", "type": "string", "default": "date", "enum": [ "date", "net_revenue", "orders_count", "items_sold", "bundled_items_sold" ], "required": false }, "interval": { "description": "Time interval to use for buckets in the returned data.", "type": "string", "default": "week", "enum": [ "hour", "day", "week", "month", "quarter", "year" ], "required": false }, "products": { "description": "Limit result to items with specified product ids.", "type": "array", "items": { "type": "integer" }, "required": false }, "segmentby": { "description": "Segment the response by additional constraint.", "type": "string", "enum": [ "product", "category", "variation" ], "required": false }, "fields": { "description": "Limit stats fields to the specified items.", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-analytics\/reports\/bundles\/stats" } ] } }, "\/wc\/store": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/store", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store" } ] } }, "\/wc\/store\/batch": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "validation": { "type": "string", "enum": [ "require-all-validate", "normal" ], "default": "normal", "required": false }, "requests": { "type": "array", "maxItems": 25, "items": { "type": "object", "properties": { "method": { "type": "string", "enum": [ "POST", "PUT", "PATCH", "DELETE" ], "default": "POST" }, "path": { "type": "string", "required": true }, "body": { "type": "object", "properties": [], "additionalProperties": true }, "headers": { "type": "object", "properties": [], "additionalProperties": { "type": [ "string", "array" ], "items": { "type": "string" } } } } }, "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/batch" } ] } }, "\/wc\/store\/cart": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart" } ] } }, "\/wc\/store\/cart\/add-item": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u8cfc\u7269\u8eca\u9805\u76ee\u5546\u54c1\u6216\u5b50\u985e\u9078\u9805 ID\u3002", "type": "integer", "required": false }, "quantity": { "description": "\u53ef\u5728\u8cfc\u7269\u8eca\u653e\u5165\u6b64\u5546\u54c1\u7684\u6578\u91cf\u3002", "type": "number", "required": false }, "variation": { "description": "\u9078\u64c7\u7684\u5c6c\u6027 (\u9069\u7528\u65bc\u5b50\u985e\u9078\u9805)\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5b50\u985e\u9078\u9805\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5b50\u985e\u9078\u9805\u5c6c\u6027\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/add-item" } ] } }, "\/wc\/store\/cart\/apply-coupon": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/apply-coupon" } ] } }, "\/wc\/store\/cart\/coupons": { "namespace": "wc\/store", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u512a\u60e0\u5238\u7684\u552f\u4e00\u4ee3\u78bc\u3002", "type": "string", "required": false }, "discount_type": { "description": "\u512a\u60e0\u5238\u7684\u6298\u6263\u985e\u578b (\u4f8b\u5982\uff1a\u767e\u5206\u6bd4\u6216\u56fa\u5b9a\u91d1\u984d)", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/coupons" } ] } }, "\/wc\/store\/cart\/coupons\/(?P[\\w-]+)": { "namespace": "wc\/store", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/store\/cart\/extensions": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "namespace": { "description": "\u64f4\u5145\u529f\u80fd\u540d\u7a31 - \u9019\u6703\u7528\u65bc\u78ba\u4fdd\u8981\u6c42\u7684\u8cc7\u6599\u6b63\u78ba\u8f49\u9001\u3002", "type": "string", "required": false }, "data": { "description": "\u5176\u4ed6\u8981\u50b3\u9001\u81f3\u64f4\u5145\u529f\u80fd\u7684\u8cc7\u6599", "type": "object", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/extensions" } ] } }, "\/wc\/store\/cart\/items": { "namespace": "wc\/store", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "extensions": { "type": "object", "properties": { "woocommerce_google_analytics_integration": { "description": "woocommerce_google_analytics_integration \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "identifier": { "description": "The formatted product identifier to use in Google Analytics events.", "type": "string", "readonly": true } } } }, "default": { "woocommerce_google_analytics_integration": [] }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/items" } ] } }, "\/wc\/store\/cart\/items\/(?P[\\w-]{32})": { "namespace": "wc\/store", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "extensions": { "type": "object", "properties": { "woocommerce_google_analytics_integration": { "description": "woocommerce_google_analytics_integration \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "identifier": { "description": "The formatted product identifier to use in Google Analytics events.", "type": "string", "readonly": true } } } }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/store\/cart\/remove-coupon": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/remove-coupon" } ] } }, "\/wc\/store\/cart\/remove-item": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc (\u91d1\u9470)\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/remove-item" } ] } }, "\/wc\/store\/cart\/select-shipping-rate": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "package_id": { "description": "The ID of the package being shipped. Leave blank to apply to all packages.", "type": [ "integer", "string", "null" ], "required": false }, "rate_id": { "description": "\u5305\u88f9\u9078\u53d6\u7684\u8cbb\u7387 ID\u3002", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/select-shipping-rate" } ] } }, "\/wc\/store\/cart\/update-item": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8981\u66f4\u65b0\u7684\u8cfc\u7269\u8eca\u5546\u54c1\u552f\u4e00\u8b58\u5225\u78bc (\u91d1\u9470)\u3002", "type": "string", "required": false }, "quantity": { "description": "\u8cfc\u7269\u8eca\u4e2d\u5546\u54c1\u7684\u66f4\u65b0\u6578\u91cf\u3002", "type": "number", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/update-item" } ] } }, "\/wc\/store\/cart\/update-customer": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/cart\/update-customer" } ] } }, "\/wc\/store\/checkout": { "namespace": "wc\/store", "methods": [ "GET", "POST", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "payment_data": { "description": "\u8655\u7406\u4ed8\u6b3e\u6642\u8981\u50b3\u9001\u5230\u4ed8\u6b3e\u65b9\u5f0f\u7684\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": [ "string", "boolean" ] } } }, "required": false }, "customer_password": { "description": "Customer password for new accounts, if applicable.", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": true }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "create_account": { "description": "\u662f\u5426\u5728\u8655\u7406\u8a02\u55ae\u7684\u540c\u6642\uff0c\u5efa\u7acb\u65b0\u7684\u4f7f\u7528\u8005\u5e33\u6236\u3002", "type": "boolean", "required": false }, "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "default": { "woocommerce\/order-attribution": [] }, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "order_notes": { "description": "Order notes.", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "create_account": { "description": "\u662f\u5426\u5728\u8655\u7406\u8a02\u55ae\u7684\u540c\u6642\uff0c\u5efa\u7acb\u65b0\u7684\u4f7f\u7528\u8005\u5e33\u6236\u3002", "type": "boolean", "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/checkout" } ] } }, "\/wc\/store\/checkout\/(?P[\\d]+)": { "namespace": "wc\/store", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "payment_data": { "description": "\u8655\u7406\u4ed8\u6b3e\u6642\u8981\u50b3\u9001\u5230\u4ed8\u6b3e\u65b9\u5f0f\u7684\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": [ "string", "boolean" ] } } }, "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": true }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "default": { "woocommerce\/order-attribution": [] }, "required": false } } } ] }, "\/wc\/store\/order\/(?P[\\d]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/products\/attributes": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/attributes" } ] } }, "\/wc\/store\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "attribute_id": { "description": "\u5c6c\u6027\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count", "menu_order", "name_num", "id" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ] }, "\/wc\/store\/products\/categories": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/categories" } ] } }, "\/wc\/store\/products\/categories\/(?P[\\d]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/products\/brands": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/brands" } ] } }, "\/wc\/store\/products\/brands\/(?P[\\w-]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "identifier": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/products\/collection-data": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "slug": { "description": "Limit result set to products with specific slug(s). Use commas to separate.", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u65bc\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "date_column": { "description": "\u4f7f\u7528\u4e4b\u5f8c\/\u4e4b\u524d\u9650\u5236\u56de\u61c9\u6642\uff0c\u7528\u4ee5\u6bd4\u8f03\u7684\u65e5\u671f\u6b04\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "modified", "modified_gmt" ], "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "modified", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "comment_count" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle", "variation" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "Limit result set to products assigned a set of category IDs or slugs, separated by commas.", "type": "string", "required": false }, "category_operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u76ee\u9304\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "brand": { "description": "Limit result set to products assigned a set of brand IDs or slugs, separated by commas.", "type": "string", "required": false }, "brand_operator": { "description": "Operator to compare product brand terms.", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "tag": { "description": "Limit result set to products assigned a set of tag IDs or slugs, separated by commas.", "type": "string", "required": false }, "tag_operator": { "description": "\u6bd4\u8f03\u5546\u54c1\u6a19\u7c64\u7684\u904b\u7b97\u5b50\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u6839\u64da\u6700\u4f4e\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "max_price": { "description": "\u6839\u64da\u6700\u9ad8\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "sanitize_callback": "sanitize_text_field", "validate_callback": "rest_validate_request_arg" }, "default": [], "required": false }, "attributes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u6240\u9078\u5168\u57df\u5c6c\u6027\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5c6c\u6027\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "sanitize_callback": "wc_sanitize_taxonomy_name" }, "term_id": { "description": "\u5c6c\u6027\u5b57\u8a5e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "sanitize_callback": "wp_parse_id_list" }, "slug": { "description": "\u5c6c\u6027\u4ee3\u7a31\u6e05\u55ae\u3002\u5982\u679c\u63d0\u4f9b\u5b57\u8a5e ID\uff0c\u6b64\u9805\u76ee\u6703\u88ab\u7565\u904e\u3002", "type": "array", "items": { "type": "string" }, "sanitize_callback": "wp_parse_slug_list" }, "operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u5c6c\u6027\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ] } } }, "default": [], "required": false }, "attribute_relation": { "description": "\u4e00\u6b21\u4f7f\u7528\u591a\u500b\u689d\u4ef6\u7be9\u9078\u6642\uff0c\u5404\u5c6c\u6027\u4e4b\u9593\u7684\u908f\u8f2f\u95dc\u4fc2\u3002", "type": "string", "enum": [ "in", "and" ], "default": "and", "required": false }, "catalog_visibility": { "description": "\u5224\u65b7\u662f\u5426\u986f\u793a\u96b1\u85cf\u6216\u53ef\u898b\u7684\u76ee\u9304\u7522\u54c1\u3002", "type": "string", "enum": [ "any", "visible", "catalog", "search", "hidden" ], "required": false }, "rating": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u7279\u5b9a\u5e73\u5747\u8a55\u5206\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ] }, "default": [], "required": false }, "calculate_price_range": { "description": "\u5982\u679c\u70ba\u300c\u662f\u300d\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u50f9\u683c\u7684\u6700\u4f4e\u91d1\u984d\u548c\u6700\u9ad8\u91d1\u984d\u3002", "type": "boolean", "default": false, "required": false }, "calculate_stock_status_counts": { "description": "\u5982\u679c\u70ba\u300cTrue\u300d\uff0c\u5247\u8a08\u7b97\u8a72\u7cfb\u5217\u4e2d\u7684\u5546\u54c1\u5eab\u5b58\u6578\u3002", "type": "boolean", "default": false, "required": false }, "calculate_attribute_counts": { "description": "\u5982\u6709\u8981\u6c42\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u7684\u5c6c\u6027\u5b57\u8a5e\u8a08\u6578\u3002", "type": "array", "items": { "type": "object", "properties": { "taxonomy": { "description": "\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "query_type": { "description": "Filter condition\t being performed which may affect counts. Valid values include \"and\" and \"or\".", "type": "string", "enum": [ "and", "or" ], "context": [ "view", "edit" ], "readonly": true } } }, "default": [], "required": false }, "calculate_rating_counts": { "description": "\u5982\u679c\u70ba\u300c\u662f\u300d\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u7684\u8a55\u5206\u6578\u3002", "type": "boolean", "default": false, "required": false }, "calculate_taxonomy_counts": { "description": "If requested, calculates taxonomy term counts for products in the collection.", "type": "array", "items": { "type": "string", "description": "\u5206\u985e\u6cd5\u540d\u7a31\u3002" }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/collection-data" } ] } }, "\/wc\/store\/products\/reviews": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "id", "rating", "product" ], "required": false }, "category_id": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a\u985e\u5225 ID \u7684\u8a55\u8ad6\u3002", "type": "string", "required": false }, "product_id": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a\u5546\u54c1 ID \u7684\u8a55\u8ad6\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/reviews" } ] } }, "\/wc\/store\/products\/tags": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products\/tags" } ] } }, "\/wc\/store\/products": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "slug": { "description": "Limit result set to products with specific slug(s). Use commas to separate.", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u65bc\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "date_column": { "description": "\u4f7f\u7528\u4e4b\u5f8c\/\u4e4b\u524d\u9650\u5236\u56de\u61c9\u6642\uff0c\u7528\u4ee5\u6bd4\u8f03\u7684\u65e5\u671f\u6b04\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "modified", "modified_gmt" ], "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "modified", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "comment_count" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle", "variation" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "Limit result set to products assigned a set of category IDs or slugs, separated by commas.", "type": "string", "required": false }, "category_operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u76ee\u9304\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "brand": { "description": "Limit result set to products assigned a set of brand IDs or slugs, separated by commas.", "type": "string", "required": false }, "brand_operator": { "description": "Operator to compare product brand terms.", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "tag": { "description": "Limit result set to products assigned a set of tag IDs or slugs, separated by commas.", "type": "string", "required": false }, "tag_operator": { "description": "\u6bd4\u8f03\u5546\u54c1\u6a19\u7c64\u7684\u904b\u7b97\u5b50\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u6839\u64da\u6700\u4f4e\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "max_price": { "description": "\u6839\u64da\u6700\u9ad8\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "sanitize_callback": "sanitize_text_field", "validate_callback": "rest_validate_request_arg" }, "default": [], "required": false }, "attributes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u6240\u9078\u5168\u57df\u5c6c\u6027\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5c6c\u6027\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "sanitize_callback": "wc_sanitize_taxonomy_name" }, "term_id": { "description": "\u5c6c\u6027\u5b57\u8a5e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "sanitize_callback": "wp_parse_id_list" }, "slug": { "description": "\u5c6c\u6027\u4ee3\u7a31\u6e05\u55ae\u3002\u5982\u679c\u63d0\u4f9b\u5b57\u8a5e ID\uff0c\u6b64\u9805\u76ee\u6703\u88ab\u7565\u904e\u3002", "type": "array", "items": { "type": "string" }, "sanitize_callback": "wp_parse_slug_list" }, "operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u5c6c\u6027\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ] } } }, "default": [], "required": false }, "attribute_relation": { "description": "\u4e00\u6b21\u4f7f\u7528\u591a\u500b\u689d\u4ef6\u7be9\u9078\u6642\uff0c\u5404\u5c6c\u6027\u4e4b\u9593\u7684\u908f\u8f2f\u95dc\u4fc2\u3002", "type": "string", "enum": [ "in", "and" ], "default": "and", "required": false }, "catalog_visibility": { "description": "\u5224\u65b7\u662f\u5426\u986f\u793a\u96b1\u85cf\u6216\u53ef\u898b\u7684\u76ee\u9304\u7522\u54c1\u3002", "type": "string", "enum": [ "any", "visible", "catalog", "search", "hidden" ], "required": false }, "rating": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u7279\u5b9a\u5e73\u5747\u8a55\u5206\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ] }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/products" } ] } }, "\/wc\/store\/products\/(?P[\\d]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/products\/(?P[\\S]+)": { "namespace": "wc\/store", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "slug": { "description": "Slug of the resource.", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/store\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1" } ] } }, "\/wc\/store\/v1\/batch": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "validation": { "type": "string", "enum": [ "require-all-validate", "normal" ], "default": "normal", "required": false }, "requests": { "type": "array", "maxItems": 25, "items": { "type": "object", "properties": { "method": { "type": "string", "enum": [ "POST", "PUT", "PATCH", "DELETE" ], "default": "POST" }, "path": { "type": "string", "required": true }, "body": { "type": "object", "properties": [], "additionalProperties": true }, "headers": { "type": "object", "properties": [], "additionalProperties": { "type": [ "string", "array" ], "items": { "type": "string" } } } } }, "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/batch" } ] } }, "\/wc\/store\/v1\/cart": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart" } ] } }, "\/wc\/store\/v1\/cart\/add-item": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u8cfc\u7269\u8eca\u9805\u76ee\u5546\u54c1\u6216\u5b50\u985e\u9078\u9805 ID\u3002", "type": "integer", "required": false }, "quantity": { "description": "\u53ef\u5728\u8cfc\u7269\u8eca\u653e\u5165\u6b64\u5546\u54c1\u7684\u6578\u91cf\u3002", "type": "number", "required": false }, "variation": { "description": "\u9078\u64c7\u7684\u5c6c\u6027 (\u9069\u7528\u65bc\u5b50\u985e\u9078\u9805)\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5b50\u985e\u9078\u9805\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5b50\u985e\u9078\u9805\u5c6c\u6027\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/add-item" } ] } }, "\/wc\/store\/v1\/cart\/apply-coupon": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/apply-coupon" } ] } }, "\/wc\/store\/v1\/cart\/coupons": { "namespace": "wc\/store\/v1", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u512a\u60e0\u5238\u7684\u552f\u4e00\u4ee3\u78bc\u3002", "type": "string", "required": false }, "discount_type": { "description": "\u512a\u60e0\u5238\u7684\u6298\u6263\u985e\u578b (\u4f8b\u5982\uff1a\u767e\u5206\u6bd4\u6216\u56fa\u5b9a\u91d1\u984d)", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/coupons" } ] } }, "\/wc\/store\/v1\/cart\/coupons\/(?P[\\w-]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/store\/v1\/cart\/extensions": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "namespace": { "description": "\u64f4\u5145\u529f\u80fd\u540d\u7a31 - \u9019\u6703\u7528\u65bc\u78ba\u4fdd\u8981\u6c42\u7684\u8cc7\u6599\u6b63\u78ba\u8f49\u9001\u3002", "type": "string", "required": false }, "data": { "description": "\u5176\u4ed6\u8981\u50b3\u9001\u81f3\u64f4\u5145\u529f\u80fd\u7684\u8cc7\u6599", "type": "object", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/extensions" } ] } }, "\/wc\/store\/v1\/cart\/items": { "namespace": "wc\/store\/v1", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "extensions": { "type": "object", "properties": { "woocommerce_google_analytics_integration": { "description": "woocommerce_google_analytics_integration \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "identifier": { "description": "The formatted product identifier to use in Google Analytics events.", "type": "string", "readonly": true } } } }, "default": { "woocommerce_google_analytics_integration": [] }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/items" } ] } }, "\/wc\/store\/v1\/cart\/items\/(?P[\\w-]{32})": { "namespace": "wc\/store\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "extensions": { "type": "object", "properties": { "woocommerce_google_analytics_integration": { "description": "woocommerce_google_analytics_integration \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "identifier": { "description": "The formatted product identifier to use in Google Analytics events.", "type": "string", "readonly": true } } } }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5167\u9805\u76ee\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/store\/v1\/cart\/remove-coupon": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "code": { "description": "\u8cfc\u7269\u8eca\u5167\u512a\u60e0\u5238\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/remove-coupon" } ] } }, "\/wc\/store\/v1\/cart\/remove-item": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8cfc\u7269\u8eca\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc (\u91d1\u9470)\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/remove-item" } ] } }, "\/wc\/store\/v1\/cart\/select-shipping-rate": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "package_id": { "description": "The ID of the package being shipped. Leave blank to apply to all packages.", "type": [ "integer", "string", "null" ], "required": false }, "rate_id": { "description": "\u5305\u88f9\u9078\u53d6\u7684\u8cbb\u7387 ID\u3002", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/select-shipping-rate" } ] } }, "\/wc\/store\/v1\/cart\/update-item": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "key": { "description": "\u8981\u66f4\u65b0\u7684\u8cfc\u7269\u8eca\u5546\u54c1\u552f\u4e00\u8b58\u5225\u78bc (\u91d1\u9470)\u3002", "type": "string", "required": false }, "quantity": { "description": "\u8cfc\u7269\u8eca\u4e2d\u5546\u54c1\u7684\u66f4\u65b0\u6578\u91cf\u3002", "type": "number", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/update-item" } ] } }, "\/wc\/store\/v1\/cart\/update-customer": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/cart\/update-customer" } ] } }, "\/wc\/store\/v1\/checkout": { "namespace": "wc\/store\/v1", "methods": [ "GET", "POST", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "payment_data": { "description": "\u8655\u7406\u4ed8\u6b3e\u6642\u8981\u50b3\u9001\u5230\u4ed8\u6b3e\u65b9\u5f0f\u7684\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": [ "string", "boolean" ] } } }, "required": false }, "customer_password": { "description": "Customer password for new accounts, if applicable.", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": true }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "create_account": { "description": "\u662f\u5426\u5728\u8655\u7406\u8a02\u55ae\u7684\u540c\u6642\uff0c\u5efa\u7acb\u65b0\u7684\u4f7f\u7528\u8005\u5e33\u6236\u3002", "type": "boolean", "required": false }, "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "default": { "woocommerce\/order-attribution": [] }, "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "order_notes": { "description": "Order notes.", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "create_account": { "description": "\u662f\u5426\u5728\u8655\u7406\u8a02\u55ae\u7684\u540c\u6642\uff0c\u5efa\u7acb\u65b0\u7684\u4f7f\u7528\u8005\u5e33\u6236\u3002", "type": "boolean", "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/checkout" } ] } }, "\/wc\/store\/v1\/checkout\/(?P[\\d]+)": { "namespace": "wc\/store\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "payment_data": { "description": "\u8655\u7406\u4ed8\u6b3e\u6642\u8981\u50b3\u9001\u5230\u4ed8\u6b3e\u65b9\u5f0f\u7684\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": [ "string", "boolean" ] } } }, "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u9867\u5ba2\u70ba\u8a02\u55ae\u65b0\u589e\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing_address": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": true }, "shipping_address": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57", "type": "string", "context": [ "view", "edit" ], "required": true }, "last_name": { "description": "\u59d3\u6c0f", "type": "string", "context": [ "view", "edit" ], "required": true }, "company": { "description": "\u516c\u53f8", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_1": { "description": "\u5730\u5740", "type": "string", "context": [ "view", "edit" ], "required": true }, "address_2": { "description": "\u516c\u5bd3\u3001\u5957\u623f\u7b49", "type": "string", "context": [ "view", "edit" ], "required": true }, "city": { "description": "\u57ce\u5e02", "type": "string", "context": [ "view", "edit" ], "required": true }, "state": { "description": "\u5dde\/\u90e1\u4ee3\u78bc\uff0c\u6216\u5dde\u3001\u90e1\u3001\u7701\u6216\u9109\u93ae\u5e02 (\u5340) \u7684\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "context": [ "view", "edit" ], "required": true }, "country": { "description": "\u570b\u5bb6\/\u5730\u5340 (\u683c\u5f0f\u70ba ISO 3166-1 \u4e8c\u4f4d\u5b57\u6bcd\u4ee3\u78bc)\u3002", "type": "string", "context": [ "view", "edit" ], "required": true }, "phone": { "description": "\u806f\u7d61\u96fb\u8a71", "type": "string", "context": [ "view", "edit" ], "required": true } }, "required": false }, "payment_method": { "description": "\u7528\u65bc\u8655\u7406\u4ed8\u6b3e\u7684\u4ed8\u6b3e\u65b9\u5f0f ID\u3002", "type": "string", "enum": [ "", "bacs", "cheque", "cod", "stripe_us_bank_account", "stripe_amazon_pay", "stripe_blik", "stripe_klarna", "stripe_affirm", "stripe_afterpay_clearpay", "stripe_boleto", "stripe_oxxo", "stripe_multibanco", "stripe_cashapp", "stripe_acss_debit", "stripe_bacs_debit", "stripe_au_becs_debit", "stripe", "stripe_eps", "stripe_bancontact", "stripe_ideal", "stripe_sepa_debit", "stripe_p24", "stripe_link", "stripe_alipay", "stripe_wechat_pay" ], "required": false }, "additional_fields": { "description": "Additional fields to be persisted on the order.", "type": "object", "properties": [], "required": false }, "extensions": { "type": "object", "properties": { "woocommerce\/order-attribution": { "description": "woocommerce\/order-attribution \u8a3b\u518a\u7684\u64f4\u5145\u529f\u80fd\u8cc7\u6599", "type": [ "object", "null" ], "context": [ "view", "edit" ], "properties": { "source_type": { "description": "Order attribution field: source_type", "type": [ "string", "null" ], "context": [] }, "referrer": { "description": "Order attribution field: referrer", "type": [ "string", "null" ], "context": [] }, "utm_campaign": { "description": "Order attribution field: utm_campaign", "type": [ "string", "null" ], "context": [] }, "utm_source": { "description": "Order attribution field: utm_source", "type": [ "string", "null" ], "context": [] }, "utm_medium": { "description": "Order attribution field: utm_medium", "type": [ "string", "null" ], "context": [] }, "utm_content": { "description": "Order attribution field: utm_content", "type": [ "string", "null" ], "context": [] }, "utm_id": { "description": "Order attribution field: utm_id", "type": [ "string", "null" ], "context": [] }, "utm_term": { "description": "Order attribution field: utm_term", "type": [ "string", "null" ], "context": [] }, "utm_source_platform": { "description": "Order attribution field: utm_source_platform", "type": [ "string", "null" ], "context": [] }, "utm_creative_format": { "description": "Order attribution field: utm_creative_format", "type": [ "string", "null" ], "context": [] }, "utm_marketing_tactic": { "description": "Order attribution field: utm_marketing_tactic", "type": [ "string", "null" ], "context": [] }, "session_entry": { "description": "Order attribution field: session_entry", "type": [ "string", "null" ], "context": [] }, "session_start_time": { "description": "Order attribution field: session_start_time", "type": [ "string", "null" ], "context": [] }, "session_pages": { "description": "Order attribution field: session_pages", "type": [ "string", "null" ], "context": [] }, "session_count": { "description": "Order attribution field: session_count", "type": [ "string", "null" ], "context": [] }, "user_agent": { "description": "Order attribution field: user_agent", "type": [ "string", "null" ], "context": [] } } } }, "default": { "woocommerce\/order-attribution": [] }, "required": false } } } ] }, "\/wc\/store\/v1\/order\/(?P[\\d]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1\/products\/attributes": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/attributes" } ] } }, "\/wc\/store\/v1\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "attribute_id": { "description": "\u5c6c\u6027\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count", "menu_order", "name_num", "id" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ] }, "\/wc\/store\/v1\/products\/categories": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/categories" } ] } }, "\/wc\/store\/v1\/products\/categories\/(?P[\\d]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1\/products\/brands": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/brands" } ] } }, "\/wc\/store\/v1\/products\/brands\/(?P[\\w-]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "identifier": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1\/products\/collection-data": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "slug": { "description": "Limit result set to products with specific slug(s). Use commas to separate.", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u65bc\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "date_column": { "description": "\u4f7f\u7528\u4e4b\u5f8c\/\u4e4b\u524d\u9650\u5236\u56de\u61c9\u6642\uff0c\u7528\u4ee5\u6bd4\u8f03\u7684\u65e5\u671f\u6b04\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "modified", "modified_gmt" ], "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "modified", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "comment_count" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle", "variation" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "Limit result set to products assigned a set of category IDs or slugs, separated by commas.", "type": "string", "required": false }, "category_operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u76ee\u9304\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "brand": { "description": "Limit result set to products assigned a set of brand IDs or slugs, separated by commas.", "type": "string", "required": false }, "brand_operator": { "description": "Operator to compare product brand terms.", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "tag": { "description": "Limit result set to products assigned a set of tag IDs or slugs, separated by commas.", "type": "string", "required": false }, "tag_operator": { "description": "\u6bd4\u8f03\u5546\u54c1\u6a19\u7c64\u7684\u904b\u7b97\u5b50\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u6839\u64da\u6700\u4f4e\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "max_price": { "description": "\u6839\u64da\u6700\u9ad8\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "sanitize_callback": "sanitize_text_field", "validate_callback": "rest_validate_request_arg" }, "default": [], "required": false }, "attributes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u6240\u9078\u5168\u57df\u5c6c\u6027\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5c6c\u6027\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "sanitize_callback": "wc_sanitize_taxonomy_name" }, "term_id": { "description": "\u5c6c\u6027\u5b57\u8a5e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "sanitize_callback": "wp_parse_id_list" }, "slug": { "description": "\u5c6c\u6027\u4ee3\u7a31\u6e05\u55ae\u3002\u5982\u679c\u63d0\u4f9b\u5b57\u8a5e ID\uff0c\u6b64\u9805\u76ee\u6703\u88ab\u7565\u904e\u3002", "type": "array", "items": { "type": "string" }, "sanitize_callback": "wp_parse_slug_list" }, "operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u5c6c\u6027\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ] } } }, "default": [], "required": false }, "attribute_relation": { "description": "\u4e00\u6b21\u4f7f\u7528\u591a\u500b\u689d\u4ef6\u7be9\u9078\u6642\uff0c\u5404\u5c6c\u6027\u4e4b\u9593\u7684\u908f\u8f2f\u95dc\u4fc2\u3002", "type": "string", "enum": [ "in", "and" ], "default": "and", "required": false }, "catalog_visibility": { "description": "\u5224\u65b7\u662f\u5426\u986f\u793a\u96b1\u85cf\u6216\u53ef\u898b\u7684\u76ee\u9304\u7522\u54c1\u3002", "type": "string", "enum": [ "any", "visible", "catalog", "search", "hidden" ], "required": false }, "rating": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u7279\u5b9a\u5e73\u5747\u8a55\u5206\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ] }, "default": [], "required": false }, "calculate_price_range": { "description": "\u5982\u679c\u70ba\u300c\u662f\u300d\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u50f9\u683c\u7684\u6700\u4f4e\u91d1\u984d\u548c\u6700\u9ad8\u91d1\u984d\u3002", "type": "boolean", "default": false, "required": false }, "calculate_stock_status_counts": { "description": "\u5982\u679c\u70ba\u300cTrue\u300d\uff0c\u5247\u8a08\u7b97\u8a72\u7cfb\u5217\u4e2d\u7684\u5546\u54c1\u5eab\u5b58\u6578\u3002", "type": "boolean", "default": false, "required": false }, "calculate_attribute_counts": { "description": "\u5982\u6709\u8981\u6c42\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u7684\u5c6c\u6027\u5b57\u8a5e\u8a08\u6578\u3002", "type": "array", "items": { "type": "object", "properties": { "taxonomy": { "description": "\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "query_type": { "description": "Filter condition\t being performed which may affect counts. Valid values include \"and\" and \"or\".", "type": "string", "enum": [ "and", "or" ], "context": [ "view", "edit" ], "readonly": true } } }, "default": [], "required": false }, "calculate_rating_counts": { "description": "\u5982\u679c\u70ba\u300c\u662f\u300d\uff0c\u5247\u8a08\u7b97\u96c6\u5408\u4e2d\u5546\u54c1\u7684\u8a55\u5206\u6578\u3002", "type": "boolean", "default": false, "required": false }, "calculate_taxonomy_counts": { "description": "If requested, calculates taxonomy term counts for products in the collection.", "type": "array", "items": { "type": "string", "description": "\u5206\u985e\u6cd5\u540d\u7a31\u3002" }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/collection-data" } ] } }, "\/wc\/store\/v1\/products\/reviews": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "id", "rating", "product" ], "required": false }, "category_id": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a\u985e\u5225 ID \u7684\u8a55\u8ad6\u3002", "type": "string", "required": false }, "product_id": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a\u5546\u54c1 ID \u7684\u8a55\u8ad6\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/reviews" } ] } }, "\/wc\/store\/v1\/products\/tags": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u905e\u589e\u6216\u905e\u6e1b\u6392\u5e8f\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5b57\u8a5e\u5c6c\u6027\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "name", "slug", "count" ], "required": false }, "hide_empty": { "description": "\u5982\u679c\u70ba True\uff0c\u4e0d\u6703\u50b3\u56de\u7a7a\u767d\u5b57\u8a5e\u3002", "type": "boolean", "default": true, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products\/tags" } ] } }, "\/wc\/store\/v1\/products": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u5167\u8981\u50b3\u56de\u7684\u5546\u54c1\u6578\u4e0a\u9650\u3002 \u5982\u679c\u4fdd\u7559\u7a7a\u767d\uff0c\u5247\u9810\u8a2d\u70ba\u7121\u9650\u5236\u3002", "type": "integer", "default": 10, "minimum": 0, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "slug": { "description": "Limit result set to products with specific slug(s). Use commas to separate.", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u5728\u65bc\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u5efa\u7acb\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "date_column": { "description": "\u4f7f\u7528\u4e4b\u5f8c\/\u4e4b\u524d\u9650\u5236\u56de\u61c9\u6642\uff0c\u7528\u4ee5\u6bd4\u8f03\u7684\u65e5\u671f\u6b04\u3002", "type": "string", "default": "date", "enum": [ "date", "date_gmt", "modified", "modified_gmt" ], "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "modified", "id", "include", "title", "slug", "price", "popularity", "rating", "menu_order", "comment_count" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle", "variation" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "Limit result set to products assigned a set of category IDs or slugs, separated by commas.", "type": "string", "required": false }, "category_operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u76ee\u9304\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "brand": { "description": "Limit result set to products assigned a set of brand IDs or slugs, separated by commas.", "type": "string", "required": false }, "brand_operator": { "description": "Operator to compare product brand terms.", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "tag": { "description": "Limit result set to products assigned a set of tag IDs or slugs, separated by commas.", "type": "string", "required": false }, "tag_operator": { "description": "\u6bd4\u8f03\u5546\u54c1\u6a19\u7c64\u7684\u904b\u7b97\u5b50\u3002", "type": "string", "enum": [ "in", "not_in", "and" ], "default": "in", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u6839\u64da\u6700\u4f4e\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "max_price": { "description": "\u6839\u64da\u6700\u9ad8\u50f9\u683c (\u4f9d\u8ca8\u5e63\u6700\u5c0f\u55ae\u4f4d\u63d0\u4f9b) \u9650\u5b9a\u5546\u54c1\u7d50\u679c\u96c6\u3002", "type": "string", "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "sanitize_callback": "sanitize_text_field", "validate_callback": "rest_validate_request_arg" }, "default": [], "required": false }, "attributes": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u6240\u9078\u5168\u57df\u5c6c\u6027\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "object", "properties": { "attribute": { "description": "\u5c6c\u6027\u5206\u985e\u6cd5\u540d\u7a31\u3002", "type": "string", "sanitize_callback": "wc_sanitize_taxonomy_name" }, "term_id": { "description": "\u5c6c\u6027\u5b57\u8a5e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "sanitize_callback": "wp_parse_id_list" }, "slug": { "description": "\u5c6c\u6027\u4ee3\u7a31\u6e05\u55ae\u3002\u5982\u679c\u63d0\u4f9b\u5b57\u8a5e ID\uff0c\u6b64\u9805\u76ee\u6703\u88ab\u7565\u904e\u3002", "type": "array", "items": { "type": "string" }, "sanitize_callback": "wp_parse_slug_list" }, "operator": { "description": "\u7531\u64cd\u4f5c\u8005\u6bd4\u8f03\u7522\u54c1\u5c6c\u6027\u8a5e\u5f59\u3002", "type": "string", "enum": [ "in", "not_in", "and" ] } } }, "default": [], "required": false }, "attribute_relation": { "description": "\u4e00\u6b21\u4f7f\u7528\u591a\u500b\u689d\u4ef6\u7be9\u9078\u6642\uff0c\u5404\u5c6c\u6027\u4e4b\u9593\u7684\u908f\u8f2f\u95dc\u4fc2\u3002", "type": "string", "enum": [ "in", "and" ], "default": "and", "required": false }, "catalog_visibility": { "description": "\u5224\u65b7\u662f\u5426\u986f\u793a\u96b1\u85cf\u6216\u53ef\u898b\u7684\u76ee\u9304\u7522\u54c1\u3002", "type": "string", "enum": [ "any", "visible", "catalog", "search", "hidden" ], "required": false }, "rating": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u5728\u5177\u6709\u7279\u5b9a\u5e73\u5747\u8a55\u5206\u7684\u5546\u54c1\u3002", "type": "array", "items": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ] }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/store\/v1\/products" } ] } }, "\/wc\/store\/v1\/products\/(?P[\\d]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/store\/v1\/products\/(?P[\\S]+)": { "namespace": "wc\/store\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "slug": { "description": "Slug of the resource.", "type": "string", "required": false }, "context": { "description": "\u505a\u51fa\u8981\u6c42\u7684\u7bc4\u570d\uff1b\u53ef\u6c7a\u5b9a\u5728\u56de\u61c9\u4e2d\u51fa\u73fe\u7684\u6b04\u4f4d\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/private": { "namespace": "wc\/private", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/private", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/private" } ] } }, "\/wc\/private\/patterns": { "namespace": "wc\/private", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/private\/patterns" } ] } }, "\/wp-rocket\/v1": { "namespace": "wp-rocket\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wp-rocket\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1" } ] } }, "\/wp-rocket\/v1\/rocketcdn\/enable": { "namespace": "wp-rocket\/v1", "methods": [ "PUT" ], "endpoints": [ { "methods": [ "PUT" ], "args": { "email": { "required": true }, "key": { "required": true }, "url": { "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1\/rocketcdn\/enable" } ] } }, "\/wp-rocket\/v1\/rocketcdn\/disable": { "namespace": "wp-rocket\/v1", "methods": [ "PUT" ], "endpoints": [ { "methods": [ "PUT" ], "args": { "email": { "required": true }, "key": { "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1\/rocketcdn\/disable" } ] } }, "\/wp-rocket\/v1\/cpcss\/post\/(?P[\\d]+)": { "namespace": "wp-rocket\/v1", "methods": [ "POST", "DELETE" ], "endpoints": [ { "methods": [ "POST" ], "args": [] }, { "methods": [ "DELETE" ], "args": [] } ] }, "\/wp-rocket\/v1\/support": { "namespace": "wp-rocket\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "email": { "required": true }, "key": { "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1\/support" } ] } }, "\/wp-rocket\/v1\/dynamic_lists\/update": { "namespace": "wp-rocket\/v1", "methods": [ "PUT" ], "endpoints": [ { "methods": [ "PUT" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1\/dynamic_lists\/update" } ] } }, "\/wp-rocket\/v1\/options\/export": { "namespace": "wp-rocket\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-rocket\/v1\/options\/export" } ] } }, "\/wc\/v3\/wc_stripe\/connection_tokens": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/connection_tokens" } ] } }, "\/wc\/v3\/wc_stripe\/terminal\/locations": { "namespace": "wc\/v3", "methods": [ "POST", "GET" ], "endpoints": [ { "methods": [ "POST" ], "args": { "display_name": { "type": "string", "required": true }, "address": { "type": "object", "required": true } } }, { "methods": [ "GET" ], "args": { "ending_before": { "type": "string", "required": false }, "limit": { "type": "integer", "required": false }, "starting_after": { "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/terminal\/locations" } ] } }, "\/wc\/v3\/wc_stripe\/terminal\/locations\/store": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/terminal\/locations\/store" } ] } }, "\/wc\/v3\/wc_stripe\/terminal\/locations\/(?P\\w+)": { "namespace": "wc\/v3", "methods": [ "DELETE", "GET", "POST" ], "endpoints": [ { "methods": [ "DELETE" ], "args": [] }, { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": { "display_name": { "type": "string", "required": false }, "address": { "type": "object", "required": false } } } ] }, "\/wc\/v3\/wc_stripe\/orders\/(?P\\d+)\/create_customer": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v3\/wc_stripe\/orders\/(?P\\w+)\/capture_terminal_payment": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "payment_intent_id": { "required": true } } } ] }, "\/wc\/v3\/wc_stripe\/tokens\/(?P[a-z]{3}_[a-zA-Z0-9]{24})": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc\/v1\/connect\/stripe\/oauth\/init": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/stripe\/oauth\/init" } ] } }, "\/wc\/v1\/connect\/stripe\/oauth\/connect": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/stripe\/oauth\/connect" } ] } }, "\/wc\/v3\/wc_stripe\/account": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account" } ] } }, "\/wc\/v3\/wc_stripe\/account\/summary": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account\/summary" } ] } }, "\/wc\/v3\/wc_stripe\/account\/webhook-status-message": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account\/webhook-status-message" } ] } }, "\/wc\/v3\/wc_stripe\/account\/refresh": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account\/refresh" } ] } }, "\/wc\/v3\/wc_stripe\/upe_flag_toggle": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "is_upe_enabled": { "description": "Determines if the UPE feature flag is enabled.", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/upe_flag_toggle" } ] } }, "\/wc\/v3\/wc_stripe\/settings": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "is_stripe_enabled": { "description": "If Stripe should be enabled.", "type": "boolean", "required": false }, "is_test_mode_enabled": { "description": "Stripe test mode setting.", "type": "boolean", "required": false }, "enabled_payment_method_ids": { "description": "Payment method IDs that should be enabled. Other methods will be disabled.", "type": "array", "items": { "type": "string", "enum": [ "card", "alipay", "amazon_pay", "eps", "bancontact", "boleto", "ideal", "oxxo", "sepa_debit", "p24", "link", "wechat_pay", "acss_debit", "card", "alipay", "bancontact", "boleto", "eps", "giropay", "ideal", "multibanco", "oxxo", "p24", "sepa" ] }, "required": false }, "is_oc_enabled": { "description": "If Optimized Checkout should be enabled.", "type": "boolean", "required": false }, "amazon_pay_button_size": { "description": "Express checkout button sizes.", "type": "string", "enum": [ "small", "default", "large" ], "required": false }, "amazon_pay_button_locations": { "description": "Express checkout locations that should be enabled.", "type": "array", "items": { "type": "string", "enum": [ "product", "cart", "checkout" ] }, "required": false }, "is_payment_request_enabled": { "description": "If Stripe express checkouts should be enabled.", "type": "boolean", "required": false }, "payment_request_button_type": { "description": "Express checkout button types.", "type": "string", "enum": [ "default", "buy", "donate", "book" ], "required": false }, "payment_request_button_theme": { "description": "Express checkout button themes.", "type": "string", "enum": [ "dark", "light", "light-outline" ], "required": false }, "payment_request_button_size": { "description": "Express checkout button sizes.", "type": "string", "enum": [ "small", "default", "large" ], "required": false }, "payment_request_button_locations": { "description": "Express checkout locations that should be enabled.", "type": "array", "items": { "type": "string", "enum": [ "product", "cart", "checkout" ] }, "required": false }, "is_manual_capture_enabled": { "description": "If manual capture of charges should be enabled.", "type": "boolean", "required": false }, "is_saved_cards_enabled": { "description": "If \"Saved cards\" should be enabled.", "type": "boolean", "required": false }, "is_sepa_tokens_for_other_methods_enabled": { "description": "If \"SEPA tokens for other methods\" should be enabled.", "type": "boolean", "required": false }, "is_separate_card_form_enabled": { "description": "If credit card number field, expiry date field, and CVC field should be separate.", "type": "boolean", "required": false }, "is_short_statement_descriptor_enabled": { "description": "When enabled, we'll include the order number for card and express checkout transactions.", "type": "boolean", "required": false }, "is_debug_log_enabled": { "description": "When enabled, payment error logs will be saved to WooCommerce > Status > Logs.", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/settings" } ] } }, "\/wc\/v3\/wc_stripe\/settings\/payment_method_order": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "ordered_payment_method_ids": { "description": "The order for the payment method IDs to be saved.", "type": "array", "items": { "type": "string", "enum": [ "card", "alipay", "amazon_pay", "eps", "bancontact", "boleto", "ideal", "oxxo", "sepa_debit", "p24", "link", "wechat_pay", "acss_debit", "card", "alipay", "bancontact", "boleto", "eps", "giropay", "ideal", "multibanco", "oxxo", "p24", "sepa" ] }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/settings\/payment_method_order" } ] } }, "\/wc\/v3\/wc_stripe\/settings\/notice": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/settings\/notice" } ] } }, "\/wc\/v3\/wc_stripe\/account_keys": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "publishable_key": { "description": "Your Stripe API Publishable key, obtained from your Stripe dashboard.", "type": "string", "required": false }, "secret_key": { "description": "Your Stripe API Secret, obtained from your Stripe dashboard.", "type": "string", "required": false }, "webhook_secret": { "description": "Your Stripe webhook endpoint URL, obtained from your Stripe dashboard.", "type": "string", "required": false }, "test_publishable_key": { "description": "Your Stripe testing API Publishable key, obtained from your Stripe dashboard.", "type": "string", "required": false }, "test_secret_key": { "description": "Your Stripe testing API Secret, obtained from your Stripe dashboard.", "type": "string", "required": false }, "test_webhook_secret": { "description": "Your Stripe testing webhook endpoint URL, obtained from your Stripe dashboard.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account_keys" } ] } }, "\/wc\/v3\/wc_stripe\/account_keys\/test": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "publishable_key": { "description": "Your Stripe API Publishable key, obtained from your Stripe dashboard.", "type": "string", "required": false }, "secret_key": { "description": "Your Stripe API Secret, obtained from your Stripe dashboard.", "type": "string", "required": false }, "test_publishable_key": { "description": "Your Stripe testing API Publishable key, obtained from your Stripe dashboard.", "type": "string", "required": false }, "test_secret_key": { "description": "Your Stripe testing API Secret, obtained from your Stripe dashboard.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account_keys\/test" } ] } }, "\/wc\/v3\/wc_stripe\/account_keys\/configure_webhooks": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "live_mode": { "description": "Whether the account is in live mode.", "type": "boolean", "required": false }, "secret_key": { "description": "Your Stripe API Secret, obtained from your Stripe dashboard.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/account_keys\/configure_webhooks" } ] } }, "\/wc\/v3\/wc_stripe\/oc_setting_toggle": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "is_oc_enabled": { "description": "Determines if the OC setting is enabled.", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/wc_stripe\/oc_setting_toggle" } ] } }, "\/wc\/v2": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc\/v2", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2" } ] } }, "\/wc\/v2\/products\/brands": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/brands" } ] } }, "\/wc\/v2\/products\/brands\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/brands\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/brands\/batch" } ] } }, "\/wc\/v3\/products\/brands": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/brands" } ] } }, "\/wc\/v3\/products\/brands\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/brands\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/brands\/batch" } ] } }, "\/awb\/instagram": { "namespace": "awb\/instagram", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "awb\/instagram", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/awb\/instagram" } ] } }, "\/awb\/instagram\/media": { "namespace": "awb\/instagram", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/awb\/instagram\/media" } ] } }, "\/awb\/instagram\/(?P\\d+)\/children": { "namespace": "awb\/instagram", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/awb": { "namespace": "awb", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "awb", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/awb" } ] } }, "\/awb\/rendered_content": { "namespace": "awb", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/awb\/rendered_content" } ] } }, "\/wc\/v1\/connect\/tos": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/tos" } ] } }, "\/wc\/v1\/connect\/account\/settings": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/account\/settings" } ] } }, "\/wc\/v1\/connect\/services\/(?P[a-z_]+)\\\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v1\/connect\/self-help": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/self-help" } ] } }, "\/wc\/v1\/connect\/service-data-refresh": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/service-data-refresh" } ] } }, "\/wc\/v1\/connect\/packages": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] }, { "methods": [ "PUT" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/packages" } ] } }, "\/wc\/v1\/connect\/label\/(?P\\d+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v1\/connect\/label\/(?P\\d+)\/creation_eligibility": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc\/v1\/connect\/label\/(?P\\d+)\/(?P(\\d+)(,\\d+)*)": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ] }, "\/wc\/v1\/connect\/label\/(?P\\d+)\/(?P\\d+)\/refund": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v1\/connect\/label\/preview": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/label\/preview" } ] } }, "\/wc\/v1\/connect\/label\/print": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/label\/print" } ] } }, "\/wc\/v1\/connect\/label\/(?P\\d+)\/rates": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v1\/connect\/normalize-address": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/normalize-address" } ] } }, "\/wc\/v1\/connect\/assets": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/assets" } ] } }, "\/wc\/v1\/connect\/shipping\/carrier": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/shipping\/carrier" } ] } }, "\/wc\/v1\/connect\/subscription\/(?P.+)\/activate": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ] }, "\/wc\/v1\/connect\/shipping\/carrier\/(?P.+)": { "namespace": "wc\/v1", "methods": [ "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": [] } ] }, "\/wc\/v1\/connect\/shipping\/carrier-types": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/shipping\/carrier-types" } ] } }, "\/wc\/v1\/connect\/migration-flag": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/migration-flag" } ] } }, "\/wc\/v1\/connect\/shipping\/carriers": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/shipping\/carriers" } ] } }, "\/wc\/v1\/connect\/subscriptions": { "namespace": "wc\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/connect\/subscriptions" } ] } }, "\/wc\/v1\/coupons": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "filter": { "type": "object", "description": "\u4f7f\u7528 WP \u67e5\u8a62\u5f15\u6578\u4f86\u4fee\u6539\u56de\u61c9\uff1b\u79c1\u4eba\u67e5\u8a62\u8b8a\u6578\u9700\u8981\u9069\u7576\u7684\u6388\u6b0a\u3002", "required": false }, "code": { "description": "\u900f\u904e\u7279\u5b9a\u4ee3\u78bc\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": true }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "discount_type": { "default": "fixed_cart", "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "expiry_date": { "description": "\u512a\u60e0\u5238\u5230\u671f\u6642\u4f7f\u7528 UTC \u65e5\u671f\u6642\u9593\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/coupons" } ] } }, "\/wc\/v1\/coupons\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "expiry_date": { "description": "\u512a\u60e0\u5238\u5230\u671f\u6642\u4f7f\u7528 UTC \u65e5\u671f\u6642\u9593\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v1\/coupons\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "expiry_date": { "description": "\u512a\u60e0\u5238\u5230\u671f\u6642\u4f7f\u7528 UTC \u65e5\u671f\u6642\u9593\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/coupons\/batch" } ] } }, "\/wc\/v1\/customers\/(?P[\\d]+)\/downloads": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "customer_id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ] }, "\/wc\/v1\/customers": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "name", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "include", "name", "registered_date" ], "type": "string", "required": false }, "email": { "description": "\u900f\u904e\u7279\u5b9a\u96fb\u5b50\u90f5\u4ef6\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "format": "email", "required": false }, "role": { "description": "\u900f\u904e\u7279\u5b9a\u89d2\u8272\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "default": "customer", "enum": [ "all", "administrator", "editor", "author", "contributor", "subscriber", "customer", "shop_manager", "pending_user", "aioseo_manager", "aioseo_editor", "affiliate" ], "required": false } } }, { "methods": [ "POST" ], "args": { "email": { "type": "string", "description": "\u65b0\u4f7f\u7528\u8005\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "required": true }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u65b0\u4f7f\u7528\u8005\u540d\u7a31", "type": "string", "required": false }, "password": { "description": "\u65b0\u4f7f\u7528\u8005\u5bc6\u78bc", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/customers" } ] } }, "\/wc\/v1\/customers\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false }, "reassign": { "default": 0, "type": "integer", "description": "\u91cd\u65b0\u6307\u6d3e\u6587\u7ae0\u7684\u7de8\u865f\u3002", "required": false } } } ] }, "\/wc\/v1\/customers\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/customers\/batch" } ] } }, "\/wc\/v1\/orders\/(?P[\\d]+)\/notes": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "note": { "type": "string", "description": "\u8a02\u55ae\u5099\u8a3b\u7684\u5167\u5bb9", "required": true }, "customer_note": { "default": false, "description": "\u986f\u793a\/\u5b9a\u7fa9\u5099\u8a3b\u662f\u5426\u50c5\u4f9b\u53c3\u7167\u6216\u4f9b\u5ba2\u6236\u4f7f\u7528 (\u6703\u901a\u77e5\u5ba2\u6236)\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v1\/orders\/(?P[\\d]+)\/notes\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/orders\/(?P[\\d]+)\/refunds": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "filter": { "type": "object", "description": "\u4f7f\u7528 WP \u67e5\u8a62\u5f15\u6578\u4f86\u4fee\u6539\u56de\u61c9\uff1b\u79c1\u4eba\u67e5\u8a62\u8b8a\u6578\u9700\u8981\u9069\u7576\u7684\u6388\u6b0a\u3002", "required": false }, "status": { "default": "any", "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "amount": { "description": "\u9000\u6b3e\u91d1\u984d\u3002", "type": "string", "required": false }, "reason": { "description": "\u7533\u8acb\u539f\u56e0\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v1\/orders\/(?P[\\d]+)\/refunds\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/orders": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "filter": { "type": "object", "description": "\u4f7f\u7528 WP \u67e5\u8a62\u5f15\u6578\u4f86\u4fee\u6539\u56de\u61c9\uff1b\u79c1\u4eba\u67e5\u8a62\u8b8a\u6578\u9700\u8981\u9069\u7576\u7684\u6388\u6b0a\u3002", "required": false }, "status": { "default": "any", "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "default": "pending", "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "default": "HKD", "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "default": 0, "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "set_paid": { "default": false, "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "price": { "description": "\u5546\u54c1\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta": { "description": "\u9805\u76ee\u4f8b\u7684\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u5143\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true } } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/orders" } ] } }, "\/wc\/v1\/orders\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "price": { "description": "\u5546\u54c1\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta": { "description": "\u9805\u76ee\u4f8b\u7684\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u5143\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true } } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v1\/orders\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u9996\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u6b21\u6b04\u5730\u5740", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "price": { "description": "\u5546\u54c1\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta": { "description": "\u9805\u76ee\u4f8b\u7684\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u5143\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ], "readonly": true } } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/orders\/batch" } ] } }, "\/wc\/v1\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v1\/products\/attributes\/(?P[\\d]+)\/terms\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/products\/attributes\/(?P[\\d]+)\/terms\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v1\/products\/attributes": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "type": "string", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "default": "select", "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "default": "menu_order", "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "default": false, "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/attributes" } ] } }, "\/wc\/v1\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/products\/attributes\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/attributes\/batch" } ] } }, "\/wc\/v1\/products\/categories": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/categories" } ] } }, "\/wc\/v1\/products\/categories\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/products\/categories\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/categories\/batch" } ] } }, "\/wc\/v1\/products\/(?P[\\d]+)\/reviews": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "review": { "type": "string", "description": "\u8a55\u8ad6\u5167\u5bb9\u3002", "required": true }, "date_created": { "description": "\u5716\u7247\u6aa2\u95b1\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8a55\u8ad6\u8005\u540d\u7a31\u3002", "required": true }, "email": { "type": "string", "description": "\u8a55\u8ad6\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u3002", "required": true } } } ] }, "\/wc\/v1\/products\/(?P[\\d]+)\/reviews\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "date_created": { "description": "\u5716\u7247\u6aa2\u95b1\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v1\/products\/shipping_classes": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/shipping_classes" } ] } }, "\/wc\/v1\/products\/shipping_classes\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/products\/shipping_classes\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/shipping_classes\/batch" } ] } }, "\/wc\/v1\/products\/tags": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/tags" } ] } }, "\/wc\/v1\/products\/tags\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/products\/tags\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/tags\/batch" } ] } }, "\/wc\/v1\/products": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "filter": { "type": "object", "description": "\u4f7f\u7528 WP \u67e5\u8a62\u5f15\u6578\u4f86\u4fee\u6539\u56de\u61c9\uff1b\u79c1\u4eba\u67e5\u8a62\u8b8a\u6578\u9700\u8981\u9069\u7576\u7684\u6388\u6b0a\u3002", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "sku": { "description": "\u900f\u904e\u7279\u5b9a SKU \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "default": "simple", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "default": "publish", "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "default": false, "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "default": "visible", "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "download_type": { "default": "standard", "description": "\u4e0b\u8f09\u985e\u578b\uff0c\u9019\u6703\u63a7\u5236\u524d\u7aef\u7684\u7d50\u69cb\u63cf\u8ff0\u3002", "type": "string", "enum": [ "standard" ], "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "default": true, "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "default": false, "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "default": true, "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u8ffd\u52a0\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "variations": { "description": "\u8b8a\u6578\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u8b8a\u6578\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "date_created": { "description": "\u8b8a\u6578\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u8b8a\u6578\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "permalink": { "description": "\u8b8a\u6578 URL\u3002", "type": "string", "format": "uri", "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "price": { "description": "\u76ee\u524d\u8b8a\u6578\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ] }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "on_sale": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u5728\u7279\u50f9\u4fc3\u92b7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "purchasable": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u4ee5\u8cfc\u8cb7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "visible": { "description": "\u82e5\u5546\u54c1\u898f\u683c\u70ba\u53ef\u898b.", "type": "boolean", "context": [ "view", "edit" ] }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "default": "taxable", "enum": [ "taxable", "shipping", "none" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "context": [ "view", "edit" ] }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "default": false, "context": [ "view", "edit" ] }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "in_stock": { "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "default": true, "context": [ "view", "edit" ] }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "default": "no", "enum": [ "no", "notify", "yes" ], "context": [ "view", "edit" ] }, "backorders_allowed": { "description": "\u986f\u793a\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "backordered": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u9810\u8a02\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "context": [ "view", "edit" ] }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "shipping_class_id": { "description": "\u904b\u9001\u985e\u5225 ID\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products" } ] } }, "\/wc\/v1\/products\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "download_type": { "description": "\u4e0b\u8f09\u985e\u578b\uff0c\u9019\u6703\u63a7\u5236\u524d\u7aef\u7684\u7d50\u69cb\u63cf\u8ff0\u3002", "type": "string", "enum": [ "standard" ], "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u8ffd\u52a0\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "variations": { "description": "\u8b8a\u6578\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u8b8a\u6578\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "date_created": { "description": "\u8b8a\u6578\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u8b8a\u6578\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "permalink": { "description": "\u8b8a\u6578 URL\u3002", "type": "string", "format": "uri", "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "price": { "description": "\u76ee\u524d\u8b8a\u6578\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ] }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "on_sale": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u5728\u7279\u50f9\u4fc3\u92b7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "purchasable": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u4ee5\u8cfc\u8cb7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "visible": { "description": "\u82e5\u5546\u54c1\u898f\u683c\u70ba\u53ef\u898b.", "type": "boolean", "context": [ "view", "edit" ] }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "default": "taxable", "enum": [ "taxable", "shipping", "none" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "context": [ "view", "edit" ] }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "default": false, "context": [ "view", "edit" ] }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "in_stock": { "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "default": true, "context": [ "view", "edit" ] }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "default": "no", "enum": [ "no", "notify", "yes" ], "context": [ "view", "edit" ] }, "backorders_allowed": { "description": "\u986f\u793a\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "backordered": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u9810\u8a02\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "context": [ "view", "edit" ] }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "shipping_class_id": { "description": "\u904b\u9001\u985e\u5225 ID\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v1\/products\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "download_type": { "description": "\u4e0b\u8f09\u985e\u578b\uff0c\u9019\u6703\u63a7\u5236\u524d\u7aef\u7684\u7d50\u69cb\u63cf\u8ff0\u3002", "type": "string", "enum": [ "standard" ], "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u8ffd\u52a0\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "variations": { "description": "\u8b8a\u6578\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u8b8a\u6578\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "date_created": { "description": "\u8b8a\u6578\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u8b8a\u6578\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "permalink": { "description": "\u8b8a\u6578 URL\u3002", "type": "string", "format": "uri", "context": [ "view", "edit" ], "readonly": true }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "price": { "description": "\u76ee\u524d\u8b8a\u6578\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "context": [ "view", "edit" ] }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u958b\u59cb\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7d50\u675f\u65e5\u671f\u3002", "type": "string", "context": [ "view", "edit" ] }, "on_sale": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u5728\u7279\u50f9\u4fc3\u92b7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "purchasable": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u4ee5\u8cfc\u8cb7\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "visible": { "description": "\u82e5\u5546\u54c1\u898f\u683c\u70ba\u53ef\u898b.", "type": "boolean", "context": [ "view", "edit" ] }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "default": null, "context": [ "view", "edit" ] }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "default": "taxable", "enum": [ "taxable", "shipping", "none" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "context": [ "view", "edit" ] }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "default": false, "context": [ "view", "edit" ] }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "in_stock": { "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "default": true, "context": [ "view", "edit" ] }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "default": "no", "enum": [ "no", "notify", "yes" ], "context": [ "view", "edit" ] }, "backorders_allowed": { "description": "\u986f\u793a\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "backordered": { "description": "\u986f\u793a\u8b8a\u6578\u662f\u5426\u53ef\u9810\u8a02\u3002", "type": "boolean", "context": [ "view", "edit" ], "readonly": true }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "context": [ "view", "edit" ] }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "shipping_class_id": { "description": "\u904b\u9001\u985e\u5225 ID\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "context": [ "view", "edit" ], "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/products\/batch" } ] } }, "\/wc\/v1\/reports\/sales": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/reports\/sales" } ] } }, "\/wc\/v1\/reports\/top_sellers": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/reports\/top_sellers" } ] } }, "\/wc\/v1\/reports": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/reports" } ] } }, "\/wc\/v1\/taxes\/classes": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u7a05\u91d1\u985e\u5225\u540d\u7a31\u3002", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/taxes\/classes" } ] } }, "\/wc\/v1\/taxes\/classes\/(?P\\w[\\w\\s\\-]*)": { "namespace": "wc\/v1", "methods": [ "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u4ee3\u7a31\u3002", "type": "string", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/taxes": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "order", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "order", "priority" ], "type": "string", "required": false }, "class": { "description": "\u4f9d\u7a05\u7387\u985e\u5225.", "enum": [ "standard", "reduced-rate", "zero-rate" ], "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "default": 1, "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "default": false, "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "default": true, "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "default": "standard", "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/taxes" } ] } }, "\/wc\/v1\/taxes\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/taxes\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/taxes\/batch" } ] } }, "\/wc\/v1\/webhooks": { "namespace": "wc\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "title" ], "required": false }, "status": { "default": "all", "description": "Limit result set to webhooks assigned a specific status.", "type": "string", "enum": [ "all", "active", "paused", "disabled" ], "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "default": "active", "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "type": "string", "description": "Webhook topic.", "required": true }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false }, "delivery_url": { "type": "string", "description": "Webhook delivery URL.", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/webhooks" } ] } }, "\/wc\/v1\/webhooks\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v1\/webhooks\/batch": { "namespace": "wc\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v1\/webhooks\/batch" } ] } }, "\/wc\/v1\/webhooks\/(?P[\\d]+)\/deliveries": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "webhook_id": { "description": "Webhook \u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/v1\/webhooks\/(?P[\\d]+)\/deliveries\/(?P[\\d]+)": { "namespace": "wc\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "webhook_id": { "description": "Webhook \u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/v2\/coupons": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "code": { "description": "\u900f\u904e\u7279\u5b9a\u4ee3\u78bc\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": true }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "default": "fixed_cart", "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/coupons" } ] } }, "\/wc\/v2\/coupons\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/coupons\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/coupons\/batch" } ] } }, "\/wc\/v2\/customers\/(?P[\\d]+)\/downloads": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "customer_id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ] }, "\/wc\/v2\/customers": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "name", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "include", "name", "registered_date" ], "type": "string", "required": false }, "email": { "description": "\u900f\u904e\u7279\u5b9a\u96fb\u5b50\u90f5\u4ef6\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "format": "email", "required": false }, "role": { "description": "\u900f\u904e\u7279\u5b9a\u89d2\u8272\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "default": "customer", "enum": [ "all", "administrator", "editor", "author", "contributor", "subscriber", "customer", "shop_manager", "pending_user", "aioseo_manager", "aioseo_editor", "affiliate" ], "required": false } } }, { "methods": [ "POST" ], "args": { "email": { "type": "string", "description": "\u65b0\u4f7f\u7528\u8005\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "required": true }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u65b0\u4f7f\u7528\u8005\u540d\u7a31", "type": "string", "required": false }, "password": { "description": "\u65b0\u4f7f\u7528\u8005\u5bc6\u78bc", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/customers" } ] } }, "\/wc\/v2\/customers\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false }, "reassign": { "default": 0, "type": "integer", "description": "\u91cd\u65b0\u6307\u6d3e\u6587\u7ae0\u7684\u7de8\u865f\u3002", "required": false } } } ] }, "\/wc\/v2\/customers\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/customers\/batch" } ] } }, "\/wc\/v2\/orders\/network": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": "any", "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "trash", "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/orders\/network" } ] } }, "\/wc\/v2\/orders\/(?P[\\d]+)\/notes": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "type": { "default": "any", "description": "\u9650\u5236\u5ba2\u6236\u6216\u5167\u90e8\u8a18\u9304\u7684\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "customer", "internal" ], "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "note": { "type": "string", "description": "\u8a02\u55ae\u5099\u8a3b\u7684\u5167\u5bb9", "required": true }, "customer_note": { "default": false, "description": "\u5176\u503c\u70ba true \u6642\uff0c\u5c07\u6703\u5411\u9867\u5ba2\u986f\u793a\u5099\u8a3b\uff0c\u9867\u5ba2\u4fbf\u6703\u6536\u5230\u901a\u77e5\u3002\u5176\u503c\u70ba false \u6642\uff0c\u5099\u8a3b\u5c07\u50c5\u4f9b\u7ba1\u7406\u54e1\u53c3\u8003\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v2\/orders\/(?P[\\d]+)\/notes\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/orders\/(?P[\\d]+)\/refunds": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "amount": { "description": "\u9000\u6b3e\u91d1\u984d\u3002", "type": "string", "required": false }, "reason": { "description": "\u7533\u8acb\u539f\u56e0\u3002", "type": "string", "required": false }, "refunded_by": { "description": "\u4f7f\u7528\u8005\u9000\u6b3e\u5f8c\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "api_refund": { "default": true, "description": "\u5982\u679c\u6b63\u78ba\uff0c\u4ed8\u6b3e\u9598\u9053 API \u53ef\u7528\u65bc\u8655\u7406\u9000\u6b3e\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v2\/orders\/(?P[\\d]+)\/refunds\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/orders": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": "any", "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "trash", "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "default": "pending", "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "default": "HKD", "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "default": 0, "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "default": false, "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/orders" } ] } }, "\/wc\/v2\/orders\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/orders\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/orders\/batch" } ] } }, "\/wc\/v2\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v2\/products\/attributes\/(?P[\\d]+)\/terms\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/attributes\/(?P[\\d]+)\/terms\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v2\/products\/attributes": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "type": "string", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "default": "select", "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "default": "menu_order", "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "default": false, "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/attributes" } ] } }, "\/wc\/v2\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/attributes\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/attributes\/batch" } ] } }, "\/wc\/v2\/products\/categories": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/categories" } ] } }, "\/wc\/v2\/products\/categories\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/categories\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "title": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/categories\/batch" } ] } }, "\/wc\/v2\/products\/(?P[\\d]+)\/reviews": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "review": { "type": "string", "description": "\u8a55\u8ad6\u5167\u5bb9\u3002", "required": true }, "date_created": { "description": "\u5716\u7247\u6aa2\u95b1\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u8a55\u50f9\u7684\u5efa\u7acb\u65e5\u671f\uff0c\u4ee5\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593(GMT)\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8a55\u8ad6\u8005\u540d\u7a31\u3002", "required": true }, "email": { "type": "string", "description": "\u8a55\u8ad6\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u3002", "required": true } } } ] }, "\/wc\/v2\/products\/(?P[\\d]+)\/reviews\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "date_created": { "description": "\u5716\u7247\u6aa2\u95b1\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u8a55\u50f9\u7684\u5efa\u7acb\u65e5\u671f\uff0c\u4ee5\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593(GMT)\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/products\/(?P[\\d]+)\/reviews\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "date_created": { "description": "\u5716\u7247\u6aa2\u95b1\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u8a55\u50f9\u7684\u5efa\u7acb\u65e5\u671f\uff0c\u4ee5\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593(GMT)\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v2\/products\/shipping_classes": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/shipping_classes" } ] } }, "\/wc\/v2\/products\/shipping_classes\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/shipping_classes\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/shipping_classes\/batch" } ] } }, "\/wc\/v2\/products\/tags": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/tags" } ] } }, "\/wc\/v2\/products\/tags\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/products\/tags\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/tags\/batch" } ] } }, "\/wc\/v2\/products": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "in_stock": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u5eab\u5b58\u6216\u7f3a\u8ca8\u7522\u54c1\u3002", "type": "boolean", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "default": "simple", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "default": "publish", "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "default": false, "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "default": "visible", "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "default": true, "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "default": false, "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "default": true, "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "string" } } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "grouped_products": { "description": "\u540c\u7d44\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products" } ] } }, "\/wc\/v2\/products\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "string" } } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "grouped_products": { "description": "\u540c\u7d44\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v2\/products\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u5546\u54c1\u5728\u524d\u53f0\u662f\u5426\u6703\u88ab\u986f\u793a\u70ba\"\u6709\u5eab\u5b58\"\u6216\"\u7121\u5eab\u5b58\"\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "string" } } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "grouped_products": { "description": "\u540c\u7d44\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/products\/batch" } ] } }, "\/wc\/v2\/products\/(?P[\\d]+)\/variations": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "in_stock": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u5eab\u5b58\u6216\u7f3a\u8ca8\u7522\u54c1\u3002", "type": "boolean", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "visible": { "default": true, "description": "\u5b9a\u7fa9\u7522\u54c1\u9801\u662f\u5426\u986f\u793a\u8b8a\u5316\u985e\u578b\u3002", "type": "boolean", "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "default": true, "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ] }, "\/wc\/v2\/products\/(?P[\\d]+)\/variations\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "visible": { "description": "\u5b9a\u7fa9\u7522\u54c1\u9801\u662f\u5426\u986f\u793a\u8b8a\u5316\u985e\u578b\u3002", "type": "boolean", "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/products\/(?P[\\d]+)\/variations\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4f7f\u7528 GMT \u683c\u5f0f\u3002", "type": [ "null", "string" ], "required": false }, "visible": { "description": "\u5b9a\u7fa9\u7522\u54c1\u9801\u662f\u5426\u986f\u793a\u8b8a\u5316\u985e\u578b\u3002", "type": "boolean", "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "in_stock": { "description": "\u63a7\u5236\u8b8a\u6578\u662f\u5426\u5728\u524d\u7aef\u5217\u70ba\u300c\u5b58\u8ca8\u300d\u6216\u300c\u7121\u5b58\u8ca8\u300d\u3002", "type": "boolean", "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5716\u7247\u4f4d\u7f6e. 0 \u4ee3\u8868\u6b64\u5716\u70ba\u7279\u8272\u5716\u7247.", "type": "integer", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ] }, "\/wc\/v2\/reports\/sales": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/reports\/sales" } ] } }, "\/wc\/v2\/reports\/top_sellers": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/reports\/top_sellers" } ] } }, "\/wc\/v2\/reports": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/reports" } ] } }, "\/wc\/v2\/settings": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/settings" } ] } }, "\/wc\/v2\/settings\/(?P[\\w-]+)": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v2\/settings\/(?P[\\w-]+)\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc\/v2\/settings\/(?P[\\w-]+)\/(?P[\\w-]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc\/v2\/shipping\/zones": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u904b\u9001\u5340\u57df\u540d\u7a31", "required": true }, "order": { "description": "\u904b\u9001\u5340\u57df\u6392\u5e8f\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/shipping\/zones" } ] } }, "\/wc\/v2\/shipping\/zones\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "name": { "description": "\u904b\u9001\u5340\u57df\u540d\u7a31", "type": "string", "required": false }, "order": { "description": "\u904b\u9001\u5340\u57df\u6392\u5e8f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/shipping\/zones\/(?P[\\d]+)\/locations": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "code": { "description": "\u904b\u9001\u5340\u57df\u4f4d\u7f6e\u4ee3\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u904b\u9001\u5340\u57df\u4f4d\u7f6e\u985e\u578b\u3002", "type": "string", "enum": [ "postcode", "state", "country", "continent" ], "required": false } } } ] }, "\/wc\/v2\/shipping\/zones\/(?P[\\d]+)\/methods": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "order": { "description": "\u904b\u9001\u65b9\u5f0f\u6392\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u904b\u9001\u65b9\u5f0f\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u904b\u9001\u65b9\u5f0f\u8a2d\u5b9a", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "required": true } } } ] }, "\/wc\/v2\/shipping\/zones\/(?P[\\d]+)\/methods\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "order": { "description": "\u904b\u9001\u65b9\u5f0f\u6392\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u904b\u9001\u65b9\u5f0f\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u904b\u9001\u65b9\u5f0f\u8a2d\u5b9a", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v2\/taxes\/classes": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u7a05\u91d1\u985e\u5225\u540d\u7a31\u3002", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/taxes\/classes" } ] } }, "\/wc\/v2\/taxes\/classes\/(?P\\w[\\w\\s\\-]*)": { "namespace": "wc\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u4ee3\u7a31\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u4ee3\u7a31\u3002", "type": "string", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/taxes": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "order", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "order", "priority" ], "type": "string", "required": false }, "class": { "description": "\u4f9d\u7a05\u7387\u985e\u5225.", "enum": [ "standard", "reduced-rate", "zero-rate" ], "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "default": 1, "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "default": false, "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "default": true, "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "default": "standard", "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/taxes" } ] } }, "\/wc\/v2\/taxes\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/taxes\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/taxes\/batch" } ] } }, "\/wc\/v2\/webhooks": { "namespace": "wc\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "title" ], "required": false }, "status": { "default": "all", "description": "Limit result set to webhooks assigned a specific status.", "type": "string", "enum": [ "all", "active", "paused", "disabled" ], "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "default": "active", "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "type": "string", "description": "Webhook topic.", "required": true }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false }, "delivery_url": { "type": "string", "description": "Webhook delivery URL.", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/webhooks" } ] } }, "\/wc\/v2\/webhooks\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v2\/webhooks\/batch": { "namespace": "wc\/v2", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/webhooks\/batch" } ] } }, "\/wc\/v2\/webhooks\/(?P[\\d]+)\/deliveries": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "webhook_id": { "description": "Webhook \u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/v2\/webhooks\/(?P[\\d]+)\/deliveries\/(?P[\\d]+)": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "webhook_id": { "description": "Webhook \u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ] }, "\/wc\/v2\/system_status": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/system_status" } ] } }, "\/wc\/v2\/system_status\/tools": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/system_status\/tools" } ] } }, "\/wc\/v2\/system_status\/tools\/(?P[\\w-]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u5de5\u5177\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "name": { "description": "\u5de5\u5177\u540d\u7a31\u3002", "type": "string", "required": false }, "action": { "description": "\u904b\u884c\u8a72\u5de5\u5177\u5c07\u6703\u505a\u4ec0\u9ebc\u3002", "type": "string", "required": false }, "description": { "description": "\u5de5\u5177\u63cf\u8ff0\u3002", "type": "string", "required": false }, "success": { "description": "\u5de5\u5177\u662f\u5426\u6210\u529f\u904b\u884c\uff1f", "type": "boolean", "required": false }, "message": { "description": "\u5de5\u5177\u56de\u50b3\u8a0a\u606f\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v2\/shipping_methods": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/shipping_methods" } ] } }, "\/wc\/v2\/shipping_methods\/(?P[\\w-]+)": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ] }, "\/wc\/v2\/payment_gateways": { "namespace": "wc\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v2\/payment_gateways" } ] } }, "\/wc\/v2\/payment_gateways\/(?P[\\w-]+)": { "namespace": "wc\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "title": { "description": "\u7d50\u5e33\u6642\uff0c\u4ed8\u6b3e\u9598\u9053\u7684\u6a19\u984c\u3002", "type": "string", "required": false }, "description": { "description": "\u7d50\u5e33\u6642\uff0c\u4ed8\u6b3e\u9598\u9053\u7684\u8aaa\u660e\u3002", "type": "string", "required": false }, "order": { "description": "\u4ed8\u6b3e\u9598\u9053\u65b9\u5f0f\u6392\u5e8f\u9806\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u4ed8\u6b3e\u9598\u9053\u65b9\u5f0f\u5df2\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u4ed8\u6b3e\u9598\u9053\u8a2d\u5b9a\u3002", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false } } } ] }, "\/wc\/v3\/coupons": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "code": { "description": "\u900f\u904e\u7279\u5b9a\u4ee3\u78bc\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": true }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "default": "fixed_cart", "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "default": false, "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/coupons" } ] } }, "\/wc\/v3\/coupons\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/coupons\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": "string", "required": false }, "amount": { "description": "\u6298\u6263\u91d1\u984d\u3002\u61c9\u5747\u8a2d\u70ba\u6578\u5b57\uff0c\u6216\u662f\u8a2d\u7f6e\u70ba\u767e\u5206\u6bd4\u7684\u6578\u5b57\u3002", "type": "string", "required": false }, "status": { "description": "\u512a\u60e0\u5238\u72c0\u614b\u3002 \u61c9\u4e00\u5f8b\u70ba\u8349\u7a3f\u3001\u5df2\u767c\u8868\u6216\u5f85\u5be9\u4e2d", "type": "string", "required": false }, "discount_type": { "description": "\u6c7a\u5b9a\u8981\u5957\u7528\u7684\u6298\u6263\u985e\u578b\u3002", "type": "string", "enum": [ "percent", "fixed_cart", "fixed_product" ], "required": false }, "description": { "description": "\u512a\u60e0\u5238\u63cf\u8ff0\u3002", "type": "string", "required": false }, "date_expires": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_expires_gmt": { "description": "\u512a\u60e0\u5238\u5230\u671f\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "individual_use": { "description": "\u5982\u679c\u662f\uff0c\u9019\u5f35\u512a\u60e0\u5238\u5c31\u53ea\u80fd\u55ae\u7368\u4f7f\u7528\u3002\u8cfc\u7269\u8eca\u88e1\u82e5\u6709\u5176\u5b83\u512a\u60e0\u5238\u5c31\u6703\u88ab\u79fb\u9664\u3002", "type": "boolean", "required": false }, "product_ids": { "description": "\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_ids": { "description": "\u7121\u6cd5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "usage_limit": { "description": "\u7e3d\u5171\u53ef\u4ee5\u4f7f\u7528\u591a\u5c11\u6b21\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "usage_limit_per_user": { "description": "\u6bcf\u4f4d\u5ba2\u6236\u53ef\u4ee5\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "limit_usage_to_x_items": { "description": "\u8cfc\u7269\u8eca\u4e2d\u7684\u9805\u76ee\u6700\u591a\u53ef\u4ee5\u4f7f\u7528\u5e7e\u5f35\u512a\u60e0\u5238\u3002", "type": "integer", "required": false }, "free_shipping": { "description": "\u5982\u679c\u662f\uff0c\u800c\u4e14\u514d\u904b\u8cbb\u9700\u8981\u4e00\u5f35\u512a\u60e0\u5238\uff0c\u6b64\u5f35\u512a\u60e0\u5238\u5c07\u7d66\u4e88\u514d\u904b\u8cbb\u3002", "type": "boolean", "required": false }, "product_categories": { "description": "\u53ef\u4f7f\u7528\u512a\u60e0\u5238\u7684\u5206\u985e ID \u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "excluded_product_categories": { "description": "\u512a\u60e0\u5238\u4e0d\u9069\u7528\u65bc\u5206\u985e ID \u5217\u8868\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "exclude_sale_items": { "description": "\u5982\u679c\u662f\uff0c\u8a72\u512a\u60e0\u5238\u5c07\u4e0d\u80fd\u7528\u65bc\u6298\u6263\u50f9\u7684\u5546\u54c1\u3002", "type": "boolean", "required": false }, "minimum_amount": { "description": "\u8cfc\u7269\u8eca\u4e2d\u9700\u8981\u591a\u5c11\u8a02\u55ae\u50f9\u683c\u624d\u80fd\u4f7f\u7528\u512a\u60e0\u5238\u3002", "type": "string", "required": false }, "maximum_amount": { "description": "\u4f7f\u7528\u512a\u60e0\u5238\u7684\u6700\u5927\u8a02\u55ae\u50f9\u683c\u3002", "type": "string", "required": false }, "email_restrictions": { "description": "\u53ef\u4ee5\u4f7f\u7528\u6b64\u512a\u60e0\u5238\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u5217\u8868\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/coupons\/batch" } ] } }, "\/wc\/v3\/customers\/(?P[\\d]+)\/downloads": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "customer_id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ] }, "\/wc\/v3\/customers": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "name", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "include", "name", "registered_date" ], "type": "string", "required": false }, "email": { "description": "\u900f\u904e\u7279\u5b9a\u96fb\u5b50\u90f5\u4ef6\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "format": "email", "required": false }, "role": { "description": "\u900f\u904e\u7279\u5b9a\u89d2\u8272\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "default": "customer", "enum": [ "all", "administrator", "editor", "author", "contributor", "subscriber", "customer", "shop_manager", "pending_user", "aioseo_manager", "aioseo_editor", "affiliate" ], "required": false } } }, { "methods": [ "POST" ], "args": { "email": { "type": "string", "description": "\u65b0\u4f7f\u7528\u8005\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "required": true }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u65b0\u4f7f\u7528\u8005\u540d\u7a31", "type": "string", "required": false }, "password": { "description": "\u65b0\u4f7f\u7528\u8005\u5bc6\u78bc", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/customers" } ] } }, "\/wc\/v3\/customers\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false }, "reassign": { "default": 0, "type": "integer", "description": "\u91cd\u65b0\u6307\u6d3e\u6587\u7ae0\u7684\u7de8\u865f\u3002", "required": false } } } ] }, "\/wc\/v3\/customers\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "email": { "description": "\u5ba2\u6236\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "required": false }, "first_name": { "description": "\u5ba2\u6236\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u5ba2\u6236\u59d3\u6c0f\u3002", "type": "string", "required": false }, "username": { "description": "\u5ba2\u6236\u767b\u5165\u540d\u5b57\u3002", "type": "string", "required": false }, "password": { "description": "\u5ba2\u6236\u5bc6\u78bc\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": "string", "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u9001\u8ca8\u5730\u5740\u5217\u8868", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": "\u570b\u5bb6 ISO \u7de8\u865f.", "type": "string", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/customers\/batch" } ] } }, "\/wc\/v3\/layout-templates": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "area": { "description": "Area to get templates for.", "type": "string", "default": "", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/layout-templates" } ] } }, "\/wc\/v3\/layout-templates\/(?P\\w[\\w\\s\\-]*)": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } } ] }, "\/wc\/v3\/orders\/network": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": "any", "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "trash", "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/orders\/network" } ] } }, "\/wc\/v3\/orders\/(?P[\\d]+)\/notes": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "type": { "default": "any", "description": "\u9650\u5236\u5ba2\u6236\u6216\u5167\u90e8\u8a18\u9304\u7684\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "customer", "internal" ], "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "note": { "type": "string", "description": "\u8a02\u55ae\u5099\u8a3b\u7684\u5167\u5bb9", "required": true }, "customer_note": { "default": false, "description": "\u5176\u503c\u70ba true \u6642\uff0c\u5c07\u6703\u5411\u9867\u5ba2\u986f\u793a\u5099\u8a3b\uff0c\u9867\u5ba2\u4fbf\u6703\u6536\u5230\u901a\u77e5\u3002\u5176\u503c\u70ba false \u6642\uff0c\u5099\u8a3b\u5c07\u50c5\u4f9b\u7ba1\u7406\u54e1\u53c3\u8003\u3002", "type": "boolean", "required": false }, "added_by_user": { "default": false, "description": "\u5176\u503c\u70ba true \u6642\uff0c\u6b64\u5099\u8a3b\u5c07\u6b78\u65bc\u76ee\u524d\u7684\u4f7f\u7528\u8005\u3002\u5176\u503c\u70ba false \u6642\uff0c\u6b64\u5099\u8a3b\u5c07\u6b78\u65bc\u7cfb\u7d71\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/notes\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/refunds": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "amount": { "description": "\u9000\u6b3e\u91d1\u984d\u3002", "type": "string", "required": false }, "reason": { "description": "\u7533\u8acb\u539f\u56e0\u3002", "type": "string", "required": false }, "refunded_by": { "description": "\u4f7f\u7528\u8005\u9000\u6b3e\u5f8c\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "api_refund": { "default": true, "description": "\u5982\u679c\u6b63\u78ba\uff0c\u4ed8\u6b3e\u9598\u9053 API \u53ef\u7528\u65bc\u8655\u7406\u9000\u6b3e\u3002", "type": "boolean", "required": false }, "api_restock": { "default": true, "description": "\u82e5\u70ba true\uff0c\u9000\u6b3e\u5546\u54c1\u6703\u91cd\u65b0\u88dc\u8ca8\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/refunds\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "order_id": { "description": "\u8a02\u55ae\u7de8\u865f", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/orders": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "status": { "default": "any", "description": "\u9650\u5236\u7279\u5b9a\u72c0\u614b\u8a02\u55ae\u8a2d\u5b9a\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "string", "enum": [ "any", "trash", "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ] }, "required": false }, "customer": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5ba2\u6236\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "product": { "description": "\u8a2d\u5b9a\u6307\u6d3e\u7279\u5b9a\u5546\u54c1\u8a02\u55ae\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "integer", "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "created_via": { "description": "Limit result set to orders created via specific sources (e.g. checkout, admin).", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "default": "pending", "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "default": "HKD", "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "default": 0, "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "default": false, "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "default": false, "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/orders" } ] } }, "\/wc\/v3\/orders\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/orders\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "parent_id": { "description": "\u4e0a\u5c64\u9805\u8a02\u55ae\u7de8\u865f\u3002", "type": "integer", "required": false }, "created_via": { "description": "\u986f\u793a\u8a02\u55ae\u5efa\u7acb\u4f4d\u7f6e\u3002", "type": "string", "required": false }, "status": { "description": "\u8a02\u55ae\u72c0\u614b.", "type": "string", "enum": [ "auto-draft", "pending", "processing", "on-hold", "completed", "cancelled", "refunded", "failed", "checkout-draft" ], "required": false }, "currency": { "description": "\u8a02\u55ae\u5efa\u7acb\u6642\u6240\u7528\u7684\u8ca8\u5e63\u683c\u5f0f\uff0c\u7528ISO\u683c\u5f0f\u3002", "type": "string", "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", "BYN", "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", "MRU", "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", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VES", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW" ], "required": false }, "customer_id": { "description": "\u64c1\u6709\u8a02\u55ae\u7684\u4f7f\u7528\u8005\u7de8\u865f\u3002 0 \u8868\u793a\u8a2a\u5ba2\u3002", "type": "integer", "required": false }, "customer_note": { "description": "\u7d50\u5e33\u6642\u5ba2\u6236\u7559\u4e0b\u7684\u5099\u8a3b\u3002", "type": "string", "required": false }, "billing": { "description": "\u5e33\u55ae\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] }, "email": { "description": "\u96fb\u5b50\u90f5\u4ef6\u5730\u5740", "type": [ "string", "null" ], "format": "email", "context": [ "view", "edit" ] }, "phone": { "description": "\u96fb\u8a71\u865f\u78bc", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping": { "description": "\u904b\u9001\u5730\u5740.", "type": "object", "properties": { "first_name": { "description": "\u540d\u5b57.", "type": "string", "context": [ "view", "edit" ] }, "last_name": { "description": "\u59d3\u6c0f.", "type": "string", "context": [ "view", "edit" ] }, "company": { "description": "\u516c\u53f8\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "address_1": { "description": "\u5730\u5740\u7b2c 1 \u884c", "type": "string", "context": [ "view", "edit" ] }, "address_2": { "description": "\u5730\u5740\u7b2c 2 \u884c", "type": "string", "context": [ "view", "edit" ] }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "state": { "description": "ISO \u4ee3\u78bc\u6216\u5dde\u3001\u7701\u6216\u5730\u5340\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "country": { "description": " ISO 3166-1 alpha-2 \u683c\u5f0f\u7684\u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "payment_method": { "description": "\u4ed8\u6b3e\u65b9\u5f0f\u7de8\u865f\u3002", "type": "string", "required": false }, "payment_method_title": { "description": "\u4ed8\u6b3e\u65b9\u6cd5\u6a19\u984c\u3002", "type": "string", "required": false }, "transaction_id": { "description": "\u552f\u4e00\u7684\u4ea4\u6613\u7de8\u865f\u3002", "type": "string", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "line_items": { "description": "\u884c\u9805\u76ee\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "parent_name": { "description": "\u5546\u54c1\u70ba\u8b8a\u5316\u7248\u672c\u6642\u7684\u4e0a\u5c64\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "product_id": { "description": "\u5546\u54c1\u7de8\u865f", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "variation_id": { "description": "\u8b8a\u6578\u7de8\u865f\uff0c\u5982\u679c\u9069\u7528\u3002", "type": "integer", "context": [ "view", "edit" ] }, "quantity": { "description": "\u8a02\u8cfc\u6578\u91cf\u3002", "type": "integer", "context": [ "view", "edit" ] }, "tax_class": { "description": "\u5546\u54c1\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u524d)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "display_key": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "display_value": { "description": "UI \u986f\u793a\u7684\u4e2d\u7e7c\u503c\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "sku": { "description": "\u5546\u54c1\u8ca8\u865f", "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": "\u5546\u54c1\u50f9\u683c\u3002", "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": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] } } } } }, "properties": { "bundled_by": { "description": "Item ID of parent line item, applicable if the item is part of a Bundle.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundled_items": { "description": "Item IDs of bundled line items, applicable if the item is a Bundle container.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "integer" }, "readonly": true }, "bundled_item_title": { "description": "Title of the bundled product to display instead of the original product title.", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "bundle_configuration": { "description": "Bundle configuration array. Must be defined when adding a bundle-type line item to an order, to ensure bundled line items are added to the order as well.", "type": "array", "context": [ "edit" ], "items": { "type": "object", "properties": { "bundled_item_id": { "description": "Bundled item ID.", "type": "integer", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "edit" ] }, "quantity": { "description": "Chosen bundled item quantity.", "type": "integer", "context": [ "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "edit" ] }, "optional_selected": { "description": "Indicates whether the bundled product is selected. Applicable to optional bundled items.", "type": "boolean", "context": [ "edit" ] }, "variation_id": { "description": "Chosen variation ID, if applicable.", "type": "integer", "context": [ "edit" ] }, "attributes": { "description": "Chosen variation data to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] }, "args": { "description": "Additional arguments to pass into 'WC_Order::add_product', if applicable.", "type": "object", "context": [ "edit" ] } } } } }, "required": false }, "shipping_lines": { "description": "\u904b\u9001\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "method_title": { "description": "\u904b\u9001\u65b9\u5f0f\u540d\u7a31.", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "instance_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7684\u5be6\u4f8b\u7de8\u865f\u3002", "type": "string", "context": [ "view", "edit" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "fee_lines": { "description": "\u8cbb\u7528\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "name": { "description": "\u8cbb\u7528\u540d\u7a31\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "tax_class": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u985e\u5225\u3002", "type": "string", "context": [ "view", "edit" ] }, "tax_status": { "description": "\u8cbb\u7528\u7684\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "taxable", "none" ] }, "total": { "description": "\u884c\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ] }, "total_tax": { "description": "\u884c\u7a05\u91d1\u7e3d\u8a08 (\u6298\u6263\u4e4b\u5f8c)\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "taxes": { "description": "\u884c\u7a05\u91d1\u3002", "type": "array", "context": [ "view", "edit" ], "readonly": true, "items": { "type": "object", "properties": { "id": { "description": "\u7a05\u7387\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "total": { "description": "\u7a05\u91d1\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "subtotal": { "description": "\u7a05\u91d1\u5c0f\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } } }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "coupon_lines": { "description": "\u512a\u60e0\u5238\u884c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u9805\u76ee\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "code": { "description": "\u512a\u60e0\u5238\u4ee3\u78bc\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] }, "discount": { "description": "\u6298\u6263\u7e3d\u8a08\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "discount_tax": { "description": "\u6298\u6263\u7a05\u91d1\u7e3d\u8a08\u3002", "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": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } } }, "required": false }, "set_paid": { "description": "\u5b9a\u7fa9\u8a02\u55ae\u662f\u5426\u5df2\u4ed8\u6b3e\u3002 \u6703\u5c07\u72c0\u614b\u8a2d\u70ba\u8655\u7406\u4e2d\uff0c\u4e26\u964d\u4f4e\u5b58\u8ca8\u3002", "type": "boolean", "required": false }, "manual_update": { "description": "Set the action as manual so that the order note registers as \"added by user\".", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/orders\/batch" } ] } }, "\/wc\/v3\/products\/attributes\/(?P[\\d]+)\/terms": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v3\/products\/attributes\/(?P[\\d]+)\/terms\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/attributes\/(?P[\\d]+)\/terms\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "attribute_id": { "description": "\u5b57\u8a5e\u5c6c\u6027\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "name": { "description": "\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ] }, "\/wc\/v3\/products\/attributes": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "type": "string", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "default": "select", "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "default": "menu_order", "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "default": false, "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/attributes" } ] } }, "\/wc\/v3\/products\/attributes\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": true, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/attributes\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "type": { "description": "\u5c6c\u6027\u985e\u578b\u3002", "type": "string", "enum": [ "select", "avada_color", "avada_image", "avada_button" ], "required": false }, "order_by": { "description": "\u9810\u8a2d\u6392\u5e8f\u9806\u5e8f\u3002", "type": "string", "enum": [ "menu_order", "name", "name_num", "id" ], "required": false }, "has_archives": { "description": "\u555f\u7528\/\u505c\u7528\u5c6c\u6027\u5c01\u5b58\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/attributes\/batch" } ] } }, "\/wc\/v3\/products\/categories": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "default": "default", "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/categories" } ] } }, "\/wc\/v3\/products\/categories\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/categories\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u9805\u8cc7\u6e90\u7684\u7de8\u865f\u3002", "type": "integer", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false }, "display": { "description": "\u5206\u985e\u5f59\u6574\u986f\u793a\u985e\u578b\u3002", "type": "string", "enum": [ "default", "products", "subcategories", "both" ], "required": false }, "image": { "description": "\u5716\u7247\u8cc7\u8a0a", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u8cc7\u6e90\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/categories\/batch" } ] } }, "\/wc\/v3\/products\/custom-fields\/names": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "order": { "description": "Order sort items ascending or descending.", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/custom-fields\/names" } ] } }, "\/wc\/v3\/products\/reviews": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\u767c\u4f48\u7684\u8a55\u8ad6\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u4f7f\u7528\u7279\u5b9a\u7684\u7de8\u865f\u9650\u5236\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date_gmt", "enum": [ "date", "date_gmt", "id", "include", "product" ], "required": false }, "reviewer": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u7d66\u7279\u5b9a\u4f7f\u7528\u8005 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "reviewer_email": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u4f86\u81ea\u7279\u5b9a\u4f5c\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "format": "email", "type": "string", "required": false }, "product": { "default": [], "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1 ID \u7684\u8a55\u8ad6\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "status": { "default": "approved", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u6307\u6d3e\u7279\u5b9a\u72c0\u614b\u7684\u8a55\u8ad6\u3002", "type": "string", "enum": [ "all", "hold", "approved", "spam", "trash" ], "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": true }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "default": "approved", "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "type": "string", "description": "\u8a55\u8ad6\u8005\u540d\u7a31\u3002", "required": true }, "reviewer_email": { "type": "string", "description": "\u8a55\u8ad6\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u3002", "required": true }, "review": { "type": "string", "description": "\u8a55\u8ad6\u5167\u5bb9\u3002", "required": true }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/reviews" } ] } }, "\/wc\/v3\/products\/reviews\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/products\/reviews\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u8a55\u8ad6\u6240\u5c6c\u5546\u54c1\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "product_name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "status": { "description": "\u8a55\u8ad6\u72c0\u614b\u3002", "type": "string", "enum": [ "approved", "hold", "spam", "unspam", "trash", "untrash" ], "required": false }, "reviewer": { "description": "\u8a55\u50f9\u8005\u59d3\u540d\u3002", "type": "string", "required": false }, "reviewer_email": { "description": "\u8a55\u50f9\u8005\u96fb\u5b50\u90f5\u4ef6\u3002", "type": "string", "format": "email", "required": false }, "review": { "description": "\u8a55\u50f9\u7684\u5167\u5bb9\u3002", "type": "string", "required": false }, "rating": { "description": "\u6aa2\u95b1\u8a55\u5206 (0 \u5230 5)\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/reviews\/batch" } ] } }, "\/wc\/v3\/products\/shipping_classes": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/shipping_classes" } ] } }, "\/wc\/v3\/products\/shipping_classes\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/shipping_classes\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/shipping_classes\/batch" } ] } }, "\/wc\/v3\/products\/shipping_classes\/slug-suggestion": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "name": { "description": "\u904b\u9001\u985e\u5225\u540d\u7a31.", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/shipping_classes\/slug-suggestion" } ] } }, "\/wc\/v3\/products\/tags": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u8cc7\u6e90\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u8981\u96b1\u85cf\u672a\u6307\u6d3e\u7d66\u4efb\u4f55\u5546\u54c1\u7684\u8cc7\u6e90\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u4e0a\u5c64\u9805\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002 \u50c5\u9069\u7528\u968e\u5c64\u5f0f\u5206\u985e\u6cd5\u3002", "type": "integer", "required": false }, "product": { "description": "\u9650\u5236\u6307\u6d3e\u7d66\u7279\u5b9a\u5546\u54c1\u7684\u8cc7\u6e90\u7d50\u679c\u96c6\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u8cc7\u6e90\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u8cc7\u6e90\u7684\u540d\u7a31\u3002", "required": true }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/tags" } ] } }, "\/wc\/v3\/products\/tags\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/products\/tags\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u6b64\u985e\u578b\u552f\u4e00\u7684\u8cc7\u6e90\u82f1\u6578\u8b58\u5225\u5143\u3002", "type": "string", "required": false }, "description": { "description": "\u8cc7\u6e90\u7684 HTML \u63cf\u8ff0\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/tags\/batch" } ] } }, "\/wc\/v3\/products": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order", "price", "popularity", "rating" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "search_sku": { "description": "Limit results to those with a SKU that partial matches a string. This argument takes precedence over 'sku'.", "type": "string", "required": false }, "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", "required": false }, "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": [ "name", "global_unique_id", "description", "short_description", "sku" ] }, "default": [], "required": false }, "include_status": { "description": "Limit result set to products with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude products with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "include_types": { "description": "Limit result set to products with any of the types.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "exclude_types": { "description": "Exclude products with any of the types from result set.", "type": "array", "items": { "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ] }, "required": false }, "downloadable": { "description": "Limit result set to downloadable products.", "type": "boolean", "required": false }, "virtual": { "description": "Limit result set to virtual products.", "type": "boolean", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "default": "simple", "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "default": "publish", "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "default": false, "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "default": "visible", "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "default": false, "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "default": true, "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products" } ] } }, "\/wc\/v3\/products\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "type": "boolean", "required": false } } } ] }, "\/wc\/v3\/products\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/batch" } ] } }, "\/wc\/v3\/products\/suggested-products": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "type": { "description": "\u900f\u904e\u7279\u5b9a\u985e\u578b\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "featured": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u7279\u8272\u5546\u54c1\u3002", "type": "boolean", "required": false }, "category": { "description": "\u900f\u904e\u7279\u5b9a\u5206\u985e ID\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "tag": { "description": "\u900f\u904e\u7279\u5b9a\u6a19\u8a18\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "shipping_class": { "description": "\u900f\u904e\u7279\u5b9a\u904b\u9001\u985e\u5225 ID \u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "attribute": { "description": "\u900f\u904e\u7279\u5b9a\u5c6c\u6027\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002\u4f7f\u7528\u5206\u985e\u540d\u7a31\/\u5c6c\u6027\u4ee3\u7a31\u3002", "type": "string", "required": false }, "attribute_term": { "description": "\u900f\u904e\u7279\u5b9a\u8a5e\u5f59\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c (\u9700\u8981\u6307\u6d3e\u5c6c\u6027)\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "in_stock": { "description": "\u5c07\u7d50\u679c\u9650\u65bc\u5eab\u5b58\u6216\u7f3a\u8ca8\u7522\u54c1\u3002", "type": "boolean", "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "categories": { "description": "Limit result set to specific product categorie ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "tags": { "description": "Limit result set to specific product tag ids.", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "limit": { "description": "Limit result set to specific amount of suggested products.", "type": "integer", "default": 5, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/products\/suggested-products" } ] } }, "\/wc\/v3\/products\/(?P[\\d]+)\/duplicate": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "\u5546\u54c1\u540d\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u5546\u54c1\u52d5\u614b\u7db2\u5740", "type": "string", "required": false }, "date_created": { "description": "\u5546\u54c1\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "required": false }, "date_created_gmt": { "description": "\u5efa\u7acb\u7522\u54c1\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "type": { "description": "\u5546\u54c1\u985e\u578b\u3002", "type": "string", "enum": [ "simple", "grouped", "external", "variable", "bundle" ], "required": false }, "status": { "description": "\u5546\u54c1\u72c0\u614b (\u6587\u7ae0\u72c0\u614b)\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish", "future", "auto-draft", "trash" ], "required": false }, "featured": { "description": "\u7279\u8272\u5546\u54c1.", "type": "boolean", "required": false }, "catalog_visibility": { "description": "\u76ee\u9304\u80fd\u898b\u5ea6\u3002", "type": "string", "enum": [ "visible", "catalog", "search", "hidden" ], "required": false }, "description": { "description": "\u5546\u54c1\u63cf\u8ff0\u3002", "type": "string", "required": false }, "short_description": { "description": "\u5546\u54c1\u7c21\u77ed\u63cf\u8ff0\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u5546\u54c1\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u5546\u54c1\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u5546\u54c1\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u5982\u679c\u5546\u54c1\u70ba\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "external_url": { "description": "\u5546\u54c1\u5916\u90e8 URL\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "format": "uri", "required": false }, "button_text": { "description": "\u5546\u54c1\u5916\u90e8\u6309\u9215\u6587\u5b57\u3002 \u50c5\u4f9b\u5916\u90e8\u5546\u54c1\u4f7f\u7528\u3002", "type": "string", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u5546\u54c1\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": "boolean", "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u7522\u54c1\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "sold_individually": { "description": "\u5141\u8a31\u55ae\u4e00\u8a02\u55ae\u4e2d\u53ea\u8cfc\u8cb7\u4e00\u9805\u5546\u54c1\u3002", "type": "boolean", "required": false }, "weight": { "description": "\u5546\u54c1\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u5546\u54c1\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u5546\u54c1\u9577\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u5546\u54c1\u5bec\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u5546\u54c1\u9ad8\u5ea6 (\u516c\u5206).", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "reviews_allowed": { "description": "\u5141\u8a31\u8a55\u50f9\u3002", "type": "boolean", "required": false }, "post_password": { "description": "Post password.", "type": "string", "required": false }, "upsell_ids": { "description": "\u9032\u968e\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "cross_sell_ids": { "description": "\u6a6b\u5411\u92b7\u552e\u5546\u54c1\u7de8\u865f\u6e05\u55ae\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_id": { "description": "\u5546\u54c1\u4e0a\u5c64\u9805\u7de8\u865f\u3002", "type": "integer", "required": false }, "purchase_note": { "description": "\u53ef\u9078\u8981\u5728\u8cfc\u8cb7\u4e4b\u5f8c\u5bc4\u9001\u5099\u8a3b\u7d66\u5ba2\u6236\u3002", "type": "string", "required": false }, "categories": { "description": "\u5206\u985e\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5206\u985e ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5206\u985e\u540d\u7a31", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u5206\u985e\u4ee3\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "brands": { "description": "List of brands.", "type": "array", "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 } } }, "required": false }, "tags": { "description": "\u6a19\u7c64\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a19\u7c64 ID\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u6a19\u7c64\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "slug": { "description": "\u6a19\u7c64\u52d5\u614b\u7db2\u5740\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } } }, "required": false }, "images": { "description": "\u5716\u7247\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "position": { "description": "\u5c6c\u6027\u4f4d\u7f6e\u3002", "type": "integer", "context": [ "view", "edit" ] }, "visible": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u4ee5\u5728\u5546\u54c1\u9801\u7684\u300c\u5176\u4ed6\u8cc7\u8a0a\u300d\u7d22\u5f15\u6a19\u7c64\u4e2d\u770b\u898b\u5c6c\u6027\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "variation": { "description": "\u5b9a\u7fa9\u662f\u5426\u53ef\u5c07\u5c6c\u6027\u7576\u505a\u8b8a\u6578\u4f7f\u7528\u3002", "type": "boolean", "default": false, "context": [ "view", "edit" ] }, "options": { "description": "\u5c6c\u6027\u7684\u53ef\u7528\u8a5e\u5f59\u540d\u7a31\u6e05\u55ae\u3002", "type": "array", "items": { "type": "string" }, "context": [ "view", "edit" ] } } }, "required": false }, "default_attributes": { "description": "\u9810\u8a2d\u8b8a\u6578\u5c6c\u6027\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wc\/v3\/products\/(?P[\\d]+)\/variations": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified", "menu_order" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "slug": { "description": "\u900f\u904e\u7279\u5b9a\u52d5\u614b\u7db2\u5740\u8a2d\u5b9a\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "status": { "default": "any", "description": "\u900f\u904e\u7279\u5b9a\u72c0\u614b\u6307\u6d3e\u5546\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ], "required": false }, "sku": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a SKU \u7684\u7522\u54c1\u3002\u4ee5\u9017\u865f\u5206\u9694\u3002", "type": "string", "required": false }, "tax_class": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5236\u70ba\u5177\u6709\u7279\u5b9a\u7a05\u52d9\u985e\u5225\u7684\u7522\u54c1\u3002", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "on_sale": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u7279\u50f9\u5546\u54c1\u3002", "type": "boolean", "required": false }, "min_price": { "description": "\u900f\u904e\u6700\u4f4e\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "max_price": { "description": "\u900f\u904e\u6700\u9ad8\u50f9\u683c\u8a2d\u5b9a\u7522\u54c1\u7684\u9650\u5236\u7d50\u679c\u3002", "type": "string", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "stock_status": { "description": "\u9650\u5b9a\u7d50\u679c\u70ba\u5177\u7279\u5eab\u5b58\u72c0\u614b\u7684\u5546\u54c1\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "has_price": { "description": "Limit result set to products with or without price.", "type": "boolean", "required": false }, "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." } } }, "required": false }, "virtual": { "description": "Limit result set to virtual product variations.", "type": "boolean", "required": false }, "downloadable": { "description": "Limit result set to downloadable product variations.", "type": "boolean", "required": false }, "include_status": { "description": "Limit result set to product variations with any of the statuses.", "type": "array", "items": { "type": "string", "enum": [ "any", "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false }, "exclude_status": { "description": "Exclude product variations with any of the statuses from result set.", "type": "array", "items": { "type": "string", "enum": [ "future", "trash", "draft", "pending", "private", "publish" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ] }, "\/wc\/v3\/products\/(?P[\\d]+)\/variations\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/products\/(?P[\\d]+)\/variations\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ] }, "\/wc\/v3\/products\/(?P[\\d]+)\/variations\/generate": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "product_id": { "description": "\u70ba\u53ef\u8b8a\u7684\u7368\u7279\u8fa6\u8b58\u5546\u54c1\u3002", "type": "integer", "required": false }, "delete": { "description": "Deletes unused variations.", "type": "boolean", "required": false }, "default_values": { "description": "Default values for generated variations.", "type": "object", "properties": { "description": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string" }, "sku": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "Stock Keeping Unit.", "type": "string" }, "global_unique_id": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "GTIN, UPC, EAN or ISBN.", "type": "string" }, "regular_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string" }, "sale_price": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string" }, "date_on_sale_from": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_from_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "date_on_sale_to_gmt": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ] }, "status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ] }, "virtual": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean" }, "downloadable": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean" }, "downloads": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } } }, "download_limit": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer" }, "download_expiry": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer" }, "tax_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ] }, "tax_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u7a05\u7387\u985e\u5225", "type": "string" }, "manage_stock": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ] }, "stock_quantity": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer" }, "stock_status": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ] }, "backorders": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ] }, "low_stock_amount": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ] }, "weight": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string" }, "dimensions": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "shipping_class": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string" }, "image": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } } }, "attributes": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "menu_order": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer" }, "meta_data": { "validate_callback": "rest_validate_request_arg", "sanitize_callback": "rest_sanitize_request_arg", "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } } } }, "required": false }, "description": { "description": "\u8b8a\u5316\u985e\u578b\u8aaa\u660e\u3002", "type": "string", "required": false }, "sku": { "description": "Stock Keeping Unit.", "type": "string", "required": false }, "global_unique_id": { "description": "GTIN, UPC, EAN or ISBN.", "type": "string", "required": false }, "regular_price": { "description": "\u8b8a\u6578\u4e00\u822c\u50f9\u683c\u3002", "type": "string", "required": false }, "sale_price": { "description": "\u53ef\u8b8a\u6298\u6263\u50f9\u3002", "type": "string", "required": false }, "date_on_sale_from": { "description": "\u6298\u6263\u50f9\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_from_gmt": { "description": "\u6298\u6263\u50f9\u683c\u7684\u958b\u59cb\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "date_on_sale_to_gmt": { "description": "\u6298\u6263\u50f9\u7684\u7d50\u675f\u65e5\u671f\uff0c\u4ee5\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u3002", "type": [ "null", "string" ], "required": false }, "status": { "default": "publish", "description": "\u8b8a\u5316\u7248\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "draft", "pending", "private", "publish" ], "required": false }, "virtual": { "default": false, "description": "\u662f\u5426\u70ba\u5be6\u969b\u8b8a\u6578\u3002", "type": "boolean", "required": false }, "downloadable": { "default": false, "description": "\u8b8a\u6578\u662f\u5426\u53ef\u4e0b\u8f09\u3002", "type": "boolean", "required": false }, "downloads": { "description": "\u53ef\u4e0b\u8f09\u5546\u54c1\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u6a94\u6848 ID\u3002", "type": "string", "context": [ "view", "edit" ] }, "name": { "description": "\u6a94\u6848\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "file": { "description": "\u6a94\u6848\u7db2\u5740.", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "download_limit": { "default": -1, "description": "\u8cfc\u8cb7\u5f8c\u6a94\u6848\u53ef\u4e0b\u8f09\u7684\u6b21\u6578\u3002", "type": "integer", "required": false }, "download_expiry": { "default": -1, "description": "\u5728\u904e\u671f\u524d\u9084\u6709\u591a\u5c11\u5929\u6578\u53ef\u4e0b\u8f09\u6a94\u6848\u3002", "type": "integer", "required": false }, "tax_status": { "default": "taxable", "description": "\u7a05\u91d1\u72c0\u614b\u3002", "type": "string", "enum": [ "taxable", "shipping", "none" ], "required": false }, "tax_class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "required": false }, "manage_stock": { "default": false, "description": "\u8b8a\u6578\u7b49\u7d1a\u7684\u5b58\u8ca8\u7ba1\u7406\u3002", "type": [ "boolean", "string" ], "required": false }, "stock_quantity": { "description": "\u5b58\u8ca8\u6578\u91cf\u3002", "type": "integer", "required": false }, "stock_status": { "default": "instock", "description": "\u63a7\u5236\u7522\u54c1\u7684\u5eab\u5b58\u72c0\u614b\u3002", "type": "string", "enum": [ "instock", "outofstock", "onbackorder" ], "required": false }, "backorders": { "default": "no", "description": "\u82e5\u8981\u7ba1\u7406\u5eab\u5b58\uff0c\u6b64\u8a2d\u5b9a\u53ef\u63a7\u5236\u662f\u5426\u5141\u8a31\u7121\u5eab\u5b58\u4e0b\u55ae\u3002", "type": "string", "enum": [ "no", "notify", "yes" ], "required": false }, "low_stock_amount": { "description": "\u6b64\u6b3e\u5f0f\u5eab\u5b58\u4e0d\u8db3\u3002", "type": [ "integer", "null" ], "required": false }, "weight": { "description": "\u8b8a\u6578\u91cd\u91cf (\u516c\u514b)\u3002", "type": "string", "required": false }, "dimensions": { "description": "\u8b8a\u6578\u5c3a\u5bf8\u3002", "type": "object", "properties": { "length": { "description": "\u8b8a\u6578\u9577\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "width": { "description": "\u8b8a\u6578\u5bec\u5ea6 (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] }, "height": { "description": "\u8b8a\u6578\u9ad8\u91cf (\u516c\u5206)\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "shipping_class": { "description": "\u904b\u9001\u985e\u5225\u4ee3\u7a31\u3002", "type": "string", "required": false }, "image": { "description": "\u8b8a\u6578\u5716\u7247\u8cc7\u6599\u3002", "type": "object", "properties": { "id": { "description": "\u5716\u7247\u7de8\u865f.", "type": "integer", "context": [ "view", "edit" ] }, "date_created": { "description": "\u5716\u7247\u5efa\u7acb\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_created_gmt": { "description": "\u5efa\u7acb\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified": { "description": "\u5716\u7247\u4e0a\u6b21\u4fee\u6539\u7684\u65e5\u671f\uff0c\u4f7f\u7528\u7db2\u7ad9\u6642\u5340\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "date_modified_gmt": { "description": "\u6700\u5f8c\u4fee\u6539\u5716\u7247\u7684\u65e5\u671f\uff0c\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u3002", "type": [ "null", "string" ], "context": [ "view", "edit" ], "readonly": true }, "src": { "description": "\u5716\u7247\u7db2\u5740.", "type": "string", "format": "uri", "context": [ "view", "edit" ] }, "name": { "description": "\u5716\u7247\u540d\u7a31.", "type": "string", "context": [ "view", "edit" ] }, "alt": { "description": "\u5716\u7247\u66ff\u4ee3\u6587\u5b57", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "attributes": { "description": "\u5c6c\u6027\u6e05\u55ae\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } }, "required": false }, "menu_order": { "description": "\u529f\u80fd\u8868\u9806\u5e8f\uff0c\u7528\u4f86\u81ea\u8a02\u6392\u5e8f\u5546\u54c1\u3002", "type": "integer", "required": false }, "meta_data": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u3002", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "\u5143\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "key": { "description": "\u5143\u9375\u3002", "type": "string", "context": [ "view", "edit" ] }, "value": { "description": "\u5143\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "context": [ "view", "edit" ] } } }, "required": false } } } ] }, "\/wc\/v3\/refunds": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u9650\u5236\u7b26\u5408\u5b57\u4e32\u7684\u9805\u76ee\u7d50\u679c\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5236\u70ba\u6307\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4ee5\u524d\u4fee\u6539\u7684\u8cc7\u6e90\u3002", "type": "string", "format": "date-time", "required": false }, "dates_are_gmt": { "description": "\u4f9d\u767c\u8868\u6216\u4fee\u6539\u65e5\u671f\u9650\u5236\u56de\u61c9\u6642\uff0c\u662f\u5426\u8003\u616e\u683c\u6797\u5a01\u6cbb\u6a19\u6e96\u6642\u9593 (GMT) \u6587\u7ae0\u65e5\u671f\u3002", "type": "boolean", "default": false, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "title", "slug", "modified" ], "required": false }, "parent": { "description": "\u9650\u5236\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u9650\u5236\u6392\u9664\u7279\u5b9a\u4e0a\u5c64\u9805\u7de8\u865f\u7684\u6240\u6709\u9805\u76ee\u7d50\u679c\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "dp": { "default": 2, "description": "\u5c0f\u6578\u9ede\u4f7f\u7528\u5728\u6bcf\u500b\u8cc7\u6e90\u7684\u6578\u91cf\u3002", "type": "integer", "required": false }, "order_item_display_meta": { "default": false, "description": "Only show meta which is meant to be displayed for an order.", "type": "boolean", "required": false }, "include_meta": { "default": [], "description": "Limit meta_data to specific keys.", "type": "array", "items": { "type": "string" }, "required": false }, "exclude_meta": { "default": [], "description": "Ensure meta_data excludes specific keys.", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/refunds" } ] } }, "\/wc\/v3\/reports\/sales": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/sales" } ] } }, "\/wc\/v3\/reports\/top_sellers": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "period": { "description": "\u5831\u8868\u671f\u9593\u3002", "type": "string", "enum": [ "week", "month", "last_month", "year" ], "required": false }, "date_min": { "description": "\u7279\u5b9a\u958b\u59cb\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false }, "date_max": { "description": "\u7279\u5b9a\u7d50\u675f\u65e5\u671f\u7684\u92b7\u8ca8\u9000\u56de\uff0c\u65e5\u671f\u5fc5\u9808\u70ba YYYY-MM-DD \u683c\u5f0f\u3002", "type": "string", "format": "date", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/top_sellers" } ] } }, "\/wc\/v3\/reports\/orders\/totals": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/orders\/totals" } ] } }, "\/wc\/v3\/reports\/products\/totals": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/products\/totals" } ] } }, "\/wc\/v3\/reports\/customers\/totals": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/customers\/totals" } ] } }, "\/wc\/v3\/reports\/coupons\/totals": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/coupons\/totals" } ] } }, "\/wc\/v3\/reports\/reviews\/totals": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports\/reviews\/totals" } ] } }, "\/wc\/v3\/reports": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/reports" } ] } }, "\/wc\/v3\/settings": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/settings" } ] } }, "\/wc\/v3\/settings\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/settings\/batch" } ] } }, "\/wc\/v3\/settings\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v3\/settings\/(?P[\\w-]+)\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc\/v3\/settings\/(?P[\\w-]+)\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "group": { "description": "\u8a2d\u5b9a\u7fa4\u7d44\u7de8\u865f\u3002", "type": "string", "required": false }, "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": [ "null", "object", "string", "number", "boolean", "integer", "array" ], "required": false } } } ] }, "\/wc\/v3\/shipping\/zones": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST" ], "args": { "name": { "type": "string", "description": "\u904b\u9001\u5340\u57df\u540d\u7a31", "required": true }, "order": { "description": "\u904b\u9001\u5340\u57df\u6392\u5e8f\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/shipping\/zones" } ] } }, "\/wc\/v3\/shipping\/zones\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "name": { "description": "\u904b\u9001\u5340\u57df\u540d\u7a31", "type": "string", "required": false }, "order": { "description": "\u904b\u9001\u5340\u57df\u6392\u5e8f\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/shipping\/zones\/(?P[\\d]+)\/locations": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "code": { "description": "\u904b\u9001\u5340\u57df\u4f4d\u7f6e\u4ee3\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u904b\u9001\u5340\u57df\u4f4d\u7f6e\u985e\u578b\u3002", "type": "string", "enum": [ "postcode", "state", "country", "continent" ], "required": false } } } ] }, "\/wc\/v3\/shipping\/zones\/(?P[\\d]+)\/methods": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "order": { "description": "\u904b\u9001\u65b9\u5f0f\u6392\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u904b\u9001\u65b9\u5f0f\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u904b\u9001\u65b9\u5f0f\u8a2d\u5b9a", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox", "class", "order" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false }, "method_id": { "description": "\u904b\u9001\u65b9\u5f0f\u7de8\u865f\u3002", "required": true } } } ] }, "\/wc\/v3\/shipping\/zones\/(?P[\\d]+)\/methods\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "order": { "description": "\u904b\u9001\u65b9\u5f0f\u6392\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u904b\u9001\u65b9\u5f0f\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u904b\u9001\u65b9\u5f0f\u8a2d\u5b9a", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox", "class", "order" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "zone_id": { "description": "\u5340\u57df\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "instance_id": { "description": "\u57f7\u884c\u500b\u9ad4\u7684\u55ae\u4e00\u7de8\u865f\u3002", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "\u662f\u5426\u8981\u5ffd\u7565\u5783\u573e\u4e26\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wc\/v3\/taxes\/classes": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "\u7a05\u91d1\u985e\u5225\u540d\u7a31\u3002", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/taxes\/classes" } ] } }, "\/wc\/v3\/taxes\/classes\/(?P\\w[\\w\\s\\-]*)": { "namespace": "wc\/v3", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u4ee3\u7a31\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "slug": { "description": "\u8cc7\u6e90\u7684\u55ae\u4e00\u4ee3\u7a31\u3002", "type": "string", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/taxes": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u9762\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u5728\u7d50\u679c\u96c6\u4e2d\u5fc5\u9808\u50b3\u56de\u7684\u6700\u5927\u9805\u76ee\u6578\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "order", "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "order", "priority" ], "type": "string", "required": false }, "class": { "description": "\u4f9d\u7a05\u7387\u985e\u5225.", "enum": [ "standard", "reduced-rate", "zero-rate" ], "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "default": 1, "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "default": false, "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "default": true, "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "default": "standard", "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/taxes" } ] } }, "\/wc\/v3\/taxes\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/taxes\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "country": { "description": "\u570b\u5bb6 ISO 3166 \u4ee3\u78bc\u3002", "type": "string", "required": false }, "state": { "description": "State code.", "type": "string", "required": false }, "postcode": { "description": "\u90f5\u905e\u5340\u865f\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u90f5\u905e\u5340\u865f\u300d\u3002", "type": "string", "required": false }, "city": { "description": "\u57ce\u5e02\u540d\u7a31\uff0c\u4e0d\u652f\u63f4\u591a\u500b\u503c\u3002 \u81ea WooCommerce 5.3 \u8d77\u88ab\u53d6\u4ee3\uff0c\u61c9\u6539\u70ba\u4f7f\u7528\u300c\u57ce\u5e02\u300d\u3002", "type": "string", "required": false }, "rate": { "description": "\u7a05\u7387.", "type": "string", "required": false }, "name": { "description": "\u7a05\u7387\u540d\u7a31.", "type": "string", "required": false }, "priority": { "description": "\u7a05\u7387\u512a\u5148\u6392\u5e8f.", "type": "integer", "required": false }, "compound": { "description": "\u9019\u500b\u662f\u5426\u70ba\u8907\u5408\u7a05\u7387.", "type": "boolean", "required": false }, "shipping": { "description": "\u6b64\u7a05\u7387\u662f\u5426\u4e5f\u5957\u7528\u81f3\u904b\u9001\u3002", "type": "boolean", "required": false }, "order": { "description": "\u8868\u793a\u51fa\u73fe\u5728\u67e5\u8a62\u4e2d\u7684\u9806\u5e8f\u3002", "type": "integer", "required": false }, "class": { "description": "\u7a05\u7387\u985e\u5225", "type": "string", "enum": [ "standard", "reduced-rate", "zero-rate" ], "required": false }, "postcodes": { "description": "\u90f5\u905e\u5340\u865f\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "cities": { "description": "\u57ce\u5e02\u540d\u7a31\u6e05\u55ae\u3002 \u5728 WooCommerce 5.3 \u4e2d\u63a8\u51fa\u3002", "type": "array", "items": { "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/taxes\/batch" } ] } }, "\/wc\/v3\/webhooks": { "namespace": "wc\/v3", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u5f8c\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u7d66\u5b9a ISO8601 \u76f8\u5bb9\u65e5\u671f\u4e4b\u524d\uff0c\u9650\u5236\u5df2\u767c\u884c\u8cc7\u6e90\u7684\u56de\u61c9\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u8a2d\u5b9a\u6392\u9664\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u9650\u5236\u7d50\u679c\u8a2d\u5b9a\u70ba\u7279\u5b9a\u7de8\u865f\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u7279\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f86\u4f4d\u79fb\u7d50\u679c\u8a2d\u5b9a\u3002", "type": "integer", "required": false }, "order": { "description": "\u4ee5\u905e\u589e\u6216\u905e\u6e1b\u4f86\u6392\u5e8f\u8a02\u55ae\u5c6c\u6027\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "title" ], "required": false }, "status": { "default": "all", "description": "Limit result set to webhooks assigned a specific status.", "type": "string", "enum": [ "all", "active", "paused", "disabled" ], "required": false } } }, { "methods": [ "POST" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "default": "active", "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "type": "string", "description": "Webhook topic.", "required": true }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false }, "delivery_url": { "type": "string", "description": "Webhook delivery URL.", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/webhooks" } ] } }, "\/wc\/v3\/webhooks\/(?P[\\d]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "integer", "required": false }, "force": { "default": false, "type": "boolean", "description": "Required to be true, as resource does not support trashing.", "required": false } } } ] }, "\/wc\/v3\/webhooks\/batch": { "namespace": "wc\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "name": { "description": "A friendly name for the webhook.", "type": "string", "required": false }, "status": { "description": "Webhook status.", "type": "string", "enum": [ "active", "paused", "disabled" ], "required": false }, "topic": { "description": "Webhook topic.", "type": "string", "required": false }, "secret": { "description": "\u5bc6\u9470\u7528\u65bc\u7522\u751f\u5df2\u50b3\u9001 Webhook \u7684\u96dc\u6e4a\uff0c\u4e26\u6703\u65bc\u8981\u6c42\u9801\u9996\u4e2d\u63d0\u4f9b\u3002\u5982\u672a\u63d0\u4f9b\uff0c\u5247\u6703\u9810\u8a2d\u70ba\u76ee\u524d\u4f7f\u7528\u8005 ID|\u4f7f\u7528\u8005\u540d\u7a31\u7684 MD5 \u96dc\u6e4a\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/webhooks\/batch" } ] } }, "\/wc\/v3\/system_status": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/system_status" } ] } }, "\/wc\/v3\/system_status\/tools": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/system_status\/tools" } ] } }, "\/wc\/v3\/system_status\/tools\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u5de5\u5177\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "name": { "description": "\u5de5\u5177\u540d\u7a31\u3002", "type": "string", "required": false }, "action": { "description": "\u904b\u884c\u8a72\u5de5\u5177\u5c07\u6703\u505a\u4ec0\u9ebc\u3002", "type": "string", "required": false }, "description": { "description": "\u5de5\u5177\u63cf\u8ff0\u3002", "type": "string", "required": false }, "success": { "description": "\u5de5\u5177\u662f\u5426\u6210\u529f\u904b\u884c\uff1f", "type": "boolean", "required": false }, "message": { "description": "\u5de5\u5177\u56de\u50b3\u8a0a\u606f\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v3\/shipping_methods": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/shipping_methods" } ] } }, "\/wc\/v3\/shipping_methods\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false } } } ] }, "\/wc\/v3\/payment_gateways": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/payment_gateways" } ] } }, "\/wc\/v3\/payment_gateways\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "Unique identifier for the resource.", "type": "string", "required": false }, "title": { "description": "\u7d50\u5e33\u6642\uff0c\u4ed8\u6b3e\u9598\u9053\u7684\u6a19\u984c\u3002", "type": "string", "required": false }, "description": { "description": "\u7d50\u5e33\u6642\uff0c\u4ed8\u6b3e\u9598\u9053\u7684\u8aaa\u660e\u3002", "type": "string", "required": false }, "order": { "description": "\u4ed8\u6b3e\u9598\u9053\u65b9\u5f0f\u6392\u5e8f\u9806\u5e8f\u3002", "type": "integer", "required": false }, "enabled": { "description": "\u4ed8\u6b3e\u9598\u9053\u65b9\u5f0f\u5df2\u555f\u7528\u72c0\u614b\u3002", "type": "boolean", "required": false }, "settings": { "description": "\u4ed8\u6b3e\u9598\u9053\u8a2d\u5b9a\u3002", "type": "object", "properties": { "id": { "description": "\u8a2d\u5b9a\u7684\u55ae\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "label": { "description": "\u7528\u65bc\u754c\u9762\u8a2d\u5b9a\u4e0a\u7684\u4e00\u7d44\u53ef\u4f9b\u4eba\u95b1\u8b80\u7684\u6a19\u7c64\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "description": { "description": "\u7c21\u55ae\u6613\u8b80\u7684\u8aaa\u660e\uff0c\u95dc\u65bc\u4ecb\u9762\u4e2d\u6240\u4f7f\u7528\u7684\u8a2d\u5b9a\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "type": { "description": "\u8a2d\u5b9a\u985e\u578b\u3002", "type": "string", "context": [ "view", "edit" ], "enum": [ "text", "email", "number", "color", "password", "textarea", "select", "multiselect", "radio", "image_width", "checkbox" ], "readonly": true }, "value": { "description": "\u8a2d\u5b9a\u503c\u3002", "type": "string", "context": [ "view", "edit" ] }, "default": { "description": "\u8a2d\u5b9a\u7684\u9810\u8a2d\u503c\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "tip": { "description": "\u95dc\u65bc\u8a2d\u5b9a\u7684\u9644\u52a0\u5354\u52a9\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "placeholder": { "description": "\u8981\u986f\u793a\u5728\u6587\u5b57\u8f38\u5165\u7684\u9810\u7559\u4f4d\u7f6e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false } } } ] }, "\/wc\/v3\/data": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/data" } ] } }, "\/wc\/v3\/data\/continents": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/data\/continents" } ] } }, "\/wc\/v3\/data\/continents\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "continent": { "description": "2 \u5b57\u5143\u6d32\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v3\/data\/countries": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/data\/countries" } ] } }, "\/wc\/v3\/data\/countries\/(?P[\\w-]+)": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "location": { "description": "ISO3166 alpha-2 \u570b\u5bb6\/\u5730\u5340\u4ee3\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v3\/data\/currencies": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/data\/currencies" } ] } }, "\/wc\/v3\/data\/currencies\/current": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/data\/currencies\/current" } ] } }, "\/wc\/v3\/data\/currencies\/(?P[\\w-]{3})": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "location": { "description": "ISO4217 \u8ca8\u5e63\u4ee3\u78bc\u3002", "type": "string", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/receipt": { "namespace": "wc\/v3", "methods": [ "POST", "GET" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier of the order.", "type": "integer", "required": false }, "expiration_date": { "description": "Expiration date formatted as yyyy-mm-dd.", "type": "string", "default": null, "required": false }, "expiration_days": { "description": "Number of days to be added to the current date to get the expiration date.", "type": "integer", "default": 1, "required": false }, "force_new": { "description": "True to force the creation of a new receipt even if one already exists and has not expired yet.", "type": "boolean", "default": false, "required": false } } }, { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier of the order.", "type": "integer", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/actions\/email_templates": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "Unique identifier of the order.", "type": "integer", "required": false } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/actions\/send_email": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier of the order.", "type": "integer", "required": false }, "email": { "description": "Email address to send the order details to.", "type": "string", "format": "email", "required": false }, "force_email_update": { "description": "Whether to update the billing email of the order, even if it already has one.", "type": "boolean", "required": false }, "template_id": { "description": "The ID of the template to use for sending the email.", "type": "string", "enum": [ "new_order", "cancelled_order", "customer_cancelled_order", "failed_order", "customer_failed_order", "customer_on_hold_order", "customer_processing_order", "customer_completed_order", "customer_refunded_order", "customer_invoice", "customer_note", "customer_reset_password", "customer_new_account", "customer_pos_completed_order", "customer_pos_refunded_order", "failed_renewal_authentication", "failed_preorder_sca_authentication", "failed_authentication_requested", "wc_stripe_failed_refund_admin", "wc_stripe_failed_refund_customer" ], "required": true } } } ] }, "\/wc\/v3\/orders\/(?P[\\d]+)\/actions\/send_order_details": { "namespace": "wc\/v3", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "Unique identifier of the order.", "type": "integer", "required": false }, "email": { "description": "Email address to send the order details to.", "type": "string", "format": "email", "required": false }, "force_email_update": { "description": "Whether to update the billing email of the order, even if it already has one.", "type": "boolean", "required": false } } } ] }, "\/wc\/v3\/orders\/statuses": { "namespace": "wc\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc\/v3\/orders\/statuses" } ] } }, "\/wc-admin\/settings\/payments\/country": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "location": { "description": "The ISO3166 alpha-2 country code to save for the current user.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/country" } ] } }, "\/wc-admin\/settings\/payments\/providers": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to WooCommerce's base location country.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/providers" } ] } }, "\/wc-admin\/settings\/payments\/providers\/order": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "order_map": { "description": "A map of provider ID to integer values representing the sort order.", "type": "object", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/providers\/order" } ] } }, "\/wc-admin\/settings\/payments\/suggestion\/(?P[\\w\\d\\-]+)\/attach": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/settings\/payments\/suggestion\/(?P[\\w\\d\\-]+)\/hide": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ] }, "\/wc-admin\/settings\/payments\/suggestion\/(?P[\\w\\d\\-]+)\/incentive\/(?P[\\w\\d\\-]+)\/dismiss": { "namespace": "wc-admin", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "context": { "description": "The context ID for which to dismiss the incentive. If not provided, will dismiss the incentive for all contexts.", "type": "string", "required": false }, "do_not_track": { "description": "If true, the incentive dismissal will be ignored by tracking.", "type": "boolean", "default": false, "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/(?P[a-zA-Z0-9_-]+)\/start": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/(?P[a-zA-Z0-9_-]+)\/save": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/(?P[a-zA-Z0-9_-]+)\/check": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/(?P[a-zA-Z0-9_-]+)\/finish": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/(?P[a-zA-Z0-9_-]+)\/clean": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false } } } ] }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/test_account\/init": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/test_account\/init" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/test_account\/reset": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/test_account\/reset" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/kyc_session": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/kyc_session" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/kyc_session\/finish": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/kyc_session\/finish" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/test_account\/disable": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "from": { "description": "Where from in the onboarding flow this request was triggered.", "type": "string", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/step\/business_verification\/test_account\/disable" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/preload": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/preload" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/reset": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "from": { "description": "Where from in the onboarding flow this request was triggered.", "type": "string", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/reset" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/woopay-eligibility": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/woopay-eligibility" } ] } }, "\/wc-admin\/settings\/payments\/woopayments\/onboarding\/test_account\/disable": { "namespace": "wc-admin", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "location": { "description": "ISO3166 alpha-2 country code. Defaults to the stored providers business location country code.", "type": "string", "pattern": "[a-zA-Z]{2}", "required": false }, "from": { "description": "Where from in the onboarding flow this request was triggered.", "type": "string", "required": false }, "source": { "description": "The upmost entry point from where the merchant entered the onboarding flow.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin\/settings\/payments\/woopayments\/onboarding\/test_account\/disable" } ] } }, "\/wc-admin-email": { "namespace": "wc-admin-email", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc-admin-email", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin-email" } ] } }, "\/wc-admin-email\/settings\/email\/send-preview": { "namespace": "wc-admin-email", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "type": { "description": "The email type to preview.", "type": "string", "required": true }, "email": { "description": "Email address to send the email preview to.", "type": "string", "format": "email", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin-email\/settings\/email\/send-preview" } ] } }, "\/wc-admin-email\/settings\/email\/preview-subject": { "namespace": "wc-admin-email", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "type": { "description": "The email type to get subject for.", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin-email\/settings\/email\/preview-subject" } ] } }, "\/wc-admin-email\/settings\/email\/save-transient": { "namespace": "wc-admin-email", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "key": { "type": "string", "description": "The key for the transient. Must be one of the allowed options.", "required": true }, "value": { "type": "string", "description": "The value to be saved for the transient.", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin-email\/settings\/email\/save-transient" } ] } }, "\/wc-admin-email\/settings\/email\/listing\/recreate-email-post": { "namespace": "wc-admin-email", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "email_id": { "description": "The email ID to recreate the post for.", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-admin-email\/settings\/email\/listing\/recreate-email-post" } ] } }, "\/wc-telemetry": { "namespace": "wc-telemetry", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wc-telemetry", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-telemetry" } ] } }, "\/wc-telemetry\/tracker": { "namespace": "wc-telemetry", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "platform": { "description": "\u8981\u8ffd\u8e64\u7684\u5e73\u53f0\u3002", "type": "string", "required": true }, "version": { "description": "\u8981\u8ffd\u8e64\u7684\u5e73\u53f0\u7248\u672c\u3002", "type": "string", "required": true }, "installation_date": { "description": "Installation date of the WooCommerce mobile app.", "type": "string", "format": "date-time", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wc-telemetry\/tracker" } ] } }, "\/wccom-site\/v3": { "namespace": "wccom-site\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wccom-site\/v3", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3" } ] } }, "\/wccom-site\/v3\/installer": { "namespace": "wccom-site\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product-id": { "type": "integer", "required": true }, "run-until-step": { "type": "string", "enum": [ "get_product_info", "download_product", "unpack_product", "move_product", "activate_product" ], "required": true }, "idempotency-key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/installer" } ] } }, "\/wccom-site\/v3\/installer\/reset": { "namespace": "wccom-site\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "product-id": { "type": "integer", "required": true }, "idempotency-key": { "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/installer\/reset" } ] } }, "\/wccom-site\/v3\/ssr": { "namespace": "wccom-site\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/ssr" } ] } }, "\/wccom-site\/v3\/status": { "namespace": "wccom-site\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/status" } ] } }, "\/wccom-site\/v3\/connection\/disconnect": { "namespace": "wccom-site\/v3", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/connection\/disconnect" } ] } }, "\/wccom-site\/v3\/connection\/status": { "namespace": "wccom-site\/v3", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wccom-site\/v3\/connection\/status" } ] } }, "\/ctxfeed\/v1": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "ctxfeed\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1" } ] } }, "\/ctxfeed\/v1\/attributes_mapping": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "name": { "description": "feed name", "type": "string", "required": false }, "page": { "description": "Page number", "type": "number", "required": false }, "per_page": { "description": "Per page", "type": "number", "required": false } } }, { "methods": [ "POST" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "DELETE" ], "args": { "name": { "description": "feed name", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/attributes_mapping" } ] } }, "\/ctxfeed\/v1\/attributes_mapping\/unique_option_name": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/attributes_mapping\/unique_option_name" } ] } }, "\/ctxfeed\/v1\/attributes_mapping\/attribute_preview": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/attributes_mapping\/attribute_preview" } ] } }, "\/ctxfeed\/v1\/category_mapping": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "name": { "description": "feed name", "type": "string", "required": false }, "page": { "description": "Page number", "type": "number", "required": false }, "per_page": { "description": "Per page", "type": "number", "required": false } } }, { "methods": [ "POST" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "DELETE" ], "args": { "name": { "description": "feed name", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/category_mapping" } ] } }, "\/ctxfeed\/v1\/category_mapping\/unique_option_name": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/category_mapping\/unique_option_name" } ] } }, "\/ctxfeed\/v1\/drop_down": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "type": { "description": "Dropdown type name. $type will be DropDownOptions class's method name. Example: wp-json\/ctxfeed\/v1\/drop_down\/?type=feed_country. Here fee_country is DropDownOptions method name.", "type": "string", "required": true }, "search": { "description": "Search with search string in the specific method. If search string exists.", "type": "string", "default": "", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/drop_down" } ] } }, "\/ctxfeed\/v1\/drop_down\/feed_rules": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "template": { "description": "Template name", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/drop_down\/feed_rules" } ] } }, "\/ctxfeed\/v1\/drop_down\/initial_feed_rules": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/drop_down\/initial_feed_rules" } ] } }, "\/ctxfeed\/v1\/dynamic_attributes": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "name": { "description": "feed name", "type": "string", "required": false }, "page": { "description": "Page number", "type": "number", "required": false }, "per_page": { "description": "Per page", "type": "number", "required": false } } }, { "methods": [ "POST" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] }, { "methods": [ "DELETE" ], "args": { "name": { "description": "feed name", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/dynamic_attributes" } ] } }, "\/ctxfeed\/v1\/dynamic_attributes\/unique_option_name": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/dynamic_attributes\/unique_option_name" } ] } }, "\/ctxfeed\/v1\/manage_feeds": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "status": { "description": "Is active or inactive", "type": "string", "required": false }, "name": { "description": "feed name", "type": "string", "required": false }, "page": { "description": "Page number", "type": "number", "required": false }, "per_page": { "description": "Per page", "type": "number", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/duplicate": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "feed": { "description": "Feed slug", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/duplicate" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/update_feed_status": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "feed": { "description": "Feed slug", "type": "string", "required": true }, "status": { "description": "Feed status enabled or disabled", "type": "number", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/update_feed_status" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/delete_feed": { "namespace": "ctxfeed\/v1", "methods": [ "DELETE" ], "endpoints": [ { "methods": [ "DELETE" ], "args": { "feed_id": { "description": "Feed id", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/delete_feed" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/download": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/download" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/schedules": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/schedules" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/update_interval": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "time": { "description": "Initerval time", "type": "number", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/update_interval" } ] } }, "\/ctxfeed\/v1\/manage_feeds\/clear_cache": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/manage_feeds\/clear_cache" } ] } }, "\/ctxfeed\/v1\/merchant_config": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "merchant": { "description": "Merchant name", "type": "string", "required": false }, "type": { "description": "Edit or Get", "type": "string", "required": true }, "feed": { "description": "Feed file name", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/merchant_config" } ] } }, "\/ctxfeed\/v1\/merchant_info": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "merchant": { "description": "Merchant name", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/merchant_info" } ] } }, "\/ctxfeed\/v1\/merchant_info\/get_initial_merchant_infos": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/merchant_info\/get_initial_merchant_infos" } ] } }, "\/ctxfeed\/v1\/product_categories": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "search": { "description": "Search string.", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/product_categories" } ] } }, "\/ctxfeed\/v1\/products": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "search": { "description": "Search string.", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/products" } ] } }, "\/ctxfeed\/v1\/products\/ids": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/products\/ids" } ] } }, "\/ctxfeed\/v1\/products\/get_filter_data": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/products\/get_filter_data" } ] } }, "\/ctxfeed\/v1\/product_taxonomy": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "country_code": { "description": "Country code.", "type": "string", "required": true }, "merchant": { "description": "Merchant name", "type": "string", "required": true }, "with_id": { "description": "If true then taxonomy will be downloaded with id", "type": "boolean", "default": true, "required": false }, "ext": { "description": "File extension default is txt", "type": "string", "default": "txt", "required": false }, "update": { "description": "Should update if value is true", "type": "boolean", "default": false, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/product_taxonomy" } ] } }, "\/ctxfeed\/v1\/settings": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/settings" } ] } }, "\/ctxfeed\/v1\/settings\/custom_settings": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/settings\/custom_settings" } ] } }, "\/ctxfeed\/v1\/settings\/what_we_collect": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/settings\/what_we_collect" } ] } }, "\/ctxfeed\/v1\/wp_options": { "namespace": "ctxfeed\/v1", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "page": { "description": "Page number", "type": "number", "required": false }, "per_page": { "description": "Per page", "type": "number", "required": false } } }, { "methods": [ "POST" ], "args": [] }, { "methods": [ "DELETE" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/wp_options" } ] } }, "\/ctxfeed\/v1\/make_feed\/save_feed_config": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/make_feed\/save_feed_config" } ] } }, "\/ctxfeed\/v1\/make_feed\/get_product_ids": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/make_feed\/get_product_ids" } ] } }, "\/ctxfeed\/v1\/make_feed\/make_per_batch_feed": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/make_feed\/make_per_batch_feed" } ] } }, "\/ctxfeed\/v1\/make_feed\/save_feed_file": { "namespace": "ctxfeed\/v1", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/make_feed\/save_feed_file" } ] } }, "\/ctxfeed\/v1\/wp-status": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/wp-status" } ] } }, "\/ctxfeed\/v1\/wp-status\/logs": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/wp-status\/logs" } ] } }, "\/ctxfeed\/v1\/wp-status\/delete-cache": { "namespace": "ctxfeed\/v1", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/wp-status\/delete-cache" } ] } }, "\/ctxfeed\/v1\/woo_feed_docs": { "namespace": "ctxfeed\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/ctxfeed\/v1\/woo_feed_docs" } ] } }, "\/jetpack\/v4\/remote_authorize": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/remote_authorize" } ] } }, "\/jetpack\/v4\/remote_provision": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/remote_provision" } ] } }, "\/jetpack\/v4\/remote_register": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/remote_register" } ] } }, "\/jetpack\/v4\/remote_connect": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/remote_connect" } ] } }, "\/jetpack\/v4\/connection\/check": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/check" } ] } }, "\/jetpack\/v4\/connection": { "namespace": "jetpack\/v4", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "isActive": { "description": "Set to false will trigger the site to disconnect.", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection" } ] } }, "\/jetpack\/v4\/connection\/user": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/user" } ] } }, "\/jetpack\/v4\/connection\/data": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/data" } ] } }, "\/jetpack\/v4\/connection\/plugins": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/plugins" } ] } }, "\/jetpack\/v4\/connection\/reconnect": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/reconnect" } ] } }, "\/jetpack\/v4\/connection\/register": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "from": { "description": "Indicates where the registration action was triggered for tracking\/segmentation purposes", "type": "string", "required": false }, "redirect_uri": { "description": "URI of the admin page where the user should be redirected after connection flow", "type": "string", "required": false }, "plugin_slug": { "description": "Indicates from what plugin the request is coming from", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/register" } ] } }, "\/jetpack\/v4\/connection\/authorize_url": { "namespace": "jetpack\/v4", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "redirect_uri": { "description": "URI of the admin page where the user should be redirected after connection flow", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/authorize_url" } ] } }, "\/jetpack\/v4\/user-token": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "user_token": { "description": "New user token", "type": "string", "required": true }, "is_connection_owner": { "description": "Is connection owner", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/user-token" } ] } }, "\/jetpack\/v4\/connection\/owner": { "namespace": "jetpack\/v4", "methods": [ "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "POST", "PUT", "PATCH" ], "args": { "owner": { "description": "New owner", "type": "integer", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/jetpack\/v4\/connection\/owner" } ] } }, "\/wp\/v2\/posts": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "categories": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [categories] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "categories_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [categories] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "tags": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [tags] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "tags_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [tags] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] } }, "additionalProperties": false } ], "required": false }, "sticky": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7f6e\u9802\u9805\u76ee\u3002", "type": "boolean", "required": false }, "ignore_sticky": { "description": "Whether to ignore sticky posts or not.", "type": "boolean", "default": true, "required": false }, "format": { "description": "Limit result set to items assigned one or more given formats.", "type": "array", "uniqueItems": true, "items": { "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "sticky": { "description": "\u662f\u5426\u61c9\u5c07\u6587\u7ae0\u7f6e\u9802\u3002", "type": "boolean", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "categories": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008post_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/posts" } ] } }, "\/wp\/v2\/posts\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "sticky": { "description": "\u662f\u5426\u61c9\u5c07\u6587\u7ae0\u7f6e\u9802\u3002", "type": "boolean", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "categories": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008post_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/posts\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/posts\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "sticky": { "description": "\u662f\u5426\u61c9\u5c07\u6587\u7ae0\u7f6e\u9802\u3002", "type": "boolean", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "categories": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008post_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/pages": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "menu_order": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a menu_order \u503c\u7684\u6587\u7ae0\u3002", "type": "integer", "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "menu_order" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/pages" } ] } }, "\/wp\/v2\/pages\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/pages\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/pages\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/media": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "inherit", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "inherit", "private", "trash" ], "type": "string" }, "required": false }, "media_type": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a\u5a92\u9ad4\u985e\u578b\u7684\u9644\u4ef6\u3002", "type": "string", "enum": [ "image", "video", "audio", "application" ], "required": false }, "mime_type": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7279\u5b9a MIME \u985e\u578b\u7684\u9644\u4ef6\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "alt_text": { "description": "\u9644\u4ef6\u7121\u6cd5\u986f\u793a\u6642\u6240\u986f\u793a\u7684\u66ff\u4ee3\u6587\u5b57\u3002", "type": "string", "required": false }, "caption": { "description": "\u9644\u4ef6\u8aaa\u660e\u6587\u5b57\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u9644\u4ef6\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u9644\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u9644\u4ef6\u5167\u5bb9\u8aaa\u660e\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u9644\u4ef6\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u9644\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false }, "post": { "description": "\u8207\u9644\u4ef6\u95dc\u806f\u7684\u6587\u7ae0\u7684\u6587\u7ae0 ID\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/media" } ] } }, "\/wp\/v2\/media\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "alt_text": { "description": "\u9644\u4ef6\u7121\u6cd5\u986f\u793a\u6642\u6240\u986f\u793a\u7684\u66ff\u4ee3\u6587\u5b57\u3002", "type": "string", "required": false }, "caption": { "description": "\u9644\u4ef6\u8aaa\u660e\u6587\u5b57\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u9644\u4ef6\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u9644\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u8aaa\u660e\u6587\u5b57\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u9644\u4ef6\u5167\u5bb9\u8aaa\u660e\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u9644\u4ef6\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u9644\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true } }, "required": false }, "post": { "description": "\u8207\u9644\u4ef6\u95dc\u806f\u7684\u6587\u7ae0\u7684\u6587\u7ae0 ID\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/media\/(?P[\\d]+)\/post-process": { "namespace": "wp\/v2", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "\u9644\u4ef6\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "action": { "type": "string", "enum": [ "create-image-subsizes" ], "required": true } } } ] }, "\/wp\/v2\/media\/(?P[\\d]+)\/edit": { "namespace": "wp\/v2", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "src": { "description": "\u5df2\u7de8\u8f2f\u904e\u7684\u5716\u7247\u6a94\u6848\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": true }, "modifiers": { "description": "\u5716\u7247\u7de8\u8f2f\u9663\u5217\u3002", "type": "array", "minItems": 1, "items": { "description": "\u5716\u7247\u7de8\u8f2f\u3002", "type": "object", "required": [ "type", "args" ], "oneOf": [ { "title": "\u65cb\u8f49", "properties": { "type": { "description": "\u65cb\u8f49\u985e\u578b\u3002", "type": "string", "enum": [ "rotate" ] }, "args": { "description": "\u65cb\u8f49\u5f15\u6578\u3002", "type": "object", "required": [ "angle" ], "properties": { "angle": { "description": "\u4ee5\u5ea6\u70ba\u55ae\u4f4d\uff0c\u9806\u6642\u91dd\u65b9\u5411\u65cb\u8f49\u7684\u8a2d\u5b9a\u503c\u3002", "type": "number" } } } } }, { "title": "\u88c1\u526a", "properties": { "type": { "description": "\u88c1\u526a\u985e\u578b\u3002", "type": "string", "enum": [ "crop" ] }, "args": { "description": "\u88c1\u526a\u5f15\u6578\u3002", "type": "object", "required": [ "left", "top", "width", "height" ], "properties": { "left": { "description": "\u5f9e\u5de6\u5074\u958b\u59cb\u88c1\u526a\u7684\u6c34\u5e73\u4f4d\u7f6e (\u4ee5\u4f54\u7528\u5716\u7247\u5bec\u5ea6\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002", "type": "number" }, "top": { "description": "\u5f9e\u9802\u7aef\u958b\u59cb\u88c1\u526a\u7684\u5782\u76f4\u4f4d\u7f6e (\u4ee5\u4f54\u7528\u5716\u7247\u9ad8\u5ea6\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002", "type": "number" }, "width": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684\u5bec\u5ea6 (\u4ee5\u4f54\u7528\u5716\u7247\u5bec\u5ea6\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002", "type": "number" }, "height": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684\u9ad8\u5ea6 (\u4ee5\u4f54\u7528\u5716\u7247\u9ad8\u5ea6\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002", "type": "number" } } } } } ] }, "required": false }, "rotation": { "description": "\u4ee5\u5ea6\u70ba\u55ae\u4f4d\uff0c\u7528\u65bc\u9806\u6642\u91dd\u65b9\u5411\u65cb\u8f49\u5716\u7247\u3002\u5df2\u6dd8\u6c70\u4e0d\u7528\uff0c\u8acb\u6539\u7528 modifiers\u3002", "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 360, "exclusiveMaximum": true, "required": false }, "x": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684 X \u8ef8\u8d77\u59cb\u4f4d\u7f6e (\u4ee5\u4f54\u7528\u5716\u7247\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002\u5df2\u6dd8\u6c70\u4e0d\u7528\uff0c\u8acb\u6539\u7528 modifiers\u3002", "type": "number", "minimum": 0, "maximum": 100, "required": false }, "y": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684 Y \u8ef8\u8d77\u59cb\u4f4d\u7f6e (\u4ee5\u4f54\u7528\u5716\u7247\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002\u5df2\u6dd8\u6c70\u4e0d\u7528\uff0c\u8acb\u6539\u7528 modifiers\u3002", "type": "number", "minimum": 0, "maximum": 100, "required": false }, "width": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684\u5bec\u5ea6 (\u4ee5\u4f54\u7528\u5716\u7247\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002\u5df2\u6dd8\u6c70\u4e0d\u7528\uff0c\u8acb\u6539\u7528 modifiers\u3002", "type": "number", "minimum": 0, "maximum": 100, "required": false }, "height": { "description": "\u7528\u65bc\u88c1\u526a\u5716\u7247\u7684\u9ad8\u5ea6 (\u4ee5\u4f54\u7528\u5716\u7247\u7684\u767e\u5206\u6bd4\u8a08\u7b97)\u3002\u5df2\u6dd8\u6c70\u4e0d\u7528\uff0c\u8acb\u6539\u7528 modifiers\u3002", "type": "number", "minimum": 0, "maximum": 100, "required": false } } } ] }, "\/wp\/v2\/menu-items": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 100, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "menu_order", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "menu_order" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "menus": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [menus] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "menus_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [menus] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] } }, "additionalProperties": false } ], "required": false }, "menu_order": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a menu_order \u503c\u7684\u6587\u7ae0\u3002", "type": "integer", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "title": { "description": "\u7269\u4ef6\u7684\u6a19\u984c\u3002", "type": [ "string", "object" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7269\u4ef6\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u7269\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "type": { "default": "custom", "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u7cfb\u5217\uff0c\u4f8b\u5982 post_type \u6216 taxonomy\u3002", "type": "string", "enum": [ "taxonomy", "post_type", "post_type_archive", "custom" ], "required": false }, "status": { "default": "publish", "description": "\u7269\u4ef6\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "parent": { "default": 0, "description": "\u7269\u4ef6\u7684\u4e0a\u5c64\u9805\u76ee ID\u3002", "type": "integer", "minimum": 0, "required": false }, "attr_title": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20 title \u5c6c\u6027\u6587\u5b57\u3002", "type": "string", "required": false }, "classes": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u985e\u5225\u540d\u7a31\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "description": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "menu_order": { "default": 1, "description": "nav_menu_item \u7684\u8cc7\u6599\u5eab ID\u3002\u5982\u679c\u6709 nav_menu_item\uff0c\u4fbf\u6703\u662f\u9019\u500b\u9805\u76ee\u7684\u4e0a\u5c64\u9078\u55ae\uff0c0 \u4ee3\u8868\u6c92\u6709\u3002", "type": "integer", "minimum": 1, "required": false }, "object": { "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u985e\u578b\uff0c\u4f8b\u5982 category\u3001post \u6216 attachment\u3002", "type": "string", "required": false }, "object_id": { "default": 0, "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u4ee3\u8868\u7684\u539f\u59cb\u7269\u4ef6\u7684\u8cc7\u6599\u5eab ID\uff0c\u4f8b\u5982\u6587\u7ae0 ID \u53ca\u5206\u985e\u7684 term_id\u3002", "type": "integer", "minimum": 0, "required": false }, "target": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u76ee\u6a19\u5c6c\u6027\u3002", "type": "string", "enum": [ "_blank", "" ], "required": false }, "url": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u6240\u6307\u5411\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "xfn": { "description": "\u5728\u9019\u500b\u9078\u55ae\u9805\u76ee\u9023\u7d50\u8868\u793a\u7684 XFN \u4eba\u969b\u95dc\u4fc2\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "menus": { "description": "\u5df2\u6307\u6d3e\u81f3\u3008nav_menu\u3009\u5206\u985e\u6cd5\u7269\u4ef6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/menu-items" } ] } }, "\/wp\/v2\/menu-items\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "title": { "description": "\u7269\u4ef6\u7684\u6a19\u984c\u3002", "type": [ "string", "object" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7269\u4ef6\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u7269\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "type": { "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u7cfb\u5217\uff0c\u4f8b\u5982 post_type \u6216 taxonomy\u3002", "type": "string", "enum": [ "taxonomy", "post_type", "post_type_archive", "custom" ], "required": false }, "status": { "description": "\u7269\u4ef6\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "parent": { "description": "\u7269\u4ef6\u7684\u4e0a\u5c64\u9805\u76ee ID\u3002", "type": "integer", "minimum": 0, "required": false }, "attr_title": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20 title \u5c6c\u6027\u6587\u5b57\u3002", "type": "string", "required": false }, "classes": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u985e\u5225\u540d\u7a31\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "description": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "menu_order": { "description": "nav_menu_item \u7684\u8cc7\u6599\u5eab ID\u3002\u5982\u679c\u6709 nav_menu_item\uff0c\u4fbf\u6703\u662f\u9019\u500b\u9805\u76ee\u7684\u4e0a\u5c64\u9078\u55ae\uff0c0 \u4ee3\u8868\u6c92\u6709\u3002", "type": "integer", "minimum": 1, "required": false }, "object": { "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u985e\u578b\uff0c\u4f8b\u5982 category\u3001post \u6216 attachment\u3002", "type": "string", "required": false }, "object_id": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u4ee3\u8868\u7684\u539f\u59cb\u7269\u4ef6\u7684\u8cc7\u6599\u5eab ID\uff0c\u4f8b\u5982\u6587\u7ae0 ID \u53ca\u5206\u985e\u7684 term_id\u3002", "type": "integer", "minimum": 0, "required": false }, "target": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u76ee\u6a19\u5c6c\u6027\u3002", "type": "string", "enum": [ "_blank", "" ], "required": false }, "url": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u6240\u6307\u5411\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "xfn": { "description": "\u5728\u9019\u500b\u9078\u55ae\u9805\u76ee\u9023\u7d50\u8868\u793a\u7684 XFN \u4eba\u969b\u95dc\u4fc2\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "menus": { "description": "\u5df2\u6307\u6d3e\u81f3\u3008nav_menu\u3009\u5206\u985e\u6cd5\u7269\u4ef6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/menu-items\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u7269\u4ef6\u7684\u4e0a\u5c64\u9805\u76ee ID\u3002", "type": "integer", "minimum": 0, "required": false }, "title": { "description": "\u7269\u4ef6\u7684\u6a19\u984c\u3002", "type": [ "string", "object" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7269\u4ef6\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u7269\u4ef6\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "type": { "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u7cfb\u5217\uff0c\u4f8b\u5982 post_type \u6216 taxonomy\u3002", "type": "string", "enum": [ "taxonomy", "post_type", "post_type_archive", "custom" ], "required": false }, "status": { "description": "\u7269\u4ef6\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "attr_title": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20 title \u5c6c\u6027\u6587\u5b57\u3002", "type": "string", "required": false }, "classes": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u985e\u5225\u540d\u7a31\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "description": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "menu_order": { "description": "nav_menu_item \u7684\u8cc7\u6599\u5eab ID\u3002\u5982\u679c\u6709 nav_menu_item\uff0c\u4fbf\u6703\u662f\u9019\u500b\u9805\u76ee\u7684\u4e0a\u5c64\u9078\u55ae\uff0c0 \u4ee3\u8868\u6c92\u6709\u3002", "type": "integer", "minimum": 1, "required": false }, "object": { "description": "\u7269\u4ef6\u521d\u59cb\u8868\u793a\u985e\u578b\uff0c\u4f8b\u5982 category\u3001post \u6216 attachment\u3002", "type": "string", "required": false }, "object_id": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u4ee3\u8868\u7684\u539f\u59cb\u7269\u4ef6\u7684\u8cc7\u6599\u5eab ID\uff0c\u4f8b\u5982\u6587\u7ae0 ID \u53ca\u5206\u985e\u7684 term_id\u3002", "type": "integer", "minimum": 0, "required": false }, "target": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u7684\u9023\u7d50\u5143\u7d20\u76ee\u6a19\u5c6c\u6027\u3002", "type": "string", "enum": [ "_blank", "" ], "required": false }, "url": { "description": "\u9019\u500b\u9078\u55ae\u9805\u76ee\u6240\u6307\u5411\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "xfn": { "description": "\u5728\u9019\u500b\u9078\u55ae\u9805\u76ee\u9023\u7d50\u8868\u793a\u7684 XFN \u4eba\u969b\u95dc\u4fc2\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "menus": { "description": "\u5df2\u6307\u6d3e\u81f3\u3008nav_menu\u3009\u5206\u985e\u6cd5\u7269\u4ef6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false } } } ] }, "\/wp\/v2\/menu-items\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/blocks": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "wp_pattern_category": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [wp_pattern_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "wp_pattern_category_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [wp_pattern_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] } }, "additionalProperties": false } ], "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "wp_pattern_sync_status": { "type": "string", "title": "", "description": "", "default": "", "enum": [ "partial", "unsynced" ] }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "wp_pattern_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008wp_pattern_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/blocks" } ] } }, "\/wp\/v2\/blocks\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "wp_pattern_sync_status": { "type": "string", "title": "", "description": "", "default": "", "enum": [ "partial", "unsynced" ] }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "wp_pattern_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008wp_pattern_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/blocks\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/blocks\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit" ] } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "wp_pattern_sync_status": { "type": "string", "title": "", "description": "", "default": "", "enum": [ "partial", "unsynced" ] }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "wp_pattern_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008wp_pattern_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": false }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false } } } ] }, "\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/templates": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "wp_id": { "description": "\u9650\u5236\u70ba\u6307\u5b9a\u6587\u7ae0 ID\u3002", "type": "integer", "required": false }, "area": { "description": "\u9650\u5236\u70ba\u6307\u5b9a\u7bc4\u672c\u7d44\u4ef6\u5340\u57df\u3002", "type": "string", "required": false }, "post_type": { "description": "\u53d6\u5f97\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u985e\u578b\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": true }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "default": "", "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "default": "", "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "default": "", "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "default": "publish", "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/templates" } ] } }, "\/wp\/v2\/templates\/lookup": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "The slug of the template to get the fallback for", "type": "string", "required": true }, "is_custom": { "description": "Indicates if a template is custom or part of the template hierarchy", "type": "boolean", "required": false }, "template_prefix": { "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/templates\/lookup" } ] } }, "\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": false }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": false }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false }, "area": { "description": "\u9700\u8981\u4f7f\u7528\u7bc4\u672c\u7d44\u4ef6\u7684\u4f4d\u7f6e (\u4f8b\u5982\u9801\u9996\u3001\u9801\u5c3e\u7b49)", "type": "string", "required": false } } } ] }, "\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/template-parts": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "wp_id": { "description": "\u9650\u5236\u70ba\u6307\u5b9a\u6587\u7ae0 ID\u3002", "type": "integer", "required": false }, "area": { "description": "\u9650\u5236\u70ba\u6307\u5b9a\u7bc4\u672c\u7d44\u4ef6\u5340\u57df\u3002", "type": "string", "required": false }, "post_type": { "description": "\u53d6\u5f97\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u985e\u578b\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": true }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "default": "", "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "default": "", "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "default": "", "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "default": "publish", "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false }, "area": { "description": "\u9700\u8981\u4f7f\u7528\u7bc4\u672c\u7d44\u4ef6\u7684\u4f4d\u7f6e (\u4f8b\u5982\u9801\u9996\u3001\u9801\u5c3e\u7b49)", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/template-parts" } ] } }, "\/wp\/v2\/template-parts\/lookup": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "slug": { "description": "The slug of the template to get the fallback for", "type": "string", "required": true }, "is_custom": { "description": "Indicates if a template is custom or part of the template hierarchy", "type": "boolean", "required": false }, "template_prefix": { "description": "The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/template-parts\/lookup" } ] } }, "\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "slug": { "description": "\u8b58\u5225\u7bc4\u672c\u7684\u552f\u4e00\u4ee3\u7a31\u3002", "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_\\%-]+", "required": false }, "theme": { "description": "\u7bc4\u672c\u7684\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "type": { "description": "\u7bc4\u672c\u7684\u985e\u578b\u3002", "type": "string", "required": false }, "content": { "description": "\u7bc4\u672c\u5167\u5bb9\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ] }, "block_version": { "description": "\u7bc4\u672c\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true } }, "required": false }, "title": { "description": "\u7bc4\u672c\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7bc4\u672c\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u7bc4\u672c\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "description": { "description": "\u7bc4\u672c\u5167\u5bb9\u8aaa\u660e\u3002", "type": "string", "required": false }, "status": { "description": "\u7bc4\u672c\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "author": { "description": "\u7bc4\u672c\u4f5c\u8005\u7684 ID\u3002", "type": "integer", "required": false }, "area": { "description": "\u9700\u8981\u4f7f\u7528\u7bc4\u672c\u7d44\u4ef6\u7684\u4f4d\u7f6e (\u4f8b\u5982\u9801\u9996\u3001\u9801\u5c3e\u7b49)", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/global-styles\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false } } } ] }, "\/wp\/v2\/global-styles\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "The ID for the parent of the global styles revision.", "type": "integer", "required": false }, "id": { "description": "Unique identifier for the global styles revision.", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/global-styles\/themes\/(?P[\\\/\\s%\\w\\.\\(\\)\\[\\]\\@_\\-]+)\/variations": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": false }, "args": { "stylesheet": { "description": "\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc", "type": "string", "required": false } } } ] }, "\/wp\/v2\/global-styles\/themes\/(?P[^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": false }, "args": { "stylesheet": { "description": "\u4f48\u666f\u4e3b\u984c\u8b58\u5225\u78bc", "type": "string", "required": false } } } ] }, "\/wp\/v2\/global-styles\/(?P[\\\/\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": false }, "args": { "id": { "description": "\u7bc4\u672c ID\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": false }, "args": { "styles": { "description": "\u5168\u57df\u6a23\u5f0f\u3002", "type": [ "object" ], "required": false }, "settings": { "description": "\u5168\u57df\u8a2d\u5b9a\u3002", "type": [ "object" ], "required": false }, "title": { "description": "\u5168\u57df\u6a23\u5f0f\u8b8a\u5316\u7684\u6a19\u984c\u3002", "type": [ "object", "string" ], "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u5168\u57df\u6a23\u5f0f\u8b8a\u5316\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false } } } ] }, "\/wp\/v2\/navigation": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/navigation" } ] } }, "\/wp\/v2\/navigation\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/navigation\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/navigation\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/navigation\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit", "embed" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/navigation\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/font-families": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "id", "enum": [ "id", "include" ], "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "args": { "theme_json_version": { "description": "Version of the theme.json schema used for the typography settings.", "type": "integer", "default": 3, "minimum": 2, "maximum": 3, "required": false }, "font_family_settings": { "description": "font-family declaration in theme.json format, encoded as a string.", "type": "string", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/font-families" } ] } }, "\/wp\/v2\/font-families\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "theme_json_version": { "description": "Version of the theme.json schema used for the typography settings.", "type": "integer", "default": 3, "minimum": 2, "maximum": 3, "required": false }, "font_family_settings": { "description": "font-family declaration in theme.json format, encoded as a string.", "type": "string", "required": true } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/font-families\/(?P[\\d]+)\/font-faces": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "font_family_id": { "description": "The ID for the parent font family of the font face.", "type": "integer", "required": true }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "id", "enum": [ "id", "include" ], "required": false } } }, { "methods": [ "POST" ], "args": { "font_family_id": { "description": "The ID for the parent font family of the font face.", "type": "integer", "required": true }, "theme_json_version": { "description": "Version of the theme.json schema used for the typography settings.", "type": "integer", "default": 3, "minimum": 2, "maximum": 3, "required": false }, "font_face_settings": { "description": "font-face declaration in theme.json format, encoded as a string.", "type": "string", "required": true } } } ] }, "\/wp\/v2\/font-families\/(?P[\\d]+)\/font-faces\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "font_family_id": { "description": "The ID for the parent font family of the font face.", "type": "integer", "required": true }, "id": { "description": "Unique identifier for the font face.", "type": "integer", "required": true }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "font_family_id": { "description": "The ID for the parent font family of the font face.", "type": "integer", "required": true }, "id": { "description": "Unique identifier for the font face.", "type": "integer", "required": true }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/product": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "popularity", "rating", "post__in", "price", "sales", "menu_order", "random", "popularity", "rating" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "product_brand": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [product_brand] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "product_brand_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [product_brand] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "product_cat": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [product_cat] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "product_cat_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [product_cat] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "product_tag": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [product_tag] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "product_tag_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [product_tag] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] } }, "additionalProperties": false } ], "required": false }, "brand": { "description": "Limit result set to products assigned a specific brand ID.", "type": "string", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "product_brand": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_brand\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_cat": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_cat\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_tag": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/product" } ] } }, "\/wp\/v2\/product\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "product_brand": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_brand\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_cat": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_cat\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_tag": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/product\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "product_brand": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_brand\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_cat": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_cat\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "product_tag": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008product_tag\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "bundle_virtual": { "description": "Forces all contents of this bundle to be treated as virtual.", "type": "boolean", "required": false }, "bundle_layout": { "description": "Single-product details page layout. Applicable for bundle-type products only.", "type": "string", "enum": [ "default", "tabular", "grid" ], "required": false }, "bundle_add_to_cart_form_location": { "description": "Controls the form location of the product in the single-product page. Applicable to bundle-type products.", "type": "string", "enum": [ "default", "after_summary" ], "required": false }, "bundle_editable_in_cart": { "description": "Controls whether the configuration of this product can be modified from the cart page. Applicable to bundle-type products.", "type": "boolean", "required": false }, "bundle_sold_individually_context": { "description": "Sold Individually option context. Applicable to bundle-type products.", "type": "string", "enum": [ "product", "configuration" ], "required": false }, "bundle_item_grouping": { "description": "Controls the display of bundle container\/child items in cart\/order templates. Applicable for bundle-type products only.", "type": "string", "enum": [ "parent", "noindent", "none" ], "required": false }, "bundle_min_size": { "description": "Min bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundle_max_size": { "description": "Max bundle size. Applicable for bundle-type products only.", "type": [ "integer", "string" ], "required": false }, "bundled_items": { "description": "List of bundled items contained in this product. Applicable for bundle-type products only.", "type": "array", "items": { "type": "object", "properties": { "id": { "description": "Bundled item ID.", "type": "integer", "context": [ "view", "edit" ], "readonly": true }, "delete": { "description": "Set to true to delete the bundled item with the specified ID.", "type": "boolean", "context": [ "edit" ] }, "product_id": { "description": "Bundled product ID.", "type": "integer", "context": [ "view", "edit" ] }, "menu_order": { "description": "Bundled item menu order.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_min": { "description": "Minimum bundled item quantity.", "type": "integer", "context": [ "view", "edit" ] }, "quantity_max": { "description": "Maximum bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "quantity_default": { "description": "Default bundled item quantity.", "type": [ "integer", "string" ], "context": [ "view", "edit" ] }, "priced_individually": { "description": "Indicates whether the price of this bundled item is added to the base price of the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "shipped_individually": { "description": "Indicates whether the bundled product is shipped separately from the bundle.", "type": "boolean", "context": [ "view", "edit" ] }, "override_title": { "description": "Indicates whether the title of the bundled product is overridden in front-end and e-mail templates.", "type": "boolean", "context": [ "view", "edit" ] }, "title": { "description": "Title of the bundled product to display instead of the original product title, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "override_description": { "description": "Indicates whether the short description of the bundled product is overridden in front-end templates.", "type": "boolean", "context": [ "view", "edit" ] }, "description": { "description": "Short description of the bundled product to display instead of the original product short description, if overridden.", "type": "string", "context": [ "view", "edit" ] }, "optional": { "description": "Indicates whether the bundled item is optional.", "type": "boolean", "context": [ "view", "edit" ] }, "hide_thumbnail": { "description": "Indicates whether the bundled product thumbnail is hidden in the single-product template.", "type": "boolean", "context": [ "view", "edit" ] }, "discount": { "description": "Discount applied to the bundled product, applicable when the Priced Individually option is enabled.", "type": "string", "context": [ "view", "edit" ] }, "override_variations": { "description": "Indicates whether variations filtering is active, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "allowed_variations": { "description": "List of enabled variation IDs, applicable when variations filtering is active.", "type": "array", "items": { "type": "integer" }, "context": [ "view", "edit" ] }, "override_default_variation_attributes": { "description": "Indicates whether the default variation attribute values are overridden, applicable for variable bundled products only.", "type": "boolean", "context": [ "view", "edit" ] }, "default_variation_attributes": { "description": "Overridden default variation attribute values, if applicable.", "type": "array", "context": [ "view", "edit" ], "items": { "type": "object", "properties": { "id": { "description": "\u5c6c\u6027\u7de8\u865f\u3002", "type": "integer", "context": [ "view", "edit" ] }, "name": { "description": "\u5c6c\u6027\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] }, "option": { "description": "\u9078\u53d6\u7684\u5c6c\u6027\u8a5e\u5f59\u540d\u7a31\u3002", "type": "string", "context": [ "view", "edit" ] } } } }, "single_product_visibility": { "description": "Indicates whether the bundled product is visible in the single-product template.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_visibility": { "description": "Indicates whether the bundled product is visible in cart templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_visibility": { "description": "Indicates whether the bundled product is visible in order\/e-mail templates.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "single_product_price_visibility": { "description": "Indicates whether the bundled product price is visible in the single-product template, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "cart_price_visibility": { "description": "Indicates whether the bundled product price is visible in cart templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "order_price_visibility": { "description": "Indicates whether the bundled product price is visible in order\/e-mail templates, applicable when the Priced Individually option is enabled.", "type": "string", "enum": [ "visible", "hidden" ], "context": [ "view", "edit" ] }, "stock_status": { "description": "Stock status of the bundled item, taking minimum quantity into account.", "type": "string", "context": [ "view", "edit" ], "enum": [ "in_stock", "on_backorder", "out_of_stock" ], "readonly": true } } }, "required": false }, "bundle_sell_ids": { "description": "List of bundle-sells product IDs.", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wp\/v2\/product\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/points-type": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/points-type" } ] } }, "\/wp\/v2\/points-type\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/points-award": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/points-award" } ] } }, "\/wp\/v2\/points-award\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/points-deduct": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/points-deduct" } ] } }, "\/wp\/v2\/points-deduct\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/achievement-type": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/achievement-type" } ] } }, "\/wp\/v2\/achievement-type\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/step": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/step" } ] } }, "\/wp\/v2\/step\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/rank-type": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/rank-type" } ] } }, "\/wp\/v2\/rank-type\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/rank-requirement": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/rank-requirement" } ] } }, "\/wp\/v2\/rank-requirement\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/achievement": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "menu_order": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a menu_order \u503c\u7684\u6587\u7ae0\u3002", "type": "integer", "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "menu_order" ], "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "parent_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u542b\u6709\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u4e4b\u5916\u7684\u5168\u90e8\u9805\u76ee\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/achievement" } ] } }, "\/wp\/v2\/achievement\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/achievement\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u6587\u7ae0\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/achievement\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/avada_portfolio": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "menu_order": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a menu_order \u503c\u7684\u6587\u7ae0\u3002", "type": "integer", "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "menu_order" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "portfolio_category": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [portfolio_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "portfolio_category_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [portfolio_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "portfolio_skills": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [portfolio_skills] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "portfolio_skills_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [portfolio_skills] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "portfolio_tags": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [portfolio_tags] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "portfolio_tags_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [portfolio_tags] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] } }, "additionalProperties": false } ], "required": false }, "format": { "description": "Limit result set to items assigned one or more given formats.", "type": "array", "uniqueItems": true, "items": { "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "portfolio_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_skills": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_skills\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_tags\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/avada_portfolio" } ] } }, "\/wp\/v2\/avada_portfolio\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "portfolio_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_skills": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_skills\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_tags\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/avada_portfolio\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/avada_portfolio\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/avada_portfolio\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "portfolio_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_skills": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_skills\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "portfolio_tags": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008portfolio_tags\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wp\/v2\/avada_portfolio\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/avada_faq": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u81f3\u6307\u5b9a\u4f5c\u8005\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "modified_before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u6587\u7ae0\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "menu_order": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u6307\u5b9a menu_order \u503c\u7684\u6587\u7ae0\u3002", "type": "integer", "required": false }, "search_semantics": { "description": "How to interpret the search input.", "type": "string", "enum": [ "exact" ], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "menu_order" ], "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "post_title", "post_content", "post_excerpt" ], "type": "string" }, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "status": { "default": "publish", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u6587\u7ae0\u3002", "type": "array", "items": { "enum": [ "publish", "future", "draft", "pending", "private", "trash", "auto-draft", "inherit", "request-pending", "request-confirmed", "request-failed", "request-completed", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft", "any" ], "type": "string" }, "required": false }, "tax_relation": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u57fa\u65bc\u591a\u500b\u5206\u985e\u6cd5\u9593\u7684\u95dc\u4fc2\u3002", "type": "string", "enum": [ "AND", "OR" ], "required": false }, "faq_category": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5728 [faq_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false }, "operator": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u9805\u76ee\u662f\u5426\u5fc5\u9808\u6307\u6d3e\u7d66\u5168\u90e8\u6216\u4efb\u4f55\u6307\u5b9a\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "string", "enum": [ "AND", "OR" ], "default": "OR" } }, "additionalProperties": false } ], "required": false }, "faq_category_exclude": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u9664\u4e86\u5728 [faq_category] \u5206\u985e\u6cd5\u4e2d\u4f7f\u7528\u6307\u6d3e\u6307\u5b9a\u5206\u985e\u6cd5\u8a5e\u5f59\u4e4b\u5916\u7684\u9805\u76ee\u3002", "type": [ "object", "array" ], "oneOf": [ { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u6e05\u55ae", "description": "\u5c07\u5206\u985e\u6cd5\u8a5e\u5f59\u8207\u5217\u51fa\u7684 ID \u9032\u884c\u6bd4\u5c0d\u3002", "type": "array", "items": { "type": "integer" } }, { "title": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID \u5206\u985e\u6cd5\u67e5\u8a62", "description": "\u57f7\u884c\u9032\u968e\u5206\u985e\u6cd5\u8a5e\u5f59\u67e5\u8a62\u3002", "type": "object", "properties": { "terms": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [] }, "include_children": { "description": "\u662f\u5426\u5728\u9650\u5236\u7d50\u679c\u96c6\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u4e2d\u5305\u542b\u5b50\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false } }, "additionalProperties": false } ], "required": false }, "format": { "description": "Limit result set to items assigned one or more given formats.", "type": "array", "uniqueItems": true, "items": { "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "faq_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008faq_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/avada_faq" } ] } }, "\/wp\/v2\/avada_faq\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "excerpt_length": { "description": "Override the default excerpt length.", "type": "integer", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "faq_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008faq_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u6587\u7ae0\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false } } } ] }, "\/wp\/v2\/avada_faq\/(?P[\\d]+)\/revisions": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7269\u4ef6\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "date", "id", "include", "relevance", "slug", "include_slugs", "title" ], "required": false } } } ] }, "\/wp\/v2\/avada_faq\/(?P[\\d]+)\/revisions\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "DELETE" ], "args": { "parent": { "description": "\u4e0a\u5c64\u5167\u5bb9\u4fee\u8a02\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u5167\u5bb9\u4fee\u8a02\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u5167\u5bb9\u4fee\u8a02] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/avada_faq\/(?P[\\d]+)\/autosaves": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u6587\u7ae0\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": [ "string", "null" ], "format": "date-time", "required": false }, "slug": { "description": "\u6587\u7ae0\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "status": { "description": "\u6587\u7ae0\u7684\u547d\u540d\u72c0\u614b\u3002", "type": "string", "enum": [ "publish", "future", "draft", "pending", "private", "wc-pending", "wc-processing", "wc-on-hold", "wc-completed", "wc-cancelled", "wc-refunded", "wc-failed", "wc-checkout-draft" ], "required": false }, "password": { "description": "\u4e00\u7d44\u7528\u4f86\u4fdd\u8b77\u5167\u5bb9\u53ca\u5167\u5bb9\u6458\u8981\u5b58\u53d6\u7684\u5bc6\u78bc\u3002", "type": "string", "required": false }, "title": { "description": "\u6587\u7ae0\u7684\u6a19\u984c\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u6a19\u984c\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u6a19\u984c\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "content": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit" ], "readonly": true }, "block_version": { "description": "\u6587\u7ae0\u4f7f\u7528\u7684\u5167\u5bb9\u5340\u584a\u683c\u5f0f\u7248\u672c\u3002", "type": "integer", "context": [ "edit" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "author": { "description": "\u6587\u7ae0\u7684\u4f5c\u8005 ID\u3002", "type": "integer", "required": false }, "excerpt": { "description": "\u6587\u7ae0\u7684\u5167\u5bb9\u6458\u8981\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u6587\u7ae0\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u6587\u7ae0\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u6458\u8981\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true }, "protected": { "description": "\u5167\u5bb9\u6458\u8981\u662f\u5426\u53d7\u5bc6\u78bc\u4fdd\u8b77\u3002", "type": "boolean", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "featured_media": { "description": "\u6587\u7ae0\u7684\u7cbe\u9078\u5a92\u9ad4 ID\u3002", "type": "integer", "required": false }, "comment_status": { "description": "\u662f\u5426\u555f\u7528\u6587\u7ae0\u7684\u7559\u8a00\u529f\u80fd\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "ping_status": { "description": "\u662f\u5426\u80fd\u901a\u77e5\u6587\u7ae0\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "menu_order": { "description": "\u6587\u7ae0\u8207\u5176\u4ed6\u6587\u7ae0\u7684\u76f8\u5c0d\u9806\u5e8f\u3002", "type": "integer", "required": false }, "format": { "description": "\u6587\u7ae0\u7684\u683c\u5f0f\u3002", "type": "string", "enum": [ "standard", "aside", "chat", "gallery", "link", "image", "quote", "status", "video", "audio" ], "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "content-type": { "type": "string", "title": "", "description": "", "default": "" }, "footnotes": { "type": "string", "title": "", "description": "", "default": "" } }, "required": false }, "template": { "description": "\u7528\u65bc\u986f\u793a\u6587\u7ae0\u7684\u4f48\u666f\u4e3b\u984c\u6a94\u6848\u3002", "type": "string", "required": false }, "faq_category": { "description": "\u5df2\u6307\u6d3e\u81f3\u5c6c\u65bc\u3008faq_category\u3009\u5206\u985e\u6cd5\u7684\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "integer" }, "required": false } } } ] }, "\/wp\/v2\/avada_faq\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "parent": { "description": "\u4e0a\u5c64\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "id": { "description": "\u81ea\u52d5\u5132\u5b58\u7684 ID\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/types": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/types" } ] } }, "\/wp\/v2\/types\/(?P[\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "type": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u5167\u5bb9\u985e\u578b\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/statuses": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/statuses" } ] } }, "\/wp\/v2\/statuses\/(?P[\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "status": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u72c0\u614b\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/taxonomies": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "type": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u8207\u6307\u5b9a\u5167\u5bb9\u985e\u578b\u76f8\u95dc\u7684\u5206\u985e\u6cd5\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/taxonomies" } ] } }, "\/wp\/v2\/taxonomies\/(?P[\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "taxonomy": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u5206\u985e\u6cd5\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/categories": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/categories" } ] } }, "\/wp\/v2\/categories\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/tags": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/tags" } ] } }, "\/wp\/v2\/tags\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/menus": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "locations": { "description": "\u6307\u6d3e\u7d66\u9078\u55ae\u7684\u4f4d\u7f6e\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "auto_add": { "description": "\u662f\u5426\u81ea\u52d5\u5c07\u6700\u4e0a\u5c64\u9801\u9762\u65b0\u589e\u81f3\u9019\u500b\u9078\u55ae\u3002", "type": "boolean", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/menus" } ] } }, "\/wp\/v2\/menus\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false }, "locations": { "description": "\u6307\u6d3e\u7d66\u9078\u55ae\u7684\u4f4d\u7f6e\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "auto_add": { "description": "\u662f\u5426\u81ea\u52d5\u5c07\u6700\u4e0a\u5c64\u9801\u9762\u65b0\u589e\u81f3\u9019\u500b\u9078\u55ae\u3002", "type": "boolean", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/wp_pattern_category": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/wp_pattern_category" } ] } }, "\/wp\/v2\/wp_pattern_category\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/product_brand": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/product_brand" } ] } }, "\/wp\/v2\/product_brand\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/product_cat": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/product_cat" } ] } }, "\/wp\/v2\/product_cat\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/product_tag": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/product_tag" } ] } }, "\/wp\/v2\/product_tag\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/portfolio_category": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/portfolio_category" } ] } }, "\/wp\/v2\/portfolio_category\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/portfolio_skills": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/portfolio_skills" } ] } }, "\/wp\/v2\/portfolio_skills\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/portfolio_tags": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/portfolio_tags" } ] } }, "\/wp\/v2\/portfolio_tags\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/faq_category": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "asc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u5206\u985e\u6cd5\u8a5e\u5f59\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "name", "enum": [ "id", "include", "name", "slug", "include_slugs", "term_group", "description", "count" ], "required": false }, "hide_empty": { "description": "\u662f\u5426\u96b1\u85cf\u5c1a\u672a\u6307\u6d3e\u81f3\u4efb\u4f55\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "boolean", "default": false, "required": false }, "parent": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "required": false }, "post": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "integer", "default": null, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u5206\u985e\u6cd5\u8a5e\u5f59\u3002", "type": "array", "items": { "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": true }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/faq_category" } ] } }, "\/wp\/v2\/faq_category\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "description": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u5167\u5bb9\u8aaa\u660e (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "name": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u6a19\u984c (\u53ef\u4f7f\u7528 HTML \u7a0b\u5f0f\u78bc)\u3002", "type": "string", "required": false }, "slug": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u8b58\u5225\u78bc\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\uff0c\u5728\u5176\u6240\u5c6c\u7684\u578b\u5225\u4e2d\u5fc5\u9808\u662f\u552f\u4e00\u7684\u9805\u76ee\u3002", "type": "string", "required": false }, "parent": { "description": "\u4e0a\u5c64\u5206\u985e\u6cd5\u8a5e\u5f59 ID\u3002", "type": "integer", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5206\u985e\u6cd5\u8a5e\u5f59\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc\u5206\u985e\u6cd5\u8a5e\u5f59\u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false } } } ] }, "\/wp\/v2\/users": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "default": "asc", "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "enum": [ "asc", "desc" ], "type": "string", "required": false }, "orderby": { "default": "name", "description": "\u4f9d\u4f7f\u7528\u8005\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "enum": [ "id", "include", "name", "registered_date", "slug", "include_slugs", "email", "url" ], "type": "string", "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u542b\u6709\u4e00\u6216\u591a\u500b\u6307\u5b9a\u4ee3\u7a31\u7684\u4f7f\u7528\u8005\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "roles": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7b26\u5408\u81f3\u5c11\u4e00\u7a2e\u6307\u5b9a\u4f7f\u7528\u8005\u89d2\u8272\u7684\u4f7f\u7528\u8005\u3002\u63a5\u53d7 CSV \u6e05\u55ae\u6216\u55ae\u4e00\u4f7f\u7528\u8005\u89d2\u8272\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "capabilities": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7b26\u5408\u81f3\u5c11\u4e00\u7a2e\u6307\u5b9a\u6b0a\u9650\u7684\u4f7f\u7528\u8005\u3002\u63a5\u53d7 CSV \u6e05\u55ae\u6216\u55ae\u4e00\u6b0a\u9650\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "who": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5224\u5b9a\u70ba\u4f5c\u8005\u7684\u4f7f\u7528\u8005\u3002", "type": "string", "enum": [ "authors" ], "required": false }, "has_published_posts": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u66fe\u767c\u4f48\u904e\u6587\u7ae0\u7684\u4f7f\u7528\u8005\u3002", "type": [ "boolean", "array" ], "items": { "type": "string", "enum": { "post": "post", "page": "page", "attachment": "attachment", "nav_menu_item": "nav_menu_item", "wp_block": "wp_block", "wp_template": "wp_template", "wp_template_part": "wp_template_part", "wp_global_styles": "wp_global_styles", "wp_navigation": "wp_navigation", "wp_font_family": "wp_font_family", "wp_font_face": "wp_font_face", "product": "product", "points-type": "points-type", "points-award": "points-award", "points-deduct": "points-deduct", "achievement-type": "achievement-type", "step": "step", "rank-type": "rank-type", "rank-requirement": "rank-requirement", "achievement": "achievement", "avada_portfolio": "avada_portfolio", "avada_faq": "avada_faq" } }, "required": false }, "search_columns": { "default": [], "description": "Array of column names to be searched.", "type": "array", "items": { "enum": [ "email", "name", "id", "username", "slug" ], "type": "string" }, "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "username": { "description": "\u4f7f\u7528\u8005\u7684\u767b\u5165\u540d\u7a31\u3002", "type": "string", "required": true }, "name": { "description": "\u4f7f\u7528\u8005\u7684\u986f\u793a\u540d\u7a31\u3002", "type": "string", "required": false }, "first_name": { "description": "\u4f7f\u7528\u8005\u7684\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u4f7f\u7528\u8005\u7684\u59d3\u6c0f\u3002", "type": "string", "required": false }, "email": { "description": "\u4f7f\u7528\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "type": "string", "format": "email", "required": true }, "url": { "description": "\u4f7f\u7528\u8005\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "description": { "description": "\u4f7f\u7528\u8005\u7684\u500b\u4eba\u8cc7\u6599\u3002", "type": "string", "required": false }, "locale": { "description": "\u4f7f\u7528\u8005\u7684\u5730\u5340\u8a9e\u8a00\u504f\u597d\u3002", "type": "string", "enum": [ "", "en_US", "en_GB", "fr_FR", "ms_MY", "zh_CN", "zh_HK" ], "required": false }, "nickname": { "description": "\u4f7f\u7528\u8005\u7684\u66b1\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u4f7f\u7528\u8005\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "roles": { "description": "\u6307\u6d3e\u7d66\u4f7f\u7528\u8005\u7684\u4f7f\u7528\u8005\u89d2\u8272\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "password": { "description": "\u4f7f\u7528\u8005\u7684\u5bc6\u78bc (\u6c38\u4e0d\u5305\u542b) \u3002", "type": "string", "required": true }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "persisted_preferences": { "type": "object", "title": "", "description": "", "default": [], "context": [ "edit" ], "properties": { "_modified": { "description": "The date and time the preferences were updated.", "type": "string", "format": "date-time", "readonly": false } }, "additionalProperties": true }, "_gamipress_happiness-point_points": { "type": "integer", "title": "", "description": "Happiness Points balance", "default": 0 } }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/users" } ] } }, "\/wp\/v2\/users\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u4f7f\u7528\u8005\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u4f7f\u7528\u8005\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "username": { "description": "\u4f7f\u7528\u8005\u7684\u767b\u5165\u540d\u7a31\u3002", "type": "string", "required": false }, "name": { "description": "\u4f7f\u7528\u8005\u7684\u986f\u793a\u540d\u7a31\u3002", "type": "string", "required": false }, "first_name": { "description": "\u4f7f\u7528\u8005\u7684\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u4f7f\u7528\u8005\u7684\u59d3\u6c0f\u3002", "type": "string", "required": false }, "email": { "description": "\u4f7f\u7528\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "type": "string", "format": "email", "required": false }, "url": { "description": "\u4f7f\u7528\u8005\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "description": { "description": "\u4f7f\u7528\u8005\u7684\u500b\u4eba\u8cc7\u6599\u3002", "type": "string", "required": false }, "locale": { "description": "\u4f7f\u7528\u8005\u7684\u5730\u5340\u8a9e\u8a00\u504f\u597d\u3002", "type": "string", "enum": [ "", "en_US", "en_GB", "fr_FR", "ms_MY", "zh_CN", "zh_HK" ], "required": false }, "nickname": { "description": "\u4f7f\u7528\u8005\u7684\u66b1\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u4f7f\u7528\u8005\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "roles": { "description": "\u6307\u6d3e\u7d66\u4f7f\u7528\u8005\u7684\u4f7f\u7528\u8005\u89d2\u8272\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "password": { "description": "\u4f7f\u7528\u8005\u7684\u5bc6\u78bc (\u6c38\u4e0d\u5305\u542b) \u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "persisted_preferences": { "type": "object", "title": "", "description": "", "default": [], "context": [ "edit" ], "properties": { "_modified": { "description": "The date and time the preferences were updated.", "type": "string", "format": "date-time", "readonly": false } }, "additionalProperties": true }, "_gamipress_happiness-point_points": { "type": "integer", "title": "", "description": "Happiness Points balance", "default": 0 } }, "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u4f7f\u7528\u8005\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u4f7f\u7528\u8005] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false }, "reassign": { "type": "integer", "description": "\u5c07\u906d\u5230\u522a\u9664\u7684\u4f7f\u7528\u8005\u7684\u6587\u7ae0\u9032\u884c\u91cd\u65b0\u6307\u6d3e\uff0c\u4e26\u5c07\u9019\u4e9b\u6587\u7ae0\u9023\u7d50\u5230\u6307\u5b9a\u7684\u4f7f\u7528\u8005 ID\u3002", "required": true } } } ] }, "\/wp\/v2\/users\/me": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "username": { "description": "\u4f7f\u7528\u8005\u7684\u767b\u5165\u540d\u7a31\u3002", "type": "string", "required": false }, "name": { "description": "\u4f7f\u7528\u8005\u7684\u986f\u793a\u540d\u7a31\u3002", "type": "string", "required": false }, "first_name": { "description": "\u4f7f\u7528\u8005\u7684\u540d\u5b57\u3002", "type": "string", "required": false }, "last_name": { "description": "\u4f7f\u7528\u8005\u7684\u59d3\u6c0f\u3002", "type": "string", "required": false }, "email": { "description": "\u4f7f\u7528\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "type": "string", "format": "email", "required": false }, "url": { "description": "\u4f7f\u7528\u8005\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "description": { "description": "\u4f7f\u7528\u8005\u7684\u500b\u4eba\u8cc7\u6599\u3002", "type": "string", "required": false }, "locale": { "description": "\u4f7f\u7528\u8005\u7684\u5730\u5340\u8a9e\u8a00\u504f\u597d\u3002", "type": "string", "enum": [ "", "en_US", "en_GB", "fr_FR", "ms_MY", "zh_CN", "zh_HK" ], "required": false }, "nickname": { "description": "\u4f7f\u7528\u8005\u7684\u66b1\u7a31\u3002", "type": "string", "required": false }, "slug": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u4f7f\u7528\u8005\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "roles": { "description": "\u6307\u6d3e\u7d66\u4f7f\u7528\u8005\u7684\u4f7f\u7528\u8005\u89d2\u8272\u3002", "type": "array", "items": { "type": "string" }, "required": false }, "password": { "description": "\u4f7f\u7528\u8005\u7684\u5bc6\u78bc (\u6c38\u4e0d\u5305\u542b) \u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": { "persisted_preferences": { "type": "object", "title": "", "description": "", "default": [], "context": [ "edit" ], "properties": { "_modified": { "description": "The date and time the preferences were updated.", "type": "string", "format": "date-time", "readonly": false } }, "additionalProperties": true }, "_gamipress_happiness-point_points": { "type": "integer", "title": "", "description": "Happiness Points balance", "default": 0 } }, "required": false } } }, { "methods": [ "DELETE" ], "args": { "force": { "type": "boolean", "default": false, "description": "\u7531\u65bc [\u4f7f\u7528\u8005] \u4e0d\u652f\u63f4 [\u56de\u6536\u6876] \u529f\u80fd\uff0c\u56e0\u6b64\u5fc5\u9808\u8a2d\u5b9a\u70ba true\u3002", "required": false }, "reassign": { "type": "integer", "description": "\u5c07\u906d\u5230\u522a\u9664\u7684\u4f7f\u7528\u8005\u7684\u6587\u7ae0\u9032\u884c\u91cd\u65b0\u6307\u6d3e\uff0c\u4e26\u5c07\u9019\u4e9b\u6587\u7ae0\u9023\u7d50\u5230\u6307\u5b9a\u7684\u4f7f\u7528\u8005 ID\u3002", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/users\/me" } ] } }, "\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST" ], "args": { "app_id": { "description": "\u7531\u61c9\u7528\u7a0b\u5f0f\u63d0\u4f9b\u3001\u7528\u65bc\u9032\u884c\u552f\u4e00\u8b58\u5225\u7684 UUID\u3002\u5efa\u8b70\u4f7f\u7528\u542b\u6709\u7db2\u5740\u6216 DNS \u547d\u540d\u7a7a\u9593\u7684 UUID v5\u3002", "type": "string", "format": "uuid", "required": false }, "name": { "description": "\u61c9\u7528\u7a0b\u5f0f\u5bc6\u78bc\u7684\u540d\u7a31\u3002", "type": "string", "minLength": 1, "pattern": ".*\\S.*", "required": true } } }, { "methods": [ "DELETE" ], "args": [] } ] }, "\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords\/introspect": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords\/(?P[\\w\\-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "app_id": { "description": "\u7531\u61c9\u7528\u7a0b\u5f0f\u63d0\u4f9b\u3001\u7528\u65bc\u9032\u884c\u552f\u4e00\u8b58\u5225\u7684 UUID\u3002\u5efa\u8b70\u4f7f\u7528\u542b\u6709\u7db2\u5740\u6216 DNS \u547d\u540d\u7a7a\u9593\u7684 UUID v5\u3002", "type": "string", "format": "uuid", "required": false }, "name": { "description": "\u61c9\u7528\u7a0b\u5f0f\u5bc6\u78bc\u7684\u540d\u7a31\u3002", "type": "string", "minLength": 1, "pattern": ".*\\S.*", "required": false } } }, { "methods": [ "DELETE" ], "args": [] } ] }, "\/wp\/v2\/comments": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "after": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u5f8c\u767c\u4f48\u7684\u7559\u8a00\u3002", "type": "string", "format": "date-time", "required": false }, "author": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u6d3e\u70ba\u6307\u5b9a\u4f7f\u7528\u8005 ID \u7684\u7559\u8a00\u3002\u9019\u9805\u64cd\u4f5c\u9700\u8981\u6388\u6b0a\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "author_exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u6d3e\u70ba\u6307\u5b9a\u4f7f\u7528\u8005 ID \u7684\u7559\u8a00\u3002\u9019\u9805\u64cd\u4f5c\u9700\u8981\u6388\u6b0a\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "author_email": { "default": null, "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u4f86\u81ea\u6307\u5b9a\u4f5c\u8005\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002\u9019\u9805\u64cd\u4f5c\u9700\u8981\u6388\u6b0a\u3002", "format": "email", "type": "string", "required": false }, "before": { "description": "\u5c07\u56de\u61c9\u9650\u5b9a\u70ba\u5728\u7b26\u5408 ISO8601 \u65e5\u671f\u6642\u9593\u683c\u5f0f\u898f\u7bc4\u524d\u767c\u4f48\u7684\u7559\u8a00\u3002", "type": "string", "format": "date-time", "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u7559\u8a00\u5c6c\u6027\u4f86\u6392\u5e8f\u96c6\u5408\u3002", "type": "string", "default": "date_gmt", "enum": [ "date", "date_gmt", "id", "include", "post", "parent", "type" ], "required": false }, "parent": { "default": [], "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID \u7684\u7559\u8a00\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "parent_exclude": { "default": [], "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a\u4e0a\u5c64\u9805\u76ee ID\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "post": { "default": [], "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u6d3e\u81f3\u6307\u5b9a\u6587\u7ae0 ID \u7684\u7559\u8a00\u3002", "type": "array", "items": { "type": "integer" }, "required": false }, "status": { "default": "approve", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u6d3e\u70ba\u6307\u5b9a\u72c0\u614b\u7684\u7559\u8a00\u3002\u9019\u9805\u64cd\u4f5c\u9700\u8981\u6388\u6b0a\u3002", "type": "string", "required": false }, "type": { "default": "comment", "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u6d3e\u70ba\u6307\u5b9a\u985e\u578b\u7684\u7559\u8a00\u3002\u9019\u9805\u64cd\u4f5c\u9700\u8981\u6388\u6b0a\u3002", "type": "string", "required": false }, "password": { "description": "\u6587\u7ae0\u53d7\u5230\u5bc6\u78bc\u4fdd\u8b77\u6642\u7684\u6587\u7ae0\u5bc6\u78bc\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "args": { "author": { "description": "\u7576\u7559\u8a00\u8005\u662f\u7db2\u7ad9\u4f7f\u7528\u8005\u6642\uff0c\u4f7f\u7528\u8005\u7269\u4ef6\u7684 ID\u3002", "type": "integer", "required": false }, "author_email": { "description": "\u7559\u8a00\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "type": "string", "format": "email", "required": false }, "author_ip": { "description": "\u7559\u8a00\u8005\u7684 IP \u4f4d\u5740\u3002", "type": "string", "format": "ip", "required": false }, "author_name": { "description": "\u7559\u8a00\u8005\u7684\u986f\u793a\u540d\u7a31\u3002", "type": "string", "required": false }, "author_url": { "description": "\u7559\u8a00\u8005\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "author_user_agent": { "description": "\u7559\u8a00\u8005\u7684\u4f7f\u7528\u8005\u4ee3\u7406\u7a0b\u5f0f", "type": "string", "required": false }, "content": { "description": "\u7559\u8a00\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7559\u8a00\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u7559\u8a00\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u7559\u8a00\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": "string", "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u7559\u8a00\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": "string", "format": "date-time", "required": false }, "parent": { "default": 0, "description": "\u4e0a\u5c64\u7559\u8a00\u7684 ID\u3002", "type": "integer", "required": false }, "post": { "default": 0, "description": "\u95dc\u806f\u6587\u7ae0\u7269\u4ef6\u7684 ID\u3002", "type": "integer", "required": false }, "status": { "description": "\u7559\u8a00\u7684\u72c0\u614b\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/comments" } ] } }, "\/wp\/v2\/comments\/(?P[\\d]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u7559\u8a00\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "password": { "description": "\u7559\u8a00\u7684\u4e0a\u5c64\u6587\u7ae0\u7684\u5bc6\u78bc (\u82e5\u6587\u7ae0\u53d7\u5bc6\u78bc\u4fdd\u8b77)\u3002", "type": "string", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "id": { "description": "\u7559\u8a00\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "author": { "description": "\u7576\u7559\u8a00\u8005\u662f\u7db2\u7ad9\u4f7f\u7528\u8005\u6642\uff0c\u4f7f\u7528\u8005\u7269\u4ef6\u7684 ID\u3002", "type": "integer", "required": false }, "author_email": { "description": "\u7559\u8a00\u8005\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002", "type": "string", "format": "email", "required": false }, "author_ip": { "description": "\u7559\u8a00\u8005\u7684 IP \u4f4d\u5740\u3002", "type": "string", "format": "ip", "required": false }, "author_name": { "description": "\u7559\u8a00\u8005\u7684\u986f\u793a\u540d\u7a31\u3002", "type": "string", "required": false }, "author_url": { "description": "\u7559\u8a00\u8005\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": false }, "author_user_agent": { "description": "\u7559\u8a00\u8005\u7684\u4f7f\u7528\u8005\u4ee3\u7406\u7a0b\u5f0f", "type": "string", "required": false }, "content": { "description": "\u7559\u8a00\u7684\u5167\u5bb9\u3002", "type": "object", "properties": { "raw": { "description": "\u5132\u5b58\u65bc\u8cc7\u6599\u5eab\u4e2d\u7684\u7559\u8a00\u5167\u5bb9\u3002", "type": "string", "context": [ "edit" ] }, "rendered": { "description": "\u7559\u8a00\u7528\u65bc\u8f49\u63db\u70ba\u986f\u793a\u7528\u9014\u7684 HTML \u683c\u5f0f\u5167\u5bb9\u3002", "type": "string", "context": [ "view", "edit", "embed" ], "readonly": true } }, "required": false }, "date": { "description": "\u4ee5\u9019\u500b\u7db2\u7ad9\u7684\u6642\u5340\u986f\u793a\u7559\u8a00\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": "string", "format": "date-time", "required": false }, "date_gmt": { "description": "\u4ee5 GMT \u683c\u5f0f\u986f\u793a\u7559\u8a00\u7684\u767c\u4f48\u65e5\u671f\u3002", "type": "string", "format": "date-time", "required": false }, "parent": { "description": "\u4e0a\u5c64\u7559\u8a00\u7684 ID\u3002", "type": "integer", "required": false }, "post": { "description": "\u95dc\u806f\u6587\u7ae0\u7269\u4ef6\u7684 ID\u3002", "type": "integer", "required": false }, "status": { "description": "\u7559\u8a00\u7684\u72c0\u614b\u3002", "type": "string", "required": false }, "meta": { "description": "\u4e2d\u7e7c\u8cc7\u6599\u6b04\u4f4d\u3002", "type": "object", "properties": [], "required": false } } }, { "methods": [ "DELETE" ], "args": { "id": { "description": "\u7559\u8a00\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "integer", "required": false }, "force": { "type": "boolean", "default": false, "description": "\u662f\u5426\u7565\u904e\u79fb\u81f3\u56de\u6536\u6876\u7684\u7a0b\u5e8f\u9032\u884c\u5f37\u5236\u522a\u9664\u3002", "required": false }, "password": { "description": "\u7559\u8a00\u7684\u4e0a\u5c64\u6587\u7ae0\u7684\u5bc6\u78bc (\u82e5\u6587\u7ae0\u53d7\u5bc6\u78bc\u4fdd\u8b77)\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/search": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "type": { "default": "post", "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7269\u4ef6\u985e\u578b\u7684\u9805\u76ee\u3002", "type": "string", "enum": [ "post", "term", "post-format" ], "required": false }, "subtype": { "default": "any", "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u4e00\u6216\u591a\u500b\u7269\u4ef6\u5b50\u985e\u578b\u7684\u9805\u76ee\u3002", "type": "array", "items": { "enum": [ "post", "page", "product", "achievement", "avada_portfolio", "avada_faq", "category", "post_tag", "product_brand", "product_cat", "product_tag", "portfolio_category", "portfolio_skills", "portfolio_tags", "faq_category", "any" ], "type": "string" }, "required": false }, "exclude": { "description": "\u78ba\u4fdd\u7d50\u679c\u96c6\u6392\u9664\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false }, "include": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u6307\u5b9a ID\u3002", "type": "array", "items": { "type": "integer" }, "default": [], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/search" } ] } }, "\/wp\/v2\/block-renderer\/(?P[a-z0-9-]+\/[a-z0-9-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET", "POST" ], "args": { "name": { "description": "\u5340\u584a\u7684\u552f\u4e00\u8a3b\u518a\u540d\u7a31\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "edit" ], "default": "view", "required": false }, "attributes": { "description": "\u5340\u584a\u7684\u5c6c\u6027\u3002", "type": "object", "default": [], "required": false }, "post_id": { "description": "\u6587\u7ae0\u5167\u5bb9\u7684 ID\u3002", "type": "integer", "required": false } } } ] }, "\/wp\/v2\/block-types": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "namespace": { "description": "\u5340\u584a\u547d\u540d\u7a7a\u9593\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/block-types" } ] } }, "\/wp\/v2\/block-types\/(?P[a-zA-Z0-9_-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "namespace": { "description": "\u5340\u584a\u547d\u540d\u7a7a\u9593\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/block-types\/(?P[a-zA-Z0-9_-]+)\/(?P[a-zA-Z0-9_-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "name": { "description": "\u5340\u584a\u540d\u7a31\u3002", "type": "string", "required": false }, "namespace": { "description": "\u5340\u584a\u547d\u540d\u7a7a\u9593\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/settings": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": [] }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "title": { "title": "\u6a19\u984c", "description": "\u7db2\u7ad9\u6a19\u984c\u3002", "type": "string", "required": false }, "description": { "title": "\u7db2\u7ad9\u8aaa\u660e", "description": "\u7db2\u7ad9\u8aaa\u660e\u3002", "type": "string", "required": false }, "timezone": { "title": "", "description": "\u8207\u5c45\u5730\u76f8\u540c\u6642\u5340\u7684\u57ce\u5e02\u3002", "type": "string", "required": false }, "date_format": { "title": "", "description": "\u5168\u90e8\u65e5\u671f\u5b57\u4e32\u7684\u65e5\u671f\u683c\u5f0f\u3002", "type": "string", "required": false }, "time_format": { "title": "", "description": "\u5168\u90e8\u6642\u9593\u5b57\u4e32\u7684\u6642\u9593\u683c\u5f0f\u3002", "type": "string", "required": false }, "start_of_week": { "title": "", "description": "\u6bcf\u9031\u7684\u958b\u59cb\u65e5\u671f\u3002", "type": "integer", "required": false }, "language": { "title": "", "description": "WordPress \u5730\u5340\u8a9e\u8a00\u4ee3\u78bc\u3002", "type": "string", "required": false }, "use_smilies": { "title": "", "description": "\u81ea\u52d5\u5728\u986f\u793a\u6642\u5c07 :-) \u53ca :-P \u9019\u985e\u8868\u60c5\u7b26\u865f\u8f49\u63db\u6210\u5716\u7247\u3002", "type": "boolean", "required": false }, "default_category": { "title": "", "description": "\u9810\u8a2d\u6587\u7ae0\u5206\u985e\u3002", "type": "integer", "required": false }, "default_post_format": { "title": "", "description": "\u9810\u8a2d\u6587\u7ae0\u683c\u5f0f\u3002", "type": "string", "required": false }, "posts_per_page": { "title": "Maximum posts per page", "description": "\u7db2\u7ad9\u6587\u7ae0\u9801\u9762\u6bcf\u9801\u6587\u7ae0\u986f\u793a\u6578\u91cf\u3002", "type": "integer", "required": false }, "show_on_front": { "title": "Show on front", "description": "\u8981\u986f\u793a\u65bc\u975c\u614b\u9996\u9801\u7684\u9805\u76ee", "type": "string", "required": false }, "page_on_front": { "title": "Page on front", "description": "\u8981\u986f\u793a\u70ba\u975c\u614b\u9996\u9801\u9801\u9762\u7684\u9801\u9762 ID", "type": "integer", "required": false }, "page_for_posts": { "title": "", "description": "\u8981\u986f\u793a\u6700\u65b0\u6587\u7ae0\u9801\u9762\u7684\u9801\u9762 ID", "type": "integer", "required": false }, "default_ping_status": { "title": "", "description": "\u958b\u653e\u5176\u4ed6\u7db2\u7ad9\u5c0d\u65b0\u6587\u7ae0\u50b3\u9001\u9023\u7d50\u901a\u77e5 (\u5373\u81ea\u52d5\u5f15\u7528\u901a\u77e5\u53ca\u5f15\u7528\u901a\u77e5)\u3002", "type": "string", "enum": [ "open", "closed" ], "required": false }, "default_comment_status": { "title": "Allow comments on new posts", "description": "\u958b\u653e\u4f7f\u7528\u8005\u5728\u65b0\u6587\u7ae0\u4e2d\u767c\u4f48\u7559\u8a00", "type": "string", "enum": [ "open", "closed" ], "required": false }, "site_logo": { "title": "\u6a19\u8a8c", "description": "\u7db2\u7ad9\u6a19\u8a8c\u3002", "type": "integer", "required": false }, "site_icon": { "title": "Icon", "description": "\u7db2\u7ad9\u5716\u793a\u3002", "type": "integer", "required": false }, "pickup_location_settings": { "title": "", "description": "WooCommerce Local Pickup Method Settings", "type": "object", "properties": { "enabled": { "description": "If enabled, this method will appear on the block based checkout.", "type": "string", "enum": [ "yes", "no" ] }, "title": { "description": "\u63a7\u5236\u4f7f\u7528\u8005\u5728\u7d50\u5e33\u6642\u6240\u770b\u5230\u7684\u6a19\u984c.", "type": "string" }, "tax_status": { "description": "If a cost is defined, this controls if taxes are applied to that cost.", "type": "string", "enum": [ "taxable", "none" ] }, "cost": { "description": "Optional cost to charge for local pickup.", "type": "string" } }, "additionalProperties": false, "required": false }, "pickup_locations": { "title": "", "description": "WooCommerce Local Pickup Locations", "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "object", "properties": { "address_1": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "postcode": { "type": "string" }, "country": { "type": "string" } }, "additionalProperties": false }, "details": { "type": "string" }, "enabled": { "type": "boolean" } }, "additionalProperties": false }, "required": false }, "woocommerce_default_catalog_orderby": { "title": "\u9810\u8a2d\u5546\u54c1\u6392\u5e8f", "description": "\u7522\u54c1\u5728\u76ee\u9304\u4e2d\u7684\u9810\u8a2d\u6392\u5e8f\u65b9\u5f0f\u70ba\u4f55\uff1f", "type": "string", "enum": [ "menu_order", "popularity", "rating", "date", "price", "price-desc" ], "required": false }, "woocommerce_checkout_phone_field": { "title": "Phone number", "description": "Controls the display of the phone field in checkout.", "type": "string", "enum": [ "optional", "required", "hidden" ], "required": false }, "woocommerce_checkout_company_field": { "title": "\u516c\u53f8", "description": "Controls the display of the company field in checkout.", "type": "string", "enum": [ "optional", "required", "hidden" ], "required": false }, "woocommerce_checkout_address_2_field": { "title": "Address Line 2", "description": "Controls the display of the apartment (address_2) field in checkout.", "type": "string", "enum": [ "optional", "required", "hidden" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/settings" } ] } }, "\/wp\/v2\/themes": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "status": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u5df2\u6307\u6d3e\u4e00\u6216\u591a\u500b\u72c0\u614b\u7684\u4f48\u666f\u4e3b\u984c\u3002", "type": "array", "items": { "enum": [ "active", "inactive" ], "type": "string" }, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/themes" } ] } }, "\/wp\/v2\/themes\/(?P[^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "stylesheet": { "description": "\u4f48\u666f\u4e3b\u984c\u6a23\u5f0f\u8868\u662f\u4f48\u666f\u4e3b\u984c\u7684\u552f\u4e00\u8b58\u5225\u65b9\u5f0f\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/plugins": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "required": false }, "status": { "description": "\u5c07\u7d50\u679c\u9650\u5236\u70ba\u5177\u6709\u6307\u5b9a\u72c0\u614b\u7684\u5916\u639b\u3002", "type": "array", "items": { "type": "string", "enum": [ "inactive", "active", "network-active" ] }, "required": false } } }, { "methods": [ "POST" ], "args": { "slug": { "type": "string", "description": "WordPress.org \u5916\u639b\u76ee\u9304\u4ee3\u7a31\u3002", "pattern": "[\\w\\-]+", "required": true }, "status": { "description": "\u5916\u639b\u555f\u7528\u72c0\u614b\u3002", "type": "string", "enum": [ "inactive", "active", "network-active" ], "default": "inactive", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/plugins" } ] } }, "\/wp\/v2\/plugins\/(?P[^.\\\/]+(?:\\\/[^.\\\/]+)?)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "plugin": { "type": "string", "pattern": "[^.\\\/]+(?:\\\/[^.\\\/]+)?", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "plugin": { "type": "string", "pattern": "[^.\\\/]+(?:\\\/[^.\\\/]+)?", "required": false }, "status": { "description": "\u5916\u639b\u555f\u7528\u72c0\u614b\u3002", "type": "string", "enum": [ "inactive", "active", "network-active" ], "required": false } } }, { "methods": [ "DELETE" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "plugin": { "type": "string", "pattern": "[^.\\\/]+(?:\\\/[^.\\\/]+)?", "required": false } } } ] }, "\/wp\/v2\/sidebars": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/sidebars" } ] } }, "\/wp\/v2\/sidebars\/(?P[\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u5df2\u8a3b\u518a\u8cc7\u8a0a\u6b04\u7684 ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "args": { "widgets": { "description": "\u5de2\u72c0\u5c0f\u5de5\u5177\u3002", "type": "array", "items": { "type": [ "object", "string" ] }, "required": false } } } ] }, "\/wp\/v2\/widget-types": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/widget-types" } ] } }, "\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "id": { "description": "\u5c0f\u5de5\u5177\u985e\u578b ID\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)\/encode": { "namespace": "wp\/v2", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "\u5c0f\u5de5\u5177\u985e\u578b ID\u3002", "type": "string", "required": true }, "instance": { "description": "\u76ee\u524d\u7684\u5c0f\u5de5\u5177\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u3002", "type": "object", "required": false }, "form_data": { "description": "\u5c07\u5c0f\u5de5\u5177\u8868\u55ae\u8cc7\u6599\u5e8f\u5217\u5316\u4ee5\u7de8\u78bc\u81f3\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u3002", "type": "string", "required": false } } } ] }, "\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)\/render": { "namespace": "wp\/v2", "methods": [ "POST" ], "endpoints": [ { "methods": [ "POST" ], "args": { "id": { "description": "\u5c0f\u5de5\u5177\u985e\u578b ID\u3002", "type": "string", "required": true }, "instance": { "description": "\u76ee\u524d\u7684\u5c0f\u5de5\u5177\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u3002", "type": "object", "required": false } } } ] }, "\/wp\/v2\/widgets": { "namespace": "wp\/v2", "methods": [ "GET", "POST" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "sidebar": { "description": "\u50b3\u56de\u5c0f\u5de5\u5177\u7684\u8cc7\u8a0a\u6b04\u3002", "type": "string", "required": false } } }, { "methods": [ "POST" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5c0f\u5de5\u5177\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "id_base": { "description": "\u5c0f\u5de5\u5177\u7684\u985e\u578b\u3002\u9019\u6703\u8207 widget-types \u7aef\u9ede\u7684 ID \u9032\u884c\u5c0d\u61c9\u3002", "type": "string", "required": false }, "sidebar": { "default": "wp_inactive_widgets", "description": "\u5c0f\u5de5\u5177\u6240\u5c6c\u7684\u8cc7\u8a0a\u6b04\u3002", "type": "string", "required": true }, "instance": { "description": "\u5c0f\u5de5\u5177\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a (\u53d6\u6c7a\u65bc\u662f\u5426\u652f\u63f4)\u3002", "type": "object", "properties": { "encoded": { "description": "\u7d93\u904e Base64 \u7de8\u78bc\u7684\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u8868\u793a\u65b9\u5f0f\u3002", "type": "string", "context": [ "edit" ] }, "hash": { "description": "\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u7684\u52a0\u5bc6\u7de8\u8b6f\u96dc\u6e4a\u503c\u3002", "type": "string", "context": [ "edit" ] }, "raw": { "description": "\u672a\u7de8\u78bc\u7684\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a (\u53d6\u6c7a\u65bc\u662f\u5426\u652f\u63f4)\u3002", "type": "object", "context": [ "edit" ] } }, "required": false }, "form_data": { "description": "\u5c0f\u5de5\u5177\u7ba1\u7406\u8868\u55ae\u7684 URL \u7de8\u78bc\u578b\u5f0f\u8cc7\u6599\u3002\u9019\u9805\u8cc7\u6599\u7528\u65bc\u66f4\u65b0\u4e0d\u652f\u63f4\u57f7\u884c\u500b\u9ad4\u7684\u5c0f\u5de5\u5177\u3002\u50c5\u80fd\u5beb\u5165\u3002", "type": "string", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/widgets" } ] } }, "\/wp\/v2\/widgets\/(?P[\\w\\-]+)": { "namespace": "wp\/v2", "methods": [ "GET", "POST", "PUT", "PATCH", "DELETE" ], "endpoints": [ { "methods": [ "GET" ], "allow_batch": { "v1": true }, "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } }, { "methods": [ "POST", "PUT", "PATCH" ], "allow_batch": { "v1": true }, "args": { "id": { "description": "\u5c0f\u5de5\u5177\u7684\u552f\u4e00\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "id_base": { "description": "\u5c0f\u5de5\u5177\u7684\u985e\u578b\u3002\u9019\u6703\u8207 widget-types \u7aef\u9ede\u7684 ID \u9032\u884c\u5c0d\u61c9\u3002", "type": "string", "required": false }, "sidebar": { "description": "\u5c0f\u5de5\u5177\u6240\u5c6c\u7684\u8cc7\u8a0a\u6b04\u3002", "type": "string", "required": false }, "instance": { "description": "\u5c0f\u5de5\u5177\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a (\u53d6\u6c7a\u65bc\u662f\u5426\u652f\u63f4)\u3002", "type": "object", "properties": { "encoded": { "description": "\u7d93\u904e Base64 \u7de8\u78bc\u7684\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u8868\u793a\u65b9\u5f0f\u3002", "type": "string", "context": [ "edit" ] }, "hash": { "description": "\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a\u7684\u52a0\u5bc6\u7de8\u8b6f\u96dc\u6e4a\u503c\u3002", "type": "string", "context": [ "edit" ] }, "raw": { "description": "\u672a\u7de8\u78bc\u7684\u57f7\u884c\u500b\u9ad4\u8a2d\u5b9a (\u53d6\u6c7a\u65bc\u662f\u5426\u652f\u63f4)\u3002", "type": "object", "context": [ "edit" ] } }, "required": false }, "form_data": { "description": "\u5c0f\u5de5\u5177\u7ba1\u7406\u8868\u55ae\u7684 URL \u7de8\u78bc\u578b\u5f0f\u8cc7\u6599\u3002\u9019\u9805\u8cc7\u6599\u7528\u65bc\u66f4\u65b0\u4e0d\u652f\u63f4\u57f7\u884c\u500b\u9ad4\u7684\u5c0f\u5de5\u5177\u3002\u50c5\u80fd\u5beb\u5165\u3002", "type": "string", "required": false } } }, { "methods": [ "DELETE" ], "allow_batch": { "v1": true }, "args": { "force": { "description": "\u662f\u5426\u5f37\u5236\u79fb\u9664\u5c0f\u5de5\u5177\u6216\u5c07\u5c0f\u5de5\u5177\u79fb\u81f3\u672a\u4f7f\u7528\u7684\u8cc7\u8a0a\u6b04\u3002", "type": "boolean", "required": false } } } ] }, "\/wp\/v2\/block-directory\/search": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false }, "term": { "description": "\u5c07\u7d50\u679c\u96c6\u9650\u5b9a\u70ba\u7b26\u5408\u641c\u5c0b\u95dc\u9375\u5b57\u7684\u5340\u584a\u3002", "type": "string", "minLength": 1, "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/block-directory\/search" } ] } }, "\/wp\/v2\/pattern-directory\/patterns": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 100, "minimum": 1, "maximum": 100, "required": false }, "search": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u689d\u4ef6\u7684\u5b57\u4e32\u3002", "type": "string", "minLength": 1, "required": false }, "category": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u5206\u985e ID \u7684\u9805\u76ee\u3002", "type": "integer", "minimum": 1, "required": false }, "keyword": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u95dc\u9375\u5b57 ID \u7684\u9805\u76ee\u3002", "type": "integer", "minimum": 1, "required": false }, "slug": { "description": "\u5c07\u7d50\u679c\u9650\u5b9a\u70ba\u7b26\u5408\u5340\u584a\u7248\u9762\u914d\u7f6e\u4ee3\u7a31\u7684\u9805\u76ee\u3002", "type": "array", "required": false }, "offset": { "description": "\u4f9d\u6307\u5b9a\u6578\u91cf\u7684\u9805\u76ee\u4f4d\u79fb\u7d50\u679c\u96c6\u3002", "type": "integer", "required": false }, "order": { "description": "\u6392\u5e8f\u65b9\u5f0f\u5c6c\u6027\u70ba\u5347\u51aa\u6216\u964d\u51aa\u3002", "type": "string", "default": "desc", "enum": [ "asc", "desc" ], "required": false }, "orderby": { "description": "\u4f9d\u6587\u7ae0\u5c6c\u6027\u70ba\u96c6\u5408\u9032\u884c\u6392\u5e8f\u3002", "type": "string", "default": "date", "enum": [ "author", "date", "id", "include", "modified", "parent", "relevance", "slug", "include_slugs", "title", "favorite_count" ], "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/pattern-directory\/patterns" } ] } }, "\/wp\/v2\/block-patterns\/patterns": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/block-patterns\/patterns" } ] } }, "\/wp\/v2\/block-patterns\/categories": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/block-patterns\/categories" } ] } }, "\/wp-site-health\/v1": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wp-site-health\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1" } ] } }, "\/wp-site-health\/v1\/tests\/background-updates": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/background-updates" } ] } }, "\/wp-site-health\/v1\/tests\/loopback-requests": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/loopback-requests" } ] } }, "\/wp-site-health\/v1\/tests\/https-status": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/https-status" } ] } }, "\/wp-site-health\/v1\/tests\/dotorg-communication": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/dotorg-communication" } ] } }, "\/wp-site-health\/v1\/tests\/authorization-header": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/authorization-header" } ] } }, "\/wp-site-health\/v1\/directory-sizes": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/directory-sizes" } ] } }, "\/wp-site-health\/v1\/tests\/page-cache": { "namespace": "wp-site-health\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-site-health\/v1\/tests\/page-cache" } ] } }, "\/wp-block-editor\/v1": { "namespace": "wp-block-editor\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "namespace": { "default": "wp-block-editor\/v1", "required": false }, "context": { "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-block-editor\/v1" } ] } }, "\/wp-block-editor\/v1\/url-details": { "namespace": "wp-block-editor\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "url": { "description": "\u9700\u8981\u8655\u7406\u7684\u7db2\u5740\u3002", "type": "string", "format": "uri", "required": true } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-block-editor\/v1\/url-details" } ] } }, "\/wp\/v2\/menu-locations": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/menu-locations" } ] } }, "\/wp\/v2\/menu-locations\/(?P[\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "location": { "description": "\u7531\u82f1\u6578\u5b57\u5143\u7d44\u6210\u7684\u9078\u55ae\u4f4d\u7f6e\u8b58\u5225\u78bc\u3002", "type": "string", "required": false }, "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] }, "\/wp-block-editor\/v1\/export": { "namespace": "wp-block-editor\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-block-editor\/v1\/export" } ] } }, "\/wp-block-editor\/v1\/navigation-fallback": { "namespace": "wp-block-editor\/v1", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": [] } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp-block-editor\/v1\/navigation-fallback" } ] } }, "\/wp\/v2\/font-collections": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false }, "page": { "description": "\u96c6\u5408\u7684\u76ee\u524d\u9801\u6578\u3002", "type": "integer", "default": 1, "minimum": 1, "required": false }, "per_page": { "description": "\u7d50\u679c\u96c6\u4e2d\u6240\u50b3\u56de\u7684\u9805\u76ee\u6578\u76ee\u4e0a\u9650\u503c\u3002", "type": "integer", "default": 10, "minimum": 1, "maximum": 100, "required": false } } } ], "_links": { "self": [ { "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/wp\/v2\/font-collections" } ] } }, "\/wp\/v2\/font-collections\/(?P[\\\/\\w-]+)": { "namespace": "wp\/v2", "methods": [ "GET" ], "endpoints": [ { "methods": [ "GET" ], "args": { "context": { "description": "\u5fc5\u9808\u5728\u8981\u6c42\u63d0\u51fa\u7684\u7bc4\u570d\u5167\u3001\u5fc5\u9808\u78ba\u5b9a\u56de\u61c9\u6642\u6b04\u4f4d\u986f\u793a\u7684\u65b9\u5f0f\u3002", "type": "string", "enum": [ "view", "embed", "edit" ], "default": "view", "required": false } } } ] } }, "site_logo": 0, "site_icon": 4239, "site_icon_url": false, "_links": { "help": [ { "href": "https:\/\/developer.wordpress.org\/rest-api\/" } ], "wp:featuredmedia": [ { "embeddable": true, "type": "site_icon", "href": "https:\/\/doublehappinessasiafood.com\/hk\/zh\/wp-json\/" } ], "curies": [ { "name": "wp", "href": "https:\/\/api.w.org\/{rel}", "templated": true } ] } }