{"success":true,"message":"ok","data":{"contract_version":"ops_v1","actions":["create_auth_session","auth_status","list_bindings","capabilities","device_heartbeat","executor_heartbeat","submit_ops_events","open_api_proxy"],"notes":["Order, product, aftersale, and logistics\/fulfillment read domains are now the official V1 business domains.","Write capabilities are exposed separately as guarded domains: formally declared, server-controlled, and disabled by default unless an explicit release gate is opened.","Use open_api_proxy for all TikTok Shop Open API operations after authorization.","Use submit_ops_events for business risk and operational todo signals; keep heartbeat last_error for system faults only.","The server signs requests and attaches x-tts-access-token automatically.","Provide shop_id, path, method, query, and body in the proxy request.","The server auto-fills shop_cipher for shop-scoped APIs when it is available.","The proxy keeps experimental write operations behind explicit server-side testing gates until they are formally released."],"identity_model":{"mode":"logical_account_single_active","legacy_global_api_key_supported":false,"executor_model":"logical_account_single_active_executor","notes":["Bound shops belong to logical OpenClaw accounts instead of physical devices.","Only the active device of a logical account may perform shop-bound business actions.","All business actions require device-level API keys.","OpenClaw, Marvis, and future automation clients are treated as executor instances under the same logical account and active-executor policy."]},"executor_protocol":{"version":"executor_v1","compatible_heartbeat_action":"device_heartbeat","heartbeat_action_alias":"executor_heartbeat","supported_executor_types":["openclaw","marvis","manual","other"],"default_executor_type":"openclaw","identity_model":"logical_account_single_active_executor","business_request_requires_active_executor":true,"allowed_actions_for_enabled_non_active_executors":["capabilities","device_heartbeat","executor_heartbeat"],"optional_heartbeat_fields":["executor_type","executor_vendor","executor_version","executor_features"]},"ops_events":{"action":"submit_ops_events","status":"enabled","scope":"business_risk_and_operational_todo","requires_active_executor":true,"submit_shape":{"workflow":"tiktok本土店自动化","events":[{"shop_id":"TikTok Shop shop_id owned by the authenticated logical account","event_key":"stable dedupe key, optional; server derives one when omitted","event_type":"order.abnormal_status_orders","severity":"info|warning|critical","title":"short operator-facing title","summary":"operator-facing summary","payload":[]}]},"notes":["Business risks should be submitted here instead of keeping them in heartbeat last_error.","The server upserts by account, shop, event_type, and event_key.","OpenClaw may continue using heartbeat stats until this action is adopted."]},"device_runtime":{"heartbeat_action":"device_heartbeat","recommended_interval_seconds":60,"online_thresholds":{"online":120,"stale":600},"supports_device_code_cutover":true,"allowed_actions_for_enabled_non_active_devices":["capabilities","device_heartbeat","executor_heartbeat"],"required_fields":["device_code","device_name","host_name","openclaw_version","registered_skills","public_workflows","current_workflow","workflow_status","last_error","local_time","stats"]},"experimental_contracts":[{"id":"product_inventory_read_v0","status":"read_verified_testing_only","notes":["This contract is retained as a compatibility\/testing alias while the formal product domain moves into official V1.","search_products, get_product, and search_inventory have all been verified end-to-end through the real server proxy.","Write operations remain gated until they are validated end-to-end and explicitly released by the server."]},{"id":"aftersale_read_v0","status":"read_verified_testing_only","notes":["This contract is retained as a compatibility\/testing alias while the formal aftersale domain moves into official V1.","search_cancellations, search_returns, get_return_records, and get_aftersale_eligibility have now all been verified at the path level through the real server proxy.","Get Return Records is verified via business-level existence errors because the current shop has no live return records to read end-to-end."]},{"id":"inventory_write_v0","status":"write_verified_testing_only","notes":["inventory_write has passed internal live validation using a no-op quantity write against the dedicated test SKU.","The proxy may only allow inventory_write when the server-side testing gate is enabled and the request matches the configured allowlists.","Do not register or execute this as a formal public capability yet."]},{"id":"price_write_v0","status":"write_verified_testing_only","notes":["price_write has passed internal live validation using a no-op amount write against the dedicated test SKU.","The minimal validated write shape is body.skus[].price.currency plus body.skus[].price.amount as a string.","The proxy may only allow price_write when the server-side testing gate is enabled and the request matches the configured allowlists."]}],"openclaw_registration":{"public_entrypoint":{"name":"tiktok本土店自动化","type":"workflow","description":"Official daily-use entrypoint for TikTok local-shop automation."},"internal_skills":[{"name":"tiktok-shop-auth","role":"authorization, auth status, and capability discovery"},{"name":"tiktok_shop_binding","role":"bound shop lookup and target shop selection"},{"name":"tiktok_order_ops","role":"order list, pagination, detail lookup, and raw status normalization"},{"name":"tiktok_order_inspector","role":"order inspection and daily report generation"}],"policy":{"primary_entry_mode":"workflow_only","must_read_capabilities_first":true,"allowed_business_domains_for_v1":["order","product","aftersale","logistics"],"default_public_exposure":["tiktok本土店自动化"],"keep_internal_skills_available_for_debug":true}},"domains":{"order":{"status":"verified","scope":"official_v1","operations":[{"id":"list_orders","path":"\/order\/202309\/orders\/search","method":"POST","query":{"page_size":20},"body":[],"notes":["Use next_page_token for pagination until it becomes empty.","The server auto-fills shop_cipher."]},{"id":"get_order_detail","path":"\/order\/202309\/orders","method":"GET","query":{"ids":"583042573923157835"},"body":null,"notes":["Pass a single order ID or comma-separated order IDs in ids.","The server auto-fills shop_cipher."]}],"report_contract":{"timezone":"Asia\/Manila","time_basis":"create_time","required_outputs":["total_order_count","raw_status_distribution","business_status_distribution","today_vs_yesterday_order_count","today_vs_yesterday_completed_count","today_vs_yesterday_cancelled_count","sample_order_ids_per_category"]}},"product":{"status":"verified","scope":"official_v1","operations":[{"id":"search_products","path":"\/product\/202309\/products\/search","method":"POST","query":{"page_size":20},"body":[],"notes":["Use next_page_token for pagination until it becomes empty.","The server auto-fills shop_cipher."]},{"id":"get_product","path":"\/product\/202309\/products\/{product_id}","method":"GET","query":[],"body":null,"notes":["Replace {product_id} with the actual product ID.","The server auto-fills shop_cipher."]},{"id":"search_inventory","path":"\/product\/202309\/inventory\/search","method":"POST","query":[],"body":{"sku_ids":["1734582717616129620"]},"notes":["Supports sku_ids or product_ids in the request body.","The server auto-fills shop_cipher."]}],"normalized_fields":["product_id","title","status","skus","inventory","price","update_time"]},"aftersale":{"status":"verified","scope":"official_v1","operations":[{"id":"search_cancellations","path":"\/return_refund\/202309\/cancellations\/search","method":"POST","query":[],"body":[],"notes":["Verified end-to-end through the real server proxy.","Response data contains cancellations, next_page_token, and total_count."]},{"id":"search_returns","path":"\/return_refund\/202309\/returns\/search","method":"POST","query":[],"body":[],"notes":["Verified end-to-end through the real server proxy.","Response data contains next_page_token and total_count."]},{"id":"get_return_records","path":"\/return_refund\/202309\/returns\/{return_id}\/records","method":"GET","query":[],"body":null,"notes":["Replace {return_id} with the actual return ID.","Path verification completed via business-level \"return id not exist\" responses on the live proxy because the current shop has no real returns yet."]},{"id":"get_aftersale_eligibility","path":"\/return_refund\/202309\/orders\/{order_id}\/aftersale_eligibility","method":"GET","query":[],"body":null,"notes":["Replace {order_id} with the actual order ID.","Live verification succeeded and returned sku_eligibility details through the real server proxy."]}],"normalized_fields":["cancel_id","cancel_status","return_id","return_status","sku_eligibility","next_page_token","total_count"]},"logistics":{"status":"verified","scope":"official_v1","operations":[{"id":"get_warehouse_list","path":"\/logistics\/202309\/warehouses","method":"GET","query":[],"body":null,"notes":["Verified end-to-end through the real server proxy.","Returns the seller warehouse list for the authorized shop."]},{"id":"get_warehouse_delivery_options","path":"\/logistics\/202309\/warehouses\/{warehouse_id}\/delivery_options","method":"GET","query":[],"body":null,"notes":["Replace {warehouse_id} with the actual warehouse ID.","Verified end-to-end through the real server proxy."]},{"id":"search_packages","path":"\/fulfillment\/202309\/packages\/search","method":"POST","query":{"page_size":20},"body":[],"notes":["Use next_page_token for pagination until it becomes empty.","Verified end-to-end through the real server proxy."]},{"id":"get_package_detail","path":"\/fulfillment\/202309\/packages\/{package_id}","method":"GET","query":[],"body":null,"notes":["Replace {package_id} with the actual package ID.","Verified end-to-end through the real server proxy."]},{"id":"get_tracking","path":"\/fulfillment\/202309\/orders\/{order_id}\/tracking","method":"GET","query":[],"body":null,"notes":["Replace {order_id} with the actual order ID.","Verified end-to-end through the real server proxy."]}],"normalized_fields":["warehouse_id","delivery_options","package_id","package_status","tracking","tracking_number"]}},"guarded_domains":{"inventory_write":{"status":"released_guarded_capable","scope":"formal_guarded","release_model":{"stages":["candidate_blocked","candidate_ready","candidate_live_test","released_guarded"],"default_stage":"candidate_ready","default_gate_state":"closed"},"operations":[{"id":"update_inventory","path":"\/product\/202309\/products\/{product_id}\/inventory\/update","method":"POST","query":[],"body":{"skus":[{"id":"1734617770616325716","inventory":[{"quantity":999}]}]},"notes":["Formally declared but guarded by server-side allowlists, release stages, and audit logging.","Not intended for default public workflow execution."]}]},"price_write":{"status":"released_guarded_capable","scope":"formal_guarded","release_model":{"stages":["candidate_blocked","candidate_ready","candidate_live_test","released_guarded"],"default_stage":"testing_gate","default_gate_state":"closed"},"operations":[{"id":"update_price","path":"\/product\/202309\/products\/{product_id}\/prices\/update","method":"POST","query":[],"body":{"skus":[{"id":"1734617770616325716","price":{"currency":"PHP","amount":"500"}}]},"notes":["Formally declared but guarded by server-side allowlists, release stages, and audit logging.","Not intended for default public workflow execution."]}]}},"experimental_domains":{"product_read":{"status":"verified","contract_id":"product_inventory_read_v0","verification":{"internal_client_verified":true,"proxy_verified":true,"formal_registration_allowed":true,"official_domain":"product"},"operations":[{"id":"search_products","path":"\/product\/202309\/products\/search","method":"POST","query":{"page_size":20},"body":[],"notes":["Use next_page_token for pagination until it becomes empty.","The server auto-fills shop_cipher."]},{"id":"get_product","path":"\/product\/202309\/products\/{product_id}","method":"GET","query":[],"body":null,"notes":["Replace {product_id} with the actual product ID.","The server auto-fills shop_cipher."]}],"normalized_fields":["id","title","status","skus","inventory","price","update_time"],"sync_policy":{"register_formally":false,"use_for_testing_only":false,"compatibility_alias_only":true,"proxy_mode":"allow"}},"inventory_read":{"status":"verified","contract_id":"product_inventory_read_v0","verification":{"internal_client_verified":true,"proxy_verified":true,"formal_registration_allowed":true,"official_domain":"product"},"operations":[{"id":"search_inventory","path":"\/product\/202309\/inventory\/search","method":"POST","query":[],"body":{"sku_ids":["1734582717616129620"]},"notes":["Supports sku_ids or product_ids in the request body.","The server auto-fills shop_cipher."]}],"normalized_fields":["product_id","sku_id","seller_sku","total_available_quantity","total_committed_quantity","warehouse_inventory"],"sync_policy":{"register_formally":false,"use_for_testing_only":false,"compatibility_alias_only":true,"proxy_mode":"allow"}},"aftersale_read":{"status":"verified","contract_id":"aftersale_read_v0","verification":{"internal_client_verified":true,"proxy_verified":true,"formal_registration_allowed":true,"official_domain":"aftersale"},"operations":[{"id":"search_cancellations","path":"\/return_refund\/202309\/cancellations\/search","method":"POST","query":[],"body":[],"notes":["Verified end-to-end through the real server proxy.","Response data contains cancellations, next_page_token, and total_count."]},{"id":"search_returns","path":"\/return_refund\/202309\/returns\/search","method":"POST","query":[],"body":[],"notes":["Verified end-to-end through the real server proxy.","Response data contains next_page_token and total_count."]},{"id":"get_return_records","path":"\/return_refund\/202309\/returns\/{return_id}\/records","method":"GET","query":[],"body":null,"notes":["Replace {return_id} with the actual return ID.","Path verification completed via live business-level existence checks."]},{"id":"get_aftersale_eligibility","path":"\/return_refund\/202309\/orders\/{order_id}\/aftersale_eligibility","method":"GET","query":[],"body":null,"notes":["Replace {order_id} with the actual order ID.","Live verification succeeded and returned sku_eligibility details through the real server proxy."]}],"sync_policy":{"register_formally":false,"use_for_testing_only":false,"compatibility_alias_only":true,"proxy_mode":"allow"}},"inventory_write":{"status":"write_verified_testing_only","contract_id":"inventory_write_v0","verification":{"internal_client_verified":true,"proxy_testing_gate_available":true,"formal_registration_allowed":false},"operations":[{"id":"update_inventory","path":"\/product\/202309\/products\/{product_id}\/inventory\/update","method":"POST","query":[],"body":{"skus":[{"id":"1734617770616325716","inventory":[{"quantity":999}]}]},"notes":["Real path and method were validated during service-side probing.","A minimal body using skus[].id and inventory[].quantity was validated end-to-end with a no-op quantity write against the dedicated test SKU.","The proxy may only allow this operation when the server-side testing gate is enabled and the request stays within the configured product and SKU allowlists.","Do not register or execute this as a formal capability yet."]}],"sync_policy":{"register_formally":false,"execute_against_live_data":false,"proxy_mode":"testing_gate"}},"price_write":{"status":"write_verified_testing_only","contract_id":"price_write_v0","verification":{"internal_client_verified":true,"proxy_testing_gate_available":true,"formal_registration_allowed":false},"operations":[{"id":"update_price","path":"\/product\/202309\/products\/{product_id}\/prices\/update","method":"POST","query":[],"body":{"skus":[{"id":"1734617770616325716","price":{"currency":"PHP","amount":"500"}}]},"notes":["Real path and method were validated during service-side probing.","A minimal body using skus[].id plus price.currency and price.amount(string) was validated end-to-end with a no-op amount write against the dedicated test SKU.","The read model exposes sale_price and tax_exclusive_price, but the write model accepts currency plus amount for the validated minimal path.","The proxy may only allow this operation when the server-side testing gate is enabled and the request stays within the configured product and SKU allowlists."]}],"sync_policy":{"register_formally":false,"execute_against_live_data":false,"proxy_mode":"testing_gate"}}}}}