Errors
Admin API ตอบอะไรเมื่อให้บริการคำขอไม่ได้ และควรทำอย่างไรในแต่ละกรณี
Admin API แจ้งปัญหาได้สามที่ คือ HTTP status ก่อน GraphQL ทำงาน รายการ errors ในคำตอบ GraphQL หรือ userErrors ใน payload ของ mutation ตัวอย่างทุกตัวในหน้านี้เป็นคำตอบจริงจาก API
ก่อน GraphQL ทำงาน
token และร้านถูกตรวจก่อน คำตอบเหล่านี้เป็น HTTP ธรรมดา
| Status | Body | เมื่อ |
|---|---|---|
401 | {"error":{"code":"invalid_access_token","message":"Send a valid access token in the Authorization header. The token sent is missing, not valid, or belongs to another store.","status":401}} | ไม่มี token, token ไม่ถูกต้อง หรือเป็น token ของร้านอื่น รวมถึง store id ที่ไม่มีอยู่ |
404 | {"error":{"code":"resource_not_found","message":"Not found.","status":404}} | ที่อยู่ที่ API ไม่มี เช่น store id ที่ไม่ใช่ UUID หรือเวอร์ชันที่ไม่ใช่ YYYY-MM หรือ unstable |
ในคำตอบ GraphQL
เมื่อ GraphQL ปฏิเสธคำขอ คำตอบจะมีรายการ errors แต่ละรายการมี message และ extensions ซึ่งมี
| ฟิลด์ | ความหมาย |
|---|---|
code | สิ่งที่ผิดพลาด เป็นตัวพิมพ์ใหญ่ เช่น ACCESS_DENIED |
type | กลุ่มของ error เช่น permission_error หรือ api_error |
request_id | id ของคำขอนี้ ให้แนบเมื่อขอความช่วยเหลือ |
doc_url | ลิงก์มาที่หน้านี้สำหรับ code นั้น |
คำขอที่ไม่ใช่ GraphQL ที่ถูกต้องจะได้ 400
{
"errors": [
{
"message": "Syntax Error: Expected Name, found <EOF>.",
"locations": [{ "line": 1, "column": 16 }],
"extensions": {
"type": "api_error",
"code": "GRAPHQL_PARSE_FAILED",
"request_id": "req_1w0vuypb",
"doc_url": "https://docs.tanqory.com/errors/GRAPHQL_PARSE_FAILED"
}
}
]
}operation ที่ scope ของ token ไม่อนุญาตจะได้ 200 และไม่มี data สำหรับส่วนนั้น
{
"errors": [
{
"message": "This request cannot use `orders`: it needs the `read_orders` access scope.",
"extensions": {
"type": "permission_error",
"code": "ACCESS_DENIED",
"request_id": "req_npe0tdcy",
"doc_url": "https://docs.tanqory.com/errors/ACCESS_DENIED"
}
}
]
}Codes
invalid_access_token
HTTP 401 ก่อน GraphQL ทำงาน token ใน Authorization (Storefront API ใช้ X-Tanqory-Storefront-Access-Token) ไม่ได้ส่งมา ไม่ใช่ token ที่ถูกต้อง หรือเป็นของร้านอื่น ทั้งสามกรณีได้คำตอบเดียวกัน token จึงใช้ค้นหาไม่ได้ว่ามีร้านใดอยู่บ้าง ขอ token ใหม่ตามการติดตั้งและ access token
GRAPHQL_PARSE_FAILED
HTTP 400 query ไม่ใช่ GraphQL ที่ถูกต้อง ข้อความและ locations ชี้ตำแหน่งที่ผิด
GRAPHQL_VALIDATION_FAILED
HTTP 400 query ขอฟิลด์หรือ argument ที่ schema ไม่มี เช่น Cannot query field "nope" on type "Shop". Did you mean "name"? ให้ตรวจ reference ของเวอร์ชันที่เรียก
ACCESS_DENIED
HTTP 200 scope ของ token หรือบทบาทของผู้ใช้เบื้องหลัง token ไม่อนุญาต operation นี้ ข้อความจะบอก scope ที่ขาด ให้เพิ่มใน Configuration ของแอปแล้วให้ร้านค้าอนุมัติ
รหัสทั้งหมดที่ API ส่ง
ฟิลด์ type ของคำตอบที่เป็น error คือ https://docs.tanqory.com/errors/<code> ซึ่งจะเปิดแถวของรหัสนั้นในตารางนี้ รายการนี้สร้างจากซอร์สของ API (tools/errors/codes.mjs) รหัสใหม่จึงปรากฏที่นี่พร้อมกับ release ที่ส่งรหัสนั้น ช่องสถานะที่ว่างหมายความว่าขึ้นกับคำขอ
| รหัส | สถานะ HTTP | ความหมายโดยย่อ |
|---|---|---|
above_cap | 422 | Above cap |
access_denied | 400 | Access denied |
access_not_open | 409 | Access not open |
access_request_closed | 409 | Access request closed |
access_request_open | 409 | Access request open |
account_gone | 409 | Account gone |
account_not_found | Account not found | |
account_owns_stores | 409 | Account owns stores |
account_required | 409 | Account required |
actor_not_permitted | 403 | Actor not permitted |
addon_currency_unavailable | 409 | Addon currency unavailable |
addon_in_use | 409 | Addon in use |
addon_not_allowed_on_plan | 409 | Addon not allowed on plan |
addon_not_sellable | 409 | Addon not sellable |
addons_closing | 409 | Addons closing |
addons_enterprise | 409 | Addons enterprise |
addons_no_plan | 409 | Addons no plan |
addons_past_due | 409 | Addons past due |
addons_paused | 409 | Addons paused |
addons_pending_change | 409 | Addons pending change |
addons_trial | 409 | Addons trial |
addons_unpaid | 409 | Addons unpaid |
adopt_needs_rows | 409 | Adopt needs rows |
already_asked | 409 | Already asked |
already_delisted | 409 | Already delisted |
already_erased | 409 | Already erased |
already_granted | 422 | Already granted |
already_live | 409 | Already live |
already_refunded | Already refunded | |
already_registered | 422 | Already registered |
amount_invalid | Amount invalid | |
amount_over_remaining | 409 | Amount over remaining |
api_client_limit | 409 | Api client limit |
app_credentials_unavailable | 503 | App credentials unavailable |
app_delisted | 409 | App delisted |
app_has_charges | 409 | App has charges |
app_installed | 409 | App installed |
app_limit_reached | 409 | App limit reached |
app_listed | 409 | App listed |
app_not_published | 409 | App not published |
app_published | 409 | App published |
append_only_document | 409 | Append only document |
applies_at_run_time | 409 | Applies at run time |
applies_in_console | 409 | Applies in console |
approval_closed | 409 | Approval closed |
approval_open | 409 | Approval open |
artifact_file_not_found | 404 | Artifact file not found |
artifact_not_content_free | 422 | Artifact not content free |
artifact_not_found | 404 | Artifact not found |
artifact_not_ready | 422 | Artifact not ready |
artifact_not_revocable | 422 | Artifact not revocable |
artifact_yanked | 422 | Artifact yanked |
assignee_not_allowed | 409 | Assignee not allowed |
auth_code_expired | 400 | Auth code expired |
auth_code_invalid | 400 | Auth code invalid |
auth_code_replaced | 400 | Auth code replaced |
auth_email_not_verified | 400 | Auth email not verified |
auth_invalid_credentials | 401 | Auth invalid credentials |
auth_link_invalid | 400 | Auth link invalid |
auth_mfa_invalid_code | 400, 401 | Auth mfa invalid code |
auth_provider_new_connections_closed | 403 | Auth provider new connections closed |
auth_session_expired | 400, 401 | Auth session expired |
auth_token_invalid | 401 | Auth token invalid |
authorization_pending | 400 | Authorization pending |
avatar_size | 400 | Avatar size |
avatar_type | 400 | Avatar type |
bad_gateway | 502 | Bad gateway |
bad_request | 400 | Bad request |
below_margin | 422 | Below margin |
billing_country_mismatch | 422 | Billing country mismatch |
billing_portal_unavailable | 503 | Billing portal unavailable |
billing_provider_error | 502 | Billing provider error |
billing_provider_unavailable | 503 | Billing provider unavailable |
brand_term_not_allowed | 400 | Brand term not allowed |
budget_reached | 422 | Budget reached |
build_artifact_mismatch | 422 | Build artifact mismatch |
build_not_found | 404 | Build not found |
build_not_installable | 404 | Build not installable |
build_not_private | 422 | Build not private |
build_not_signed | 422 | Build not signed |
build_owner_mismatch | 422 | Build owner mismatch |
build_revoked | 422 | Build revoked |
build_service_token_unavailable | Build service token unavailable | |
build_service_unavailable | 503 | Build service unavailable |
build_statement_unverified | 422 | Build statement unverified |
cap_reached | 422 | Cap reached |
capability_consent_required | 409 | Capability consent required |
card_country_mismatch | 422 | Card country mismatch |
card_invalid | 422 | Card invalid |
catalog_change_invalid | 409 | Catalog change invalid |
catalog_incomplete | 409 | Catalog incomplete |
catalog_key_missing | Catalog key missing | |
catalog_unavailable | 503 | Catalog unavailable |
cell_unreachable | 502, 503 | Cell unreachable |
central_cell_mismatch | 422 | Central cell mismatch |
cf_bad_answer | Cf bad answer | |
cf_unreachable | Cf unreachable | |
change_already_in_files | 409 | Change already in files |
change_already_in_force | 409 | Change already in force |
change_failed | 409 | Change failed |
change_in_progress | 409 | Change in progress |
change_not_merged | 409 | Change not merged |
change_not_pending | 409 | Change not pending |
change_of_registrant_unconfirmed | 409 | Change of registrant unconfirmed |
change_pending_payment | 409 | Change pending payment |
channel_expired | 410 | Channel expired |
channel_not_found | 404 | Channel not found |
charge_not_found | Charge not found | |
charge_not_paid | 409 | Charge not paid |
charge_not_settled | Charge not settled | |
check_recorded | 409 | Check recorded |
checks_not_complete | 409 | Checks not complete |
checks_not_passed | 409 | Checks not passed |
config_moved | 409 | Config moved |
config_required | 422 | Config required |
config_rows_off | 409 | Config rows off |
conflict | 409 | Conflict |
content_migration_failed | 422 | Content migration failed |
content_migration_unavailable | 422 | Content migration unavailable |
content_not_found | 404 | Content not found |
content_revision_conflict | 409 | Content revision conflict |
content_store_unavailable | 503 | Content store unavailable |
content_too_large | 413 | Content too large |
content_version_mismatch | 422 | Content version mismatch |
control_plane_unavailable | 503 | Control plane unavailable |
country | 422 | Country |
country_not_available | 409 | Country not available |
custom_distribution | 409 | Custom distribution |
custom_store_limit | 409 | Custom store limit |
custom_theme_build_unavailable | 503 | Custom theme build unavailable |
customerio_not_configured | 409 | Customerio not configured |
customerio_version_not_approvable | 409 | Customerio version not approvable |
cycle | 422 | Cycle |
data_residency_unavailable | 409 | Data residency unavailable |
demo_store_not_found | 400 | Demo store not found |
dependency_unavailable | 503 | Dependency unavailable |
development_install_unavailable | 503 | Development install unavailable |
development_store_limit_reached | 409 | Development store limit reached |
development_store_not_found | 400 | Development store not found |
directory_changed | 409 | Directory changed |
distribution_final | 409 | Distribution final |
dns_elsewhere | 409 | Dns elsewhere |
document_changed | 409 | Document changed |
domain_sales_unavailable | 503 | Domain sales unavailable |
editor_state_not_enabled | 404 | Editor state not enabled |
editor_state_unauthenticated | 401 | Editor state unauthenticated |
effective_date_too_soon | 409 | Effective date too soon |
email_verification_required | 403 | Email verification required |
emoji_not_allowed | 400 | Emoji not allowed |
enrollment_closed | 403 | Enrollment closed |
environment | 422 | Environment |
error | Error | |
exclusive_conflict | 422 | Exclusive conflict |
expired_token | 400 | Expired token |
export_not_approved | 409 | Export not approved |
export_ready | 409 | Export ready |
export_window_closed | 409 | Export window closed |
feature_unavailable_in_country | 403 | Feature unavailable in country |
field_invalid | Field invalid | |
field_required | Field required | |
file_too_large | 400 | File too large |
files_changed | 409 | Files changed |
flag_moved | 409 | Flag moved |
flags_need_rows | 409 | Flags need rows |
forbidden | 403 | Forbidden |
gateway_timeout | 504 | Gateway timeout |
generation_conflict | 409 | Generation conflict |
generation_not_found | 404 | Generation not found |
gone | 410 | Gone |
group_missing | Group missing | |
group_would_be_empty | Group would be empty | |
handle_taken | 409 | Handle taken |
http | Http | |
idempotency_key_required | 400 | Idempotency key required |
idempotency_key_reused | 409, 422 | Idempotency key reused |
identity_not_verified | 409 | Identity not verified |
image_changed | 409 | Image changed |
installation_in_use | 409 | Installation in use |
installation_not_found | 404 | Installation not found |
insufficient_scope | 403 | Insufficient scope |
internal_error | 500 | Internal error |
invalid | Invalid | |
invalid_client | 401 | Invalid client |
invalid_config | 422 | Invalid config |
invalid_content | 422 | Invalid content |
invalid_credits | Invalid credits | |
invalid_domain | Invalid domain | |
invalid_event | 400 | Invalid event |
invalid_grant | 400, 401 | Invalid grant |
invalid_host | Invalid host | |
invalid_id | Invalid id | |
invalid_parameter | 400, 422 | Invalid parameter |
invalid_request | 400, 401 | Invalid request |
invalid_response | Invalid response | |
invalid_scope | 400, 403 | Invalid scope |
invalid_signature | 401 | Invalid signature |
invalid_target | 400, 404 | Invalid target |
invalid_token | 401 | Invalid token |
invalid_transition | 409 | Invalid transition |
invitation_other_account | 403 | Invitation other account |
invoice_line_not_found | Invoice line not found | |
invoice_not_found | Invoice not found | |
invoice_not_paid | 409 | Invoice not paid |
kv_partial | Kv partial | |
kv_unreachable | Kv unreachable | |
launch_intro_ineligible | 409 | Launch intro ineligible |
launch_intro_price_unresolved | 500 | Launch intro price unresolved |
launch_intro_unavailable | 409 | Launch intro unavailable |
length_required | 411 | Length required |
listing_approved | 409 | Listing approved |
listing_in_review | 409 | Listing in review |
listing_incomplete | 400 | Listing incomplete |
listing_not_approved | 409 | Listing not approved |
listing_not_draft | 409 | Listing not draft |
listing_not_in_review | 409 | Listing not in review |
live_key_outside_production | Live key outside production | |
locked | 423 | Locked |
lot_empty | Lot empty | |
lot_expired | Lot expired | |
lot_not_found | Lot not found | |
lot_not_refundable | Lot not refundable | |
low_balance | 422 | Low balance |
manifest_invalid | 400 | Manifest invalid |
manifest_mismatch | 400 | Manifest mismatch |
manifest_required | 400 | Manifest required |
manifest_too_large | 400 | Manifest too large |
method_not_allowed | 405 | Method not allowed |
mfa_enrollment_required | 403 | Mfa enrollment required |
mfa_expired | 400, 401 | Mfa expired |
move_open | 409 | Move open |
move_state | Move state | |
move_switched | Move switched | |
never_published | 404, 409 | Never published |
new_business | 422 | New business |
no_account | 409 | No account |
no_cell_available | 503 | No cell available |
no_change | 409 | No change |
no_connected_account | No connected account | |
no_contract | 409 | No contract |
no_eligible_target | 422 | No eligible target |
no_invoice | No invoice | |
no_passkey | 409 | No passkey |
no_patch | 409 | No patch |
no_payment_method | No payment method | |
no_previous_secret | 409 | No previous secret |
no_sample_data | 409 | No sample data |
no_signed_build | 422 | No signed build |
no_stripe_account | 503 | No stripe account |
no_transfer_pending | 409 | No transfer pending |
no_versions | 409 | No versions |
not_a_theme | 409 | Not a theme |
not_acceptable | 406 | Not acceptable |
not_allowed_here | Not allowed here | |
not_an_update | 409 | Not an update |
not_approved | 409 | Not approved |
not_connected | 422 | Not connected |
not_custom_distribution | 409 | Not custom distribution |
not_delisted | 409 | Not delisted |
not_editable | 409 | Not editable |
not_found | 404 | Not found |
not_implemented | 501 | Not implemented |
not_installed | 409 | Not installed |
not_listed | 409 | Not listed |
not_manual | 409 | Not manual |
not_on_trial | 409 | Not on trial |
not_priced | 422 | Not priced |
not_quarantined | 409 | Not quarantined |
not_renewable | 422 | Not renewable |
not_run | Not run | |
not_sold | 422 | Not sold |
not_transferable | 409 | Not transferable |
not_your_request | 403 | Not your request |
nothing_differs | 409 | Nothing differs |
nothing_missing | 409 | Nothing missing |
nothing_refundable | Nothing refundable | |
nothing_to_change | 400 | Nothing to change |
notice_too_short | 409 | Notice too short |
notification_default_not_approvable | 409 | Notification default not approvable |
notification_defaults_dormant | 409 | Notification defaults dormant |
nova_build_unavailable | 503 | Nova build unavailable |
oauth_device_attempts | 429 | Oauth device attempts |
oauth_device_not_found | 404 | Oauth device not found |
oauth_no_partner_organization | 403 | Oauth no partner organization |
oauth_no_scope | 403 | Oauth no scope |
oauth_request_not_found | 404 | Oauth request not found |
offer_needs_card | 409 | Offer needs card |
offer_needs_checkout | 409 | Offer needs checkout |
offer_needs_new_plan | 409 | Offer needs new plan |
offer_not_a_discount | 409 | Offer not a discount |
offer_not_applied | 409 | Offer not applied |
offer_not_eligible | 409 | Offer not eligible |
offer_not_found | 404 | Offer not found |
offer_not_live | 422 | Offer not live |
offer_staff_only | 403 | Offer staff only |
offer_terms_frozen | 409 | Offer terms frozen |
oidc_request_not_found | 404 | Oidc request not found |
one_per_business | 422 | One per business |
one_submission_open | 409 | One submission open |
organization_in_use | 409 | Organization in use |
organization_limit_reached | 409 | Organization limit reached |
organization_name_taken | 409 | Organization name taken |
outside_window | 422 | Outside window |
over_threshold | Over threshold | |
override_not_allowed | 403 | Override not allowed |
own_request | 403 | Own request |
own_staff_change | 403 | Own staff change |
owner_cannot_leave | 409 | Owner cannot leave |
owner_hand_on_first | 409 | Owner hand on first |
owner_needs_super_admin | 409 | Owner needs super admin |
owner_only | 403 | Owner only |
owner_role_fixed | 409 | Owner role fixed |
paid_themes_not_available | 400 | Paid themes not available |
parity_report_required | 422 | Parity report required |
partner_permission_denied | 403 | Partner permission denied |
partner_terms_not_accepted | 409 | Partner terms not accepted |
pause_unavailable | 409 | Pause unavailable |
payment_connect_failed | 502 | Payment connect failed |
payment_connect_unavailable | 503 | Payment connect unavailable |
payment_failed | 402 | Payment failed |
payment_past_due | 409 | Payment past due |
payment_required | 402 | Payment required |
payment_setup_in_stripe | 409 | Payment setup in stripe |
payouts_unavailable | 503 | Payouts unavailable |
permission_required | 422 | Permission required |
placement_not_found | 404 | Placement not found |
placement_unresolved | 422 | Placement unresolved |
plan | 422 | Plan |
plan_change_needs_preview | 409 | Plan change needs preview |
plan_change_not_available | 409 | Plan change not available |
plan_change_scheduled | 409 | Plan change scheduled |
plan_feature_required | 402 | Plan feature required |
plan_limit_exceeded | 409 | Plan limit exceeded |
plan_limit_reached | 402 | Plan limit reached |
plan_required | 409 | Plan required |
plan_unchanged | 409 | Plan unchanged |
pointer_not_found | 404 | Pointer not found |
pointer_not_poisoned | 409 | Pointer not poisoned |
precondition_failed | 412 | Precondition failed |
precondition_required | 428 | Precondition required |
premium | 422 | Premium |
preview_mismatch | 422 | Preview mismatch |
preview_not_verified | 422 | Preview not verified |
preview_quota | 429 | Preview quota |
preview_required | 422 | Preview required |
preview_stale | 409 | Preview stale |
preview_unavailable | 503 | Preview unavailable |
preview_used | 409 | Preview used |
price_not_in_stripe | 409 | Price not in stripe |
price_out_of_range | 400 | Price out of range |
privacy_unavailable | 409 | Privacy unavailable |
program_not_active | 422 | Program not active |
program_not_found | 404 | Program not found |
provider_unavailable | 503 | Provider unavailable |
provisioning_not_enabled | 404 | Provisioning not enabled |
publish_gate_quota | 429 | Publish gate quota |
publish_in_progress | 409 | Publish in progress |
publish_unavailable | 503 | Publish unavailable |
purchase_not_paid | Purchase not paid | |
query_cost_exceeded | Query cost exceeded | |
rate_limit_exceeded | 429 | Rate limit exceeded |
rate_limited | 429 | Rate limited |
reason_required | 422 | Reason required |
refund_needs_staff | Refund needs staff | |
refund_pending | 409 | Refund pending |
registrar_error | 422, 502 | Registrar error |
registrar_not_connected | 503 | Registrar not connected |
rehome_tombstone_invalid | 422 | Rehome tombstone invalid |
release_never_live | 422 | Release never live |
release_not_found | 404 | Release not found |
release_red | 422 | Release red |
renewal_in_progress | 422 | Renewal in progress |
replay_guard_unavailable | Replay guard unavailable | |
report_closed | 409 | Report closed |
request_changed | 409 | Request changed |
request_closed | 409 | Request closed |
request_timeout | 408 | Request timeout |
resource_already_exists | 409 | Resource already exists |
resource_conflict | 409 | Resource conflict |
resource_not_found | 404 | Resource not found |
retry_later | 503 | Retry later |
review_closed | 409 | Review closed |
review_store_missing | 500 | Review store missing |
revocation_done | 409 | Revocation done |
revocation_sending | 409 | Revocation sending |
role_conflict | 409 | Role conflict |
rollback_needs_rows | 409 | Rollback needs rows |
same_cell | 409 | Same cell |
service_unavailable | 503 | Service unavailable |
session_expired | 401 | Session expired |
setup_task_done | 409 | Setup task done |
setup_task_open | 409 | Setup task open |
share_not_found | 404 | Share not found |
share_quota | 429 | Share quota |
slow_down | 400 | Slow down |
sms_unavailable | 503 | Sms unavailable |
source_invalid | 400 | Source invalid |
source_not_found | 404 | Source not found |
source_rejected | 400, 422 | Source rejected |
source_required | 409 | Source required |
source_too_large | 400 | Source too large |
source_unavailable | 503 | Source unavailable |
source_upload_unavailable | 503 | Source upload unavailable |
staff_access_mismatch | 403 | Staff access mismatch |
staff_access_required | 401 | Staff access required |
staff_console_unavailable | 503 | Staff console unavailable |
staff_exists | 409 | Staff exists |
staff_permission_denied | 403 | Staff permission denied |
staff_read_only | 403 | Staff read only |
staff_session_required | 401 | Staff session required |
step_up_method_unavailable | 400 | Step up method unavailable |
step_up_required | 403 | Step up required |
storage_limit | Storage limit | |
store_access_denied | 403 | Store access denied |
store_access_not_granted | 403 | Store access not granted |
store_access_suspended | 403 | Store access suspended |
store_closed | 409 | Store closed |
store_closed_by_tanqory | 409 | Store closed by tanqory |
store_data_purged | 410 | Store data purged |
store_is_controller | 409 | Store is controller |
store_kind | 422 | Store kind |
store_limit_reached | 402 | Store limit reached |
store_member_required | 403 | Store member required |
store_mismatch | 422 | Store mismatch |
store_moving | Store moving | |
store_not_found | 404 | Store not found |
store_not_open | 409 | Store not open |
store_not_serving | 409 | Store not serving |
store_not_suspended | 409 | Store not suspended |
store_not_transferable | 409 | Store not transferable |
store_on_hold | 409 | Store on hold |
store_suspended_by_tanqory | 409 | Store suspended by tanqory |
store_unavailable | 409 | Store unavailable |
store_withdrawn | 409 | Store withdrawn |
stores_partly_closed | 502 | Stores partly closed |
studio_bad_response | Studio bad response | |
subdomain_taken | 409 | Subdomain taken |
submission_limit_reached | 409 | Submission limit reached |
submission_not_in_review | 409 | Submission not in review |
subscription_needs_staff | 409 | Subscription needs staff |
subscription_not_active | 409 | Subscription not active |
subscription_not_found | 409 | Subscription not found |
subscription_plan_not_found | 404, 409 | Subscription plan not found |
super_admin_limit | 409 | Super admin limit |
support_chat_disabled | 404 | Support chat disabled |
target_not_eligible | 422 | Target not eligible |
tax_profile_conflict | 409 | Tax profile conflict |
temporary_host | 400 | Temporary host |
terms_not_published | 409 | Terms not published |
test_clock_advancing | 409 | Test clock advancing |
test_clock_exists | 409 | Test clock exists |
test_clock_missing | 409 | Test clock missing |
test_clock_refused | 409 | Test clock refused |
test_clock_unavailable | 409 | Test clock unavailable |
test_key_in_production | Test key in production | |
theme_limit_reached | 409 | Theme limit reached |
theme_manifest_unavailable | 422 | Theme manifest unavailable |
theme_not_found | 404 | Theme not found |
theme_not_listed | 409 | Theme not listed |
theme_removed | 409 | Theme removed |
tier_not_found | Tier not found | |
too_many_requests | 429 | Too many requests |
transfer_in_progress | 422 | Transfer in progress |
transfer_other_account | 403 | Transfer other account |
transfer_pending | 409 | Transfer pending |
trial_store_limit_reached | 409 | Trial store limit reached |
trust_root_below_floor | 503 | Trust root below floor |
trust_root_unverified | 503 | Trust root unverified |
turnstile_action_mismatch | 403 | Turnstile action mismatch |
turnstile_unavailable | 503 | Turnstile unavailable |
two_secrets_active | 409 | Two secrets active |
two_step_required | 403 | Two step required |
unauthorized | 401 | Unauthorized |
unauthorized_client | 400 | Unauthorized client |
unavailable | 422 | Unavailable |
unknown_approval | 500 | Unknown approval |
unknown_config_document | 500 | Unknown config document |
unpaid_bill | Unpaid bill | |
unprocessable_content | 422 | Unprocessable content |
unreachable | Unreachable | |
unsupported_country | Unsupported country | |
unsupported_file_type | 400 | Unsupported file type |
unsupported_grant_type | 400 | Unsupported grant type |
unsupported_media_type | 415 | Unsupported media type |
upload_incomplete | 409 | Upload incomplete |
validation_error | 400 | Validation error |
verification_closed | 409 | Verification closed |
verification_code_expired | 409 | Verification code expired |
verification_open | 409 | Verification open |
verification_reported | 409 | Verification reported |
verification_required | 422 | Verification required |
version_current | 409 | Version current |
version_in_review | 409 | Version in review |
version_not_approved | 409 | Version not approved |
version_not_checking | 409 | Version not checking |
version_not_in_review | 409 | Version not in review |
version_not_increasing | 409 | Version not increasing |
version_not_released | 409 | Version not released |
webhook_not_configured | 503 | Webhook not configured |
wrong_cell | 409 | Wrong cell |
wrong_request_type | 409 | Wrong request type |
Cost errors
MAX_COST_EXCEEDED และ THROTTLED มีรูปแบบของตัวเอง โดยมีลิงก์ documentation แทน doc_url อธิบายไว้ที่ Rate limits and query cost
ใน payload ของ mutation
mutation ที่ทำงานแต่ทำตามที่ขอไม่ได้จะตอบ 200 พร้อม data และแสดงปัญหาใน userErrors ของ payload แต่ละรายการมี path ใน field และ message ให้เลือก userErrors และตรวจทุกครั้ง
{ "data": { "appUsageRecordCreate": { "appUsageRecord": null, "userErrors": [{ "message": "The app subscription line item must have a usage pricing plan" }] } } }Error ของ token endpoint
token endpoint ตอบ error แบบ OAuth เช่น invalid_grant และ invalid_client ดู การติดตั้งและ access token