Kanorio

API 參考

Me

Customer API: GET /me

此頁只有英文版。API 參考、Webhook 事件及變更紀錄維持英文,與程式碼中的欄位名稱、錯誤碼一致。
Base URL https://{site}/api/v1/customerErrorsPagination

Response 200

  • sectionsobject[]required

    Customer account sections for this customer, in menu order: which ones this site shows and whether the customer has data there. Use it to build the account navigation; `landing` is the first visible section.

  • sections[].id"orders" | "content" | "account"required
  • sections[].visiblebooleanrequired
  • sections[].hasDatabooleanrequired
  • landingstringrequired

    Path of the first visible section on the hosted customer account (for example `/account/orders`).

  • contactobjectrequired
  • contact.idstringrequired
  • contact.emailstringrequired
  • contact.namestring | null
  • sessionsobject[]required
curl -X GET "https://{site}/api/v1/customer/me" \
  -H "Authorization: Bearer $KANORIO_CUSTOMER_TOKEN"