TanqoryDocs

Webhook payloads

body แบบ JSON ของ webhook แต่ละหัวข้อ จากเหตุการณ์จริงบนแพลตฟอร์มสำหรับพัฒนาของ Tanqory

body ของแต่ละการส่งคือ resource ที่เหตุการณ์นั้นเกี่ยวข้อง ในรูป JSON ผู้สมัครรับหัวข้อเดียวกันได้ body เดียวกัน หน้านี้แสดง body ที่ Tanqory ส่งสำหรับเหตุการณ์ล่าสุดของทุกหัวข้อที่เคยเกิดในร้านทดสอบบนแพลตฟอร์มสำหรับพัฒนา อ่านเมื่อ 2026-11-15 ชื่อ อีเมล เบอร์โทร ที่อยู่ IP address token และเลขอ้างอิงการชำระเงิน ถูกแทนด้วยค่าตัวอย่าง ส่วนอื่นคงไว้ตามที่ส่งจริง

วิธีอ่าน body:

  • key เป็น snake_case id คือเลขของ resource และ admin_graphql_api_id คือ id ใน Admin API (gid://tanqory/<Type>/<id>) ใช้ตัวหลังเพื่ออ่าน resource ผ่าน Admin API
  • จำนวนเงินเป็น string ("490") วันเวลาเป็น ISO 8601 แบบ UTC
  • subscription ที่ตั้ง includeFields จะได้เฉพาะ key เหล่านั้น ส่วนที่ตั้ง metafieldNamespaces จะได้รายการ metafields เพิ่ม

header ที่มากับแต่ละการส่ง และวิธีตรวจ X-Tanqory-Hmac-Sha256 อยู่ใน Webhooks

orders/create

access scope: read_orders หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000363001,
  "name": "#1111",
  "note": null,
  "tags": [],
  "test": false,
  "email": null,
  "phone": null,
  "edited": false,
  "number": 1111,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": false,
  "po_number": null,
  "cart_token": null,
  "created_at": "2026-11-14T20:08:02Z",
  "line_items": [
    {
      "id": 19571,
      "sku": null,
      "grams": 500,
      "price": "490",
      "title": "Lane A #32 mug",
      "vendor": null,
      "taxable": true,
      "order_id": 1000000363001,
      "position": 0,
      "quantity": 1,
      "tax_lines": [],
      "created_at": "2026-11-14T20:08:02Z",
      "product_id": null,
      "updated_at": "2026-11-14T20:08:02Z",
      "variant_id": null,
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 1,
      "custom_attributes": [],
      "inventory_item_id": null,
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 0,
      "fulfillment_service": null,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-14T20:08:02Z",
  "customer_id": null,
  "source_name": null,
  "total_price": "490",
  "cancelled_at": null,
  "processed_at": "2026-11-14T20:08:02Z",
  "total_weight": 500,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": null,
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": null,
  "customer_locale": null,
  "duties_included": false,
  "duties_incoterm": null,
  "status_page_key": "example-status-page-key",
  "financial_status": "paid",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 1,
  "fulfillment_status": null,
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "BDTUJ3A29",
  "current_total_price": "490",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "original_total_price": "490",
  "payment_gateway_names": [],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "PAID",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "UNFULFILLED",
  "original_total_price_presentment": "490"
}

bulk_operations/finish

ไม่ต้องใช้ access scope เก็บบน Dev เมื่อ 2026-11-10

JSON
{
  "id": "01a1c6ae-4dd7-74e3-a469-05b263a342d2",
  "type": "query",
  "status": "completed",
  "created_at": "2026-11-10T18:17:54Z",
  "error_code": null,
  "completed_at": "2026-11-10T18:17:57Z",
  "admin_graphql_api_id": "gid://tanqory/BulkOperation/01a1c6ae-4dd7-74e3-a469-05b263a342d2"
}

collection_listings/add

access scope: read_product_listings เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000637001,
  "title": "Linen picks 11141930",
  "handle": "linen-picks-11141930",
  "rule_set": null,
  "seo_title": null,
  "created_at": "2026-11-14T19:30:13Z",
  "sort_order": "MOST_RELEVANT",
  "updated_at": "2026-11-14T19:30:13Z",
  "image_media_id": null,
  "seo_description": null,
  "template_suffix": null,
  "description_html": "<p>Three favourites.</p>",
  "admin_graphql_api_id": "gid://tanqory/Collection/01a1db89-f46d-7000-8335-3c3542039bef"
}

collections/create

access scope: read_products เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000638001,
  "title": "NF5 automated check",
  "handle": "nf5-automated-check",
  "rule_set": null,
  "seo_title": null,
  "created_at": "2026-11-14T19:52:52Z",
  "sort_order": "MOST_RELEVANT",
  "updated_at": "2026-11-14T19:52:52Z",
  "image_media_id": null,
  "seo_description": null,
  "template_suffix": null,
  "description_html": "",
  "admin_graphql_api_id": "gid://tanqory/Collection/01a1db9e-b1ad-76a2-b241-e4a90e3d9acc"
}

collections/delete

access scope: read_products เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000638001,
  "admin_graphql_api_id": "gid://tanqory/Collection/01a1db9e-b1ad-76a2-b241-e4a90e3d9acc"
}

collections/update

access scope: read_products เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000637001,
  "title": "Linen picks 11141930",
  "handle": "linen-picks-11141930",
  "rule_set": null,
  "seo_title": null,
  "created_at": "2026-11-14T19:30:13Z",
  "sort_order": "MOST_RELEVANT",
  "updated_at": "2026-11-14T19:30:17Z",
  "image_media_id": "01a1db8a-01c0-7c80-b1e3-9f988befccae",
  "seo_description": null,
  "template_suffix": null,
  "description_html": "<p>Three favourites.</p>",
  "admin_graphql_api_id": "gid://tanqory/Collection/01a1db89-f46d-7000-8335-3c3542039bef"
}

companies/create

access scope: read_customers หรือ read_companies เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": "01a1d3ba-d33b-7303-95be-11227216e1e0",
  "name": "ZZ b35c Dev Co",
  "note": null,
  "created_at": "2026-11-13T07:06:38Z",
  "updated_at": "2026-11-13T07:06:38Z",
  "external_id": null,
  "customer_since": "2026-11-13T07:06:38Z",
  "main_contact_id": null,
  "ordering_status": "APPROVED",
  "admin_graphql_api_id": "gid://tanqory/Company/01a1d3ba-d33b-7303-95be-11227216e1e0"
}

companies/delete

access scope: read_customers หรือ read_companies เก็บบน Dev เมื่อ 2026-11-10

JSON
{
  "id": "01a1c6be-579d-7c52-8b75-90371ca55cb5",
  "admin_graphql_api_id": "gid://tanqory/Company/01a1c6be-579d-7c52-8b75-90371ca55cb5"
}

company_locations/create

access scope: read_customers หรือ read_companies เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": "01a1d3ba-d537-7931-8130-821b42273d17",
  "name": "ZZ b35c Chiang Mai",
  "note": null,
  "phone": null,
  "locale": null,
  "company_id": "01a1d3ba-d33b-7303-95be-11227216e1e0",
  "created_at": "2026-11-13T07:06:39Z",
  "tax_exempt": false,
  "updated_at": "2026-11-13T07:06:39Z",
  "external_id": null,
  "currency_code": "THB",
  "tax_exemptions": [],
  "buyer_experience": {
    "deposit": null,
    "checkout_to_draft": false,
    "editable_shipping_address": false,
    "payment_terms_template_id": null
  },
  "billing_address_id": null,
  "shipping_address_id": null,
  "tax_registration_id": null,
  "admin_graphql_api_id": "gid://tanqory/CompanyLocation/01a1d3ba-d537-7931-8130-821b42273d17"
}

customer.tags_added

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "tags": [
    "vip"
  ],
  "customerId": "gid://tanqory/Customer/01a1ee69-c30a-7232-ae2a-9e4a3417cbae",
  "occurredAt": "2026-11-18T11:27:51.401Z"
}

customer.tags_removed

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "tags": [
    "vip"
  ],
  "customerId": "gid://tanqory/Customer/01a1ee69-c30a-7232-ae2a-9e4a3417cbae",
  "occurredAt": "2026-11-18T11:30:44.854Z"
}

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "customer_id": 1000000500001,
  "email_address": "customer@example.com",
  "admin_graphql_api_id": "gid://tanqory/Customer/01a1ee69-c30a-7232-ae2a-9e4a3417cbae",
  "email_marketing_consent": {
    "state": "subscribed",
    "opt_in_level": "single_opt_in",
    "consent_updated_at": "2026-11-18T11:27:51Z"
  }
}

customers/create

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "id": 1000000501001,
  "note": null,
  "tags": [],
  "email": "customer@example.com",
  "phone": null,
  "state": "disabled",
  "title": "Alex Example",
  "locale": null,
  "currency": "THB",
  "addresses": [],
  "last_name": "Example",
  "sort_name": "alex example",
  "created_at": "2026-11-18T11:30:53Z",
  "first_name": "Alex",
  "tax_exempt": false,
  "updated_at": "2026-11-18T11:30:53Z",
  "sort_location": null,
  "tax_exemptions": [],
  "verified_email": true,
  "default_address": null,
  "reset_expires_at": null,
  "created_by_app_id": null,
  "data_sale_opt_out": false,
  "default_address_id": null,
  "sms_marketing_state": "NOT_SUBSCRIBED",
  "admin_graphql_api_id": "gid://tanqory/Customer/01a1ee6c-8ab0-79f0-a2de-6fb682e0842f",
  "multipass_identifier": null,
  "activation_expires_at": null,
  "email_marketing_state": "NOT_SUBSCRIBED",
  "sms_consent_updated_at": null,
  "sms_consent_location_id": null,
  "email_consent_updated_at": null,
  "data_erasure_requested_at": null,
  "email_consent_location_id": null,
  "whats_app_marketing_state": "NOT_SUBSCRIBED",
  "sms_consent_collected_from": null,
  "sms_marketing_opt_in_level": null,
  "email_marketing_opt_in_level": null,
  "marketing_confirm_expires_at": null,
  "whats_app_consent_updated_at": null,
  "whats_app_consent_location_id": null,
  "whats_app_consent_collected_from": null,
  "whats_app_marketing_opt_in_level": null
}

customers/delete

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "id": 1000000501001,
  "tax_exemptions": [],
  "admin_graphql_api_id": "gid://tanqory/Customer/01a1ee6c-8ab0-79f0-a2de-6fb682e0842f"
}

customers/enable

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "id": 1000000500001,
  "note": null,
  "tags": [
    "vip"
  ],
  "email": "customer@example.com",
  "phone": null,
  "state": "enabled",
  "title": "Alex Example",
  "locale": null,
  "currency": "THB",
  "addresses": [
    {
      "id": "01a1ee69-c327-74f2-b910-a46d6764509f",
      "zip": "10110",
      "city": "Bangkok",
      "name": "Alex Example",
      "phone": null,
      "company": null,
      "country": "Thailand",
      "default": true,
      "address1": "1 Example Road",
      "address2": null,
      "province": "Bangkok",
      "last_name": "Example",
      "first_name": "Alex",
      "customer_id": 1000000500001,
      "country_code": "TH",
      "country_name": "Thailand",
      "province_code": "TH-10"
    }
  ],
  "last_name": "Example",
  "sort_name": "alex example",
  "created_at": "2026-11-18T11:27:51Z",
  "first_name": "Alex",
  "tax_exempt": false,
  "updated_at": "2026-11-18T11:29:10Z",
  "sort_location": "th bangkok",
  "tax_exemptions": [],
  "verified_email": true,
  "default_address": {
    "id": "01a1ee69-c327-74f2-b910-a46d6764509f",
    "zip": "10110",
    "city": "Bangkok",
    "name": "Alex Example",
    "phone": null,
    "company": null,
    "country": "Thailand",
    "default": true,
    "address1": "1 Example Road",
    "address2": null,
    "province": "Bangkok",
    "last_name": "Example",
    "first_name": "Alex",
    "customer_id": 1000000500001,
    "country_code": "TH",
    "country_name": "Thailand",
    "province_code": "TH-10"
  },
  "reset_expires_at": null,
  "created_by_app_id": null,
  "data_sale_opt_out": false,
  "default_address_id": "01a1ee69-c327-74f2-b910-a46d6764509f",
  "sms_marketing_state": "NOT_SUBSCRIBED",
  "admin_graphql_api_id": "gid://tanqory/Customer/01a1ee69-c30a-7232-ae2a-9e4a3417cbae",
  "multipass_identifier": null,
  "activation_expires_at": null,
  "email_marketing_state": "SUBSCRIBED",
  "sms_consent_updated_at": null,
  "sms_consent_location_id": null,
  "email_consent_updated_at": "2026-11-18T11:27:51Z",
  "data_erasure_requested_at": null,
  "email_consent_location_id": null,
  "whats_app_marketing_state": "NOT_SUBSCRIBED",
  "sms_consent_collected_from": null,
  "sms_marketing_opt_in_level": null,
  "email_marketing_opt_in_level": "SINGLE_OPT_IN",
  "marketing_confirm_expires_at": null,
  "whats_app_consent_updated_at": null,
  "whats_app_consent_location_id": null,
  "whats_app_consent_collected_from": null,
  "whats_app_marketing_opt_in_level": null
}

customers/update

access scope: read_customers เก็บบน Dev เมื่อ 2026-11-18

JSON
{
  "id": 1000000500001,
  "note": null,
  "tags": [],
  "email": "customer@example.com",
  "phone": null,
  "state": "enabled",
  "title": "Alex Example",
  "locale": null,
  "currency": "THB",
  "addresses": [
    {
      "id": "01a1ee69-c327-74f2-b910-a46d6764509f",
      "zip": "10110",
      "city": "Bangkok",
      "name": "Alex Example",
      "phone": null,
      "company": null,
      "country": "Thailand",
      "default": true,
      "address1": "1 Example Road",
      "address2": null,
      "province": "Bangkok",
      "last_name": "Example",
      "first_name": "Alex",
      "customer_id": 1000000500001,
      "country_code": "TH",
      "country_name": "Thailand",
      "province_code": "TH-10"
    }
  ],
  "last_name": "Example",
  "sort_name": "alex example",
  "created_at": "2026-11-18T11:27:51Z",
  "first_name": "Alex",
  "tax_exempt": false,
  "updated_at": "2026-11-18T11:30:44Z",
  "sort_location": "th bangkok",
  "tax_exemptions": [],
  "verified_email": true,
  "default_address": {
    "id": "01a1ee69-c327-74f2-b910-a46d6764509f",
    "zip": "10110",
    "city": "Bangkok",
    "name": "Alex Example",
    "phone": null,
    "company": null,
    "country": "Thailand",
    "default": true,
    "address1": "1 Example Road",
    "address2": null,
    "province": "Bangkok",
    "last_name": "Example",
    "first_name": "Alex",
    "customer_id": 1000000500001,
    "country_code": "TH",
    "country_name": "Thailand",
    "province_code": "TH-10"
  },
  "reset_expires_at": null,
  "created_by_app_id": null,
  "data_sale_opt_out": false,
  "default_address_id": "01a1ee69-c327-74f2-b910-a46d6764509f",
  "sms_marketing_state": "NOT_SUBSCRIBED",
  "admin_graphql_api_id": "gid://tanqory/Customer/01a1ee69-c30a-7232-ae2a-9e4a3417cbae",
  "multipass_identifier": null,
  "activation_expires_at": null,
  "email_marketing_state": "SUBSCRIBED",
  "sms_consent_updated_at": null,
  "sms_consent_location_id": null,
  "email_consent_updated_at": "2026-11-18T11:27:51Z",
  "data_erasure_requested_at": null,
  "email_consent_location_id": null,
  "whats_app_marketing_state": "NOT_SUBSCRIBED",
  "sms_consent_collected_from": null,
  "sms_marketing_opt_in_level": null,
  "email_marketing_opt_in_level": "SINGLE_OPT_IN",
  "marketing_confirm_expires_at": null,
  "whats_app_consent_updated_at": null,
  "whats_app_consent_location_id": null,
  "whats_app_consent_collected_from": null,
  "whats_app_marketing_opt_in_level": null
}

discounts/create

access scope: read_discounts เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1d99e-b752-7df1-ad5e-677f30bada4a",
  "kind": "FREE_SHIPPING",
  "tags": [],
  "title": "NF14SHIP",
  "method": "CODE",
  "ends_at": null,
  "starts_at": "2026-11-14T10:32:39Z",
  "created_at": "2026-11-14T10:33:39Z",
  "updated_at": "2026-11-14T10:33:39Z",
  "value_type": null,
  "context_ids": [],
  "destination": {
    "all": true
  },
  "function_id": null,
  "usage_limit": null,
  "context_type": "ALL",
  "customer_buys": null,
  "customer_gets": null,
  "discount_classes": [
    "SHIPPING"
  ],
  "async_usage_count": 0,
  "combines_with_tags": [],
  "combines_with_order": true,
  "minimum_requirement": null,
  "admin_graphql_api_id": "gid://tanqory/DiscountNode/01a1d99e-b752-7df1-ad5e-677f30bada4a",
  "featured_on_channels": false,
  "uses_per_order_limit": null,
  "combines_with_product": false,
  "recurring_cycle_limit": null,
  "combines_with_shipping": false,
  "maximum_shipping_price": null,
  "applies_on_subscription": false,
  "applies_once_per_customer": false,
  "applies_on_one_time_purchase": true
}

discounts/delete

access scope: read_discounts เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": "01a1ccb4-75dd-7250-b53f-a3ee18c484a5",
  "admin_graphql_api_id": "gid://tanqory/DiscountNode/01a1ccb4-75dd-7250-b53f-a3ee18c484a5"
}

discounts/update

access scope: read_discounts เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": "01a1d2a4-a67f-7c60-8c86-7287b5ccac9e",
  "kind": "BASIC",
  "tags": [],
  "title": "ZZV2HALF",
  "method": "CODE",
  "ends_at": "2026-11-13T02:59:19Z",
  "starts_at": "2026-11-13T02:02:00Z",
  "created_at": "2026-11-13T02:02:48Z",
  "updated_at": "2026-11-13T02:59:19Z",
  "value_type": "PERCENTAGE",
  "context_ids": [],
  "destination": null,
  "function_id": null,
  "usage_limit": null,
  "context_type": "ALL",
  "customer_buys": null,
  "customer_gets": {
    "items": {
      "all": true
    },
    "value": {
      "type": "PERCENTAGE",
      "percentage": 0.5
    },
    "applies_on_subscription": false,
    "applies_on_one_time_purchase": true
  },
  "discount_classes": [
    "ORDER"
  ],
  "async_usage_count": 0,
  "combines_with_tags": [],
  "combines_with_order": false,
  "minimum_requirement": null,
  "admin_graphql_api_id": "gid://tanqory/DiscountNode/01a1d2a4-a67f-7c60-8c86-7287b5ccac9e",
  "featured_on_channels": false,
  "uses_per_order_limit": null,
  "combines_with_product": false,
  "recurring_cycle_limit": null,
  "combines_with_shipping": false,
  "maximum_shipping_price": null,
  "applies_on_subscription": false,
  "applies_once_per_customer": false,
  "applies_on_one_time_purchase": true
}

disputes/create

access scope: read_tanqory_payments_disputes เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000000008001,
  "type": "CHARGEBACK",
  "amount": "540",
  "reason": "FRAUDULENT",
  "status": "NEEDS_RESPONSE",
  "order_id": null,
  "created_at": "2026-11-13T04:22:46Z",
  "updated_at": "2026-11-13T04:22:46Z",
  "finalized_on": null,
  "initiated_at": "2026-11-13T04:22:44Z",
  "currency_code": "THB",
  "transaction_id": null,
  "evidence_due_by": "2026-11-21T23:59:59Z",
  "evidence_sent_on": null,
  "payment_reference": "pi_example",
  "provider_reference": "pi_example",
  "network_reason_code": "10.4",
  "admin_graphql_api_id": "gid://tanqory/TanqoryPaymentsDispute/01a1d324-ccc8-7471-9359-3d49e540ba32"
}

disputes/update

access scope: read_tanqory_payments_disputes เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000000008001,
  "type": "CHARGEBACK",
  "amount": "540",
  "reason": "FRAUDULENT",
  "status": "NEEDS_RESPONSE",
  "order_id": "01a1d324-c974-7552-8c6f-dc3073756890",
  "created_at": "2026-11-13T04:22:46Z",
  "updated_at": "2026-11-13T04:29:55Z",
  "finalized_on": null,
  "initiated_at": "2026-11-13T04:22:44Z",
  "currency_code": "THB",
  "transaction_id": "01a1d324-ca8b-7b91-8088-e710724d2a51",
  "evidence_due_by": "2026-11-21T23:59:59Z",
  "evidence_sent_on": null,
  "payment_reference": "pi_example",
  "provider_reference": "pi_example",
  "network_reason_code": "10.4",
  "admin_graphql_api_id": "gid://tanqory/TanqoryPaymentsDispute/01a1d324-ccc8-7471-9359-3d49e540ba32"
}

domains/create

ไม่ต้องใช้ access scope เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": "01a1d362-2b49-7508-9fe4-509790002e69",
  "host": "shop.example.com",
  "status": "PENDING",
  "primary": false,
  "ssl_enabled": false,
  "localization": null,
  "admin_graphql_api_id": "gid://tanqory/Domain/01a1d362-2b49-7508-9fe4-509790002e69"
}

domains/destroy

ไม่ต้องใช้ access scope เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1d33e-503c-7687-a144-4d40e97d8d87",
  "host": "shop.example.com",
  "admin_graphql_api_id": "gid://tanqory/Domain/01a1d33e-503c-7687-a144-4d40e97d8d87"
}

domains/update

ไม่ต้องใช้ access scope เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1d33e-503c-7687-a144-4d40e97d8d87",
  "host": "shop.example.com",
  "status": "CONNECTED",
  "primary": false,
  "ssl_enabled": true,
  "localization": null,
  "admin_graphql_api_id": "gid://tanqory/Domain/01a1d33e-503c-7687-a144-4d40e97d8d87"
}

draft_orders/create

access scope: read_draft_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000106001,
  "name": "#D20",
  "note": "Example note",
  "tags": [
    "ZZ-b35-9"
  ],
  "email": null,
  "phone": null,
  "number": 20,
  "status": "OPEN",
  "totals": {
    "total": [
      "490",
      "490"
    ],
    "subtotal": [
      "490",
      "490"
    ],
    "total_tax": [
      "0",
      "0"
    ],
    "total_shipping": [
      "0",
      "0"
    ],
    "total_discounts": [
      "0",
      "0"
    ],
    "total_line_items": [
      "490",
      "490"
    ],
    "line_items_subtotal": [
      "490",
      "490"
    ]
  },
  "order_id": null,
  "po_number": null,
  "company_id": null,
  "created_at": "2026-11-14T00:51:53Z",
  "tax_exempt": false,
  "updated_at": "2026-11-14T00:51:53Z",
  "customer_id": null,
  "source_name": null,
  "total_price": "490",
  "completed_at": null,
  "total_weight": 300,
  "currency_code": "THB",
  "customer_name": null,
  "invoice_token": "example-invoice-token",
  "shipping_line": null,
  "discount_codes": [],
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": null,
  "inventory_holds": [],
  "invoice_sent_at": null,
  "applied_discount": null,
  "presentment_rate": "1",
  "shipping_address": null,
  "custom_attributes": [],
  "company_contact_id": null,
  "deposit_percentage": null,
  "platform_discounts": [],
  "company_location_id": null,
  "market_country_code": null,
  "visible_to_customer": false,
  "admin_graphql_api_id": "gid://tanqory/DraftOrder/01a1d78a-17a1-737d-95eb-c8b58e5e241d",
  "reserve_inventory_until": "2026-11-14T00:53:08Z",
  "transformer_fingerprint": null,
  "presentment_currency_code": "THB",
  "accept_automatic_discounts": null,
  "allow_discount_codes_in_checkout": false
}

draft_orders/delete

access scope: read_draft_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000106001,
  "admin_graphql_api_id": "gid://tanqory/DraftOrder/01a1d78a-17a1-737d-95eb-c8b58e5e241d"
}

draft_orders/update

access scope: read_draft_orders เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000000089001,
  "name": "#D15",
  "note": "Example note",
  "tags": [],
  "email": "customer@example.com",
  "phone": null,
  "number": 15,
  "status": "COMPLETED",
  "totals": {
    "total": [
      "765",
      "3060"
    ],
    "subtotal": [
      "390",
      "1560"
    ],
    "total_tax": [
      "0",
      "0"
    ],
    "total_shipping": [
      "375",
      "1500"
    ],
    "total_discounts": [
      "0",
      "0"
    ],
    "total_line_items": [
      "390",
      "1560"
    ],
    "line_items_subtotal": [
      "390",
      "1560"
    ]
  },
  "order_id": "01a1d398-5a79-7b12-8e39-a6c692997df1",
  "po_number": null,
  "company_id": null,
  "created_at": "2026-11-13T06:27:49Z",
  "tax_exempt": false,
  "updated_at": "2026-11-13T06:29:00Z",
  "customer_id": "01a1d393-eed7-7992-9b59-8744e8757313",
  "source_name": null,
  "total_price": "765",
  "completed_at": "2026-11-13T06:29:00Z",
  "total_weight": 0,
  "currency_code": "THB",
  "customer_name": "Alex Example",
  "invoice_token": "example-invoice-token",
  "shipping_line": {
    "id": "01a1d397-974b-7790-a55e-576366806b94",
    "code": "ZZ b35n3 Standard",
    "price": [
      "375",
      "1500"
    ],
    "title": "ZZ b35n3 Standard",
    "custom": false,
    "source": "tanqory",
    "discount": [
      "0",
      "0"
    ],
    "tax_lines": [],
    "created_at": "2026-11-13T06:28:09.675Z",
    "shipping_rate_handle": "bf47ad61ee29da2cc869bb41301669ac"
  },
  "discount_codes": [],
  "subtotal_price": "390",
  "taxes_included": false,
  "billing_address": {
    "id": "01a1d397-971a-73e4-be7a-48888c89828e",
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "company": null,
    "address1": "1 Example Road",
    "address2": null,
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": null
  },
  "invoice_sent_at": null,
  "applied_discount": null,
  "presentment_rate": "4",
  "shipping_address": {
    "id": "01a1d397-971a-73e5-be12-f8958620e70f",
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "company": null,
    "address1": "1 Example Road",
    "address2": null,
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": null
  },
  "custom_attributes": [],
  "company_contact_id": null,
  "deposit_percentage": null,
  "platform_discounts": [],
  "company_location_id": null,
  "market_country_code": "JP",
  "visible_to_customer": false,
  "admin_graphql_api_id": "gid://tanqory/DraftOrder/01a1d397-48e1-70d6-9a95-9325973590f6",
  "reserve_inventory_until": null,
  "transformer_fingerprint": null,
  "presentment_currency_code": "JPY",
  "accept_automatic_discounts": null,
  "allow_discount_codes_in_checkout": false
}

fulfillment_events/create

access scope: read_fulfillments เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1dbb6-f921-7ea2-84c8-cea9485b996b",
  "seq": 31,
  "zip": null,
  "city": null,
  "status": "CARRIER_PICKED_UP",
  "country": null,
  "message": "Shipped (No Tracking Provided)",
  "address1": null,
  "latitude": null,
  "province": null,
  "longitude": null,
  "created_at": "2026-11-14T20:19:24Z",
  "happened_at": "2026-11-14T20:19:24Z",
  "fulfillment_id": "01a1dbb1-7c51-7ed2-978d-793f9e9b2689",
  "admin_graphql_api_id": "gid://tanqory/FulfillmentEvent/01a1dbb6-f921-7ea2-84c8-cea9485b996b",
  "estimated_delivery_at": null
}

fulfillment_orders/line_items_prepared_for_pickup

access scope: read_merchant_managed_fulfillment_orders หรือ read_assigned_fulfillment_orders หรือ read_third_party_fulfillment_orders หรือ read_marketplace_fulfillment_orders เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": 1000000054001,
  "status": "IN_PROGRESS",
  "order_id": "01a1c847-5ae9-73d2-9c15-fdb3b25e18af",
  "origin_id": null,
  "created_at": "2026-11-11T01:44:42Z",
  "fulfill_at": null,
  "fulfill_by": null,
  "line_items": [
    {
      "id": "01a1c847-5b6f-7cf3-8ec9-aa0972516029",
      "seq": 19216,
      "created_at": "2026-11-11T01:44:42Z",
      "updated_at": "2026-11-11T01:44:42Z",
      "line_item_id": "01a1c847-5af4-75e0-8520-288fc6842a3f",
      "total_quantity": 1,
      "inventory_item_id": "01a1b392-e88f-7cd1-88af-18ea6237005d",
      "remaining_quantity": 1,
      "fulfillment_order_id": "01a1c847-5b6f-7cf3-8ec9-a9f24e8093b8"
    }
  ],
  "updated_at": "2026-11-11T01:45:14Z",
  "destination": null,
  "progress_note": null,
  "request_status": "UNSUBMITTED",
  "status_before_hold": null,
  "ready_for_pickup_at": "2026-11-11T01:45:14Z",
  "admin_graphql_api_id": "gid://tanqory/FulfillmentOrder/01a1c847-5b6f-7cf3-8ec9-a9f24e8093b8",
  "assigned_location_id": "01a1b392-6acb-76a1-8631-1bbdb9a3dbb4",
  "delivery_method_type": "PICK_UP",
  "progress_reported_at": null
}

fulfillment_orders/moved

access scope: read_merchant_managed_fulfillment_orders หรือ read_assigned_fulfillment_orders หรือ read_third_party_fulfillment_orders หรือ read_marketplace_fulfillment_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000366001,
  "status": "OPEN",
  "order_id": "01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "origin_id": null,
  "created_at": "2026-11-14T20:08:02Z",
  "fulfill_at": null,
  "fulfill_by": null,
  "line_items": [
    {
      "id": 19573,
      "created_at": "2026-11-14T20:08:02Z",
      "updated_at": "2026-11-14T20:08:02Z",
      "line_item_id": "01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "total_quantity": 1,
      "inventory_item_id": null,
      "remaining_quantity": 1,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbac-92e7-7390-97d9-8bf1e32e2790",
      "fulfillment_order_id": 1000000366001
    }
  ],
  "updated_at": "2026-11-14T20:08:03Z",
  "destination": {
    "zip": "10110",
    "city": "Bangkok",
    "email": null,
    "phone": "+66 2 000 0000",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH"
  },
  "progress_note": null,
  "request_status": "UNSUBMITTED",
  "status_before_hold": null,
  "ready_for_pickup_at": null,
  "admin_graphql_api_id": "gid://tanqory/FulfillmentOrder/01a1dbac-92e7-7390-97d9-8becb0a42b6d",
  "assigned_location_id": "01a1bfc8-dbdd-7f33-b66d-49d0c8935fda",
  "delivery_method_type": "SHIPPING",
  "progress_reported_at": null,
  "original_fulfillment_order_id": "01a1dbac-92e7-7390-97d9-8becb0a42b6d"
}

fulfillments/create

access scope: read_fulfillments หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000088001,
  "number": 1,
  "status": "SUCCESS",
  "order_id": "01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "created_at": "2026-11-14T20:13:24Z",
  "line_items": [
    {
      "id": 16126,
      "quantity": 1,
      "created_at": "2026-11-14T20:13:24Z",
      "line_item_id": "01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "fulfillment_id": 1000000088001,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbb1-7c63-73a0-b2af-237cdfa4d56b",
      "fulfillment_order_id": "01a1dbac-92e7-7390-97d9-8becb0a42b6d",
      "fulfillment_order_line_item_id": "01a1dbac-92e7-7390-97d9-8bf1e32e2790"
    }
  ],
  "service_id": null,
  "updated_at": "2026-11-14T20:13:24Z",
  "location_id": "01a1bfc8-dbdd-7f33-b66d-49d0c8935fda",
  "delivered_at": null,
  "in_transit_at": null,
  "tracking_info": [
    {
      "url": "https://www.trackmyshipment.co/shipment-tracking/ESSG10352151",
      "number": "TEST12345678",
      "company": "Example Co."
    }
  ],
  "display_status": null,
  "origin_address": null,
  "notify_customer": false,
  "shipping_label_id": "01a1dbb1-7886-71e3-a770-9da682e2102c",
  "admin_graphql_api_id": "gid://tanqory/Fulfillment/01a1dbb1-7c51-7ed2-978d-793f9e9b2689",
  "estimated_delivery_at": null
}

fulfillments/update

access scope: read_fulfillments หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000000070001,
  "number": 1,
  "status": "SUCCESS",
  "order_id": "01a1d433-7e28-75d2-b40f-bdaf1acd1d9b",
  "created_at": "2026-11-13T09:19:23Z",
  "line_items": [
    {
      "id": 16101,
      "quantity": 1,
      "created_at": "2026-11-13T09:19:23Z",
      "line_item_id": "01a1d433-7e3a-7960-b69b-b073a6c84eab",
      "fulfillment_id": 1000000070001,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1d434-5a5e-7e40-b341-7620a1ef301d",
      "fulfillment_order_id": "01a1d433-7f5a-7da2-8662-a937a07f7d6b",
      "fulfillment_order_line_item_id": "01a1d433-7f5b-7241-afd1-194788c1b346"
    }
  ],
  "service_id": null,
  "updated_at": "2026-11-13T09:19:47Z",
  "location_id": "01a1b392-6acb-76a1-8631-1bbdb9a3dbb4",
  "delivered_at": null,
  "in_transit_at": null,
  "tracking_info": [
    {
      "url": null,
      "number": "1Z999AA10123456799",
      "company": null
    }
  ],
  "display_status": null,
  "origin_address": null,
  "notify_customer": true,
  "shipping_label_id": null,
  "admin_graphql_api_id": "gid://tanqory/Fulfillment/01a1d434-5a09-7cc0-b520-e55e9ff8ef9d",
  "estimated_delivery_at": null
}

inventory_levels/connect

access scope: read_inventory เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1dbfb-8b94-7020-bc99-8f5b23948a7f",
  "bin_name": null,
  "created_at": "2026-11-14T21:34:18Z",
  "quantities": {
    "on_hand": 0,
    "available": 0
  },
  "updated_at": "2026-11-14T21:34:18Z",
  "location_id": "01a1b392-6acb-76a1-8631-1bbdb9a3dbb4",
  "inventory_item_id": "01a1dbfb-8b49-79d2-ace1-61476170a344",
  "admin_graphql_api_id": "gid://tanqory/InventoryLevel/01a1dbfb-8b94-7020-bc99-8f5b23948a7f"
}

inventory_levels/update

access scope: read_inventory เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1bfc8-dd0d-7f42-8916-f5ad1fd85081",
  "bin_name": null,
  "created_at": "2026-11-09T10:09:34Z",
  "quantities": {
    "on_hand": -1,
    "available": -1,
    "committed": 0
  },
  "updated_at": "2026-11-14T19:26:40Z",
  "location_id": "01a1bfc8-dbdd-7f33-b66d-49d0c8935fda",
  "inventory_item_id": "01a1b392-e88f-7cd1-88af-18ea6237005d",
  "admin_graphql_api_id": "gid://tanqory/InventoryLevel/01a1bfc8-dd0d-7f42-8916-f5ad1fd85081"
}

locales/create

access scope: read_locales เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1dc06-6a0e-7c63-8e2f-932ea7848f31",
  "locale": "th",
  "published": false,
  "admin_graphql_api_id": "gid://tanqory/ShopLocale/01a1dc06-6a0e-7c63-8e2f-932ea7848f31"
}

locales/destroy

access scope: read_locales เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1d887-a908-7db3-a471-87f721cd91cd",
  "locale": "lo",
  "published": false,
  "admin_graphql_api_id": "gid://tanqory/ShopLocale/01a1d887-a908-7db3-a471-87f721cd91cd"
}

locales/update

access scope: read_locales เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1dc06-6a0e-7c63-8e2f-932ea7848f31",
  "locale": "th",
  "published": true,
  "admin_graphql_api_id": "gid://tanqory/ShopLocale/01a1dc06-6a0e-7c63-8e2f-932ea7848f31"
}

markets/create

access scope: read_markets เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1db12-71e6-7d02-b07b-4d162e7ebfa9",
  "name": "ZZ ckr no-delivery test (temporary)",
  "type": "REGION",
  "handle": "zz-ckr-no-delivery",
  "status": "ACTIVE",
  "created_at": "2026-11-14T17:19:41Z",
  "updated_at": "2026-11-14T17:19:41Z",
  "channel_ids": [],
  "location_ids": [],
  "region_codes": [
    "NZ"
  ],
  "base_currency": null,
  "regions_level": "SPECIFIED",
  "rounding_rule": null,
  "channels_level": null,
  "condition_types": [
    "REGION"
  ],
  "locations_level": null,
  "local_currencies": false,
  "rounding_enabled": true,
  "condition_types_key": "REGION",
  "admin_graphql_api_id": "gid://tanqory/Market/01a1db12-71e6-7d02-b07b-4d162e7ebfa9",
  "company_location_ids": [],
  "tax_pricing_strategy": null,
  "manual_rate_updated_at": null,
  "company_locations_level": null,
  "duties_pricing_strategy": null,
  "base_currency_manual_rate": null
}

markets/delete

access scope: read_markets เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1db12-71e6-7d02-b07b-4d162e7ebfa9",
  "admin_graphql_api_id": "gid://tanqory/Market/01a1db12-71e6-7d02-b07b-4d162e7ebfa9"
}

markets/update

access scope: read_markets เก็บบน Dev เมื่อ 2026-11-12

JSON
{
  "id": "01a1d0f1-e177-74b3-adea-d926bdbc76e4",
  "name": "ZZ laneV Singapore",
  "type": "REGION",
  "handle": "sg",
  "status": "ACTIVE",
  "created_at": "2026-11-12T18:07:55Z",
  "updated_at": "2026-11-12T18:10:22Z",
  "location_ids": [],
  "region_codes": [
    "SG"
  ],
  "base_currency": "SGD",
  "regions_level": "SPECIFIED",
  "condition_types": [
    "REGION"
  ],
  "locations_level": null,
  "local_currencies": false,
  "rounding_enabled": true,
  "condition_types_key": "REGION",
  "admin_graphql_api_id": "gid://tanqory/Market/01a1d0f1-e177-74b3-adea-d926bdbc76e4",
  "company_location_ids": [],
  "tax_pricing_strategy": null,
  "manual_rate_updated_at": null,
  "company_locations_level": null,
  "duties_pricing_strategy": null,
  "base_currency_manual_rate": null
}

metaobjects/create

access scope: read_metaobjects เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1d7dc-a459-73d0-9480-88b252d4225c",
  "type": "lookbook",
  "fields": {
    "body": "The linen story: a short story for the E1 check.",
    "title": "The linen story"
  },
  "handle": "linen-story",
  "status": "ACTIVE",
  "created_at": "2026-11-14T02:22:03Z",
  "updated_at": "2026-11-14T02:22:03Z",
  "definition_id": "01a1d7dc-a0e6-7252-9249-5fd2ab9f0860",
  "template_suffix": null,
  "admin_graphql_api_id": "gid://tanqory/Metaobject/01a1d7dc-a459-73d0-9480-88b252d4225c"
}

order_transactions/create

access scope: read_orders หรือ read_marketplace_orders หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000314001,
  "kind": "SALE",
  "test": true,
  "amount": "540",
  "status": "SUCCESS",
  "gateway": "stripe",
  "user_id": null,
  "order_id": 1000000358001,
  "provider": "stripe",
  "device_id": null,
  "parent_id": null,
  "refund_id": null,
  "created_at": "2026-11-14T17:49:03Z",
  "error_code": null,
  "payment_id": "example-payment-id",
  "updated_at": "2026-11-14T17:49:03Z",
  "location_id": null,
  "gift_card_id": null,
  "processed_at": "2026-11-14T17:49:03Z",
  "receipt_json": {
    "id": "pi_example",
    "amount": 54000,
    "status": "succeeded",
    "currency": "thb",
    "livemode": false,
    "provider": "stripe",
    "idempotency_key": "00000000-0000-4000-8000-000000000000:0"
  },
  "capture_closed": false,
  "charge_currency": null,
  "idempotency_key": "00000000-0000-4000-8000-000000000000:0",
  "payment_details": {
    "name": "",
    "number": "•••• 4242",
    "company": "Example Co.",
    "expiration_year": 2034,
    "expiration_month": 12
  },
  "multi_capturable": false,
  "amount_presentment": "540",
  "authorization_code": null,
  "provider_reference": "pi_example",
  "admin_graphql_api_id": "gid://tanqory/OrderTransaction/01a1db2d-546a-7652-8522-7ef812dcd5c1",
  "payment_connection_id": null,
  "manual_payment_gateway": false,
  "authorization_expires_at": null,
  "customer_payment_method_id": null
}

orders/cancelled

access scope: read_orders หรือ read_marketplace_orders หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000000214001,
  "name": "#1092",
  "note": null,
  "tags": [],
  "test": true,
  "email": "customer@example.com",
  "phone": null,
  "edited": false,
  "number": 1092,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": true,
  "po_number": null,
  "cart_token": "example-cart-token",
  "created_at": "2026-11-13T07:07:16Z",
  "line_items": [
    {
      "id": 19392,
      "sku": null,
      "grams": 300,
      "price": "490",
      "title": "Dev Online Store Tee (edited)",
      "vendor": null,
      "taxable": true,
      "order_id": 1000000214001,
      "position": 0,
      "quantity": 1,
      "tax_lines": [],
      "created_at": "2026-11-13T07:07:16Z",
      "product_id": "01a1b392-e82a-7fb1-b224-b90a421ab176",
      "updated_at": "2026-11-13T07:08:45Z",
      "variant_id": "01a1b392-e86b-7cc1-9942-f129ba919225",
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 0,
      "custom_attributes": [],
      "inventory_item_id": "01a1b392-e88f-7cd1-88af-18ea6237005d",
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 0,
      "fulfillment_service": null,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1d3bb-656a-79d0-9843-07dcdfe09fcf",
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-13T07:08:46Z",
  "customer_id": "01a1d2d9-6800-7d70-b54f-517795cbb53c",
  "source_name": "web",
  "total_price": "540",
  "cancelled_at": "2026-11-13T07:08:45Z",
  "processed_at": "2026-11-13T07:07:16Z",
  "total_weight": 0,
  "cancel_reason": "CUSTOMER",
  "currency_code": "THB",
  "checkout_token": "example-checkout-token",
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "customer_locale": "en",
  "duties_included": false,
  "duties_incoterm": null,
  "status_page_key": "example-status-page-key",
  "financial_status": "refunded",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 0,
  "fulfillment_status": "restocked",
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "K1MNVWR8A",
  "current_total_price": "50",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1d3bb-655b-7743-9472-8a967487e387",
  "original_total_price": "540",
  "payment_gateway_names": [
    "stripe"
  ],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "REFUNDED",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "RESTOCKED",
  "original_total_price_presentment": "540"
}

orders/edited

access scope: read_orders หรือ read_marketplace_orders หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": 1000000052001,
  "name": "#1019",
  "note": null,
  "tags": [],
  "test": false,
  "email": "customer@example.com",
  "phone": null,
  "edited": true,
  "number": 1019,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": true,
  "po_number": null,
  "cart_token": "example-cart-token",
  "created_at": "2026-11-11T01:26:31Z",
  "line_items": [
    {
      "id": "01a1c836-b872-7102-bd1b-580bff7130f7",
      "sku": null,
      "grams": 300,
      "price": "490",
      "title": "Dev Online Store Tee (edited)",
      "vendor": null,
      "taxable": true,
      "order_id": "01a1c836-b82b-73a2-8f24-3fb9850d4c55",
      "position": 0,
      "quantity": 2,
      "tax_lines": [],
      "created_at": "2026-11-11T01:26:31Z",
      "product_id": "01a1b392-e82a-7fb1-b224-b90a421ab176",
      "updated_at": "2026-11-11T01:26:57Z",
      "variant_id": "01a1b392-e86b-7cc1-9942-f129ba919225",
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 2,
      "custom_attributes": [],
      "inventory_item_id": "01a1b392-e88f-7cd1-88af-18ea6237005d",
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 0,
      "fulfillment_service": null,
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-11T01:26:58Z",
  "customer_id": "01a1c836-a8fe-7033-82eb-0abecddda055",
  "source_name": "web",
  "total_price": "1030",
  "cancelled_at": null,
  "processed_at": "2026-11-11T01:26:31Z",
  "total_weight": 600,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": "example-checkout-token",
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "980",
  "taxes_included": false,
  "billing_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "customer_locale": null,
  "status_page_key": "example-status-page-key",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 2,
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "AJ75T4BLJ",
  "current_total_price": "1030",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1c836-b82b-73a2-8f24-3fb9850d4c55",
  "original_total_price": "540",
  "payment_gateway_names": [
    "stripe"
  ],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "PARTIALLY_PAID",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "UNFULFILLED",
  "original_total_price_presentment": "540"
}

orders/fulfilled

access scope: read_orders หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000363001,
  "name": "#1111",
  "note": null,
  "tags": [],
  "test": false,
  "email": null,
  "phone": null,
  "edited": false,
  "number": 1111,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": false,
  "po_number": null,
  "cart_token": null,
  "created_at": "2026-11-14T20:08:02Z",
  "line_items": [
    {
      "id": 19571,
      "sku": null,
      "grams": 500,
      "price": "490",
      "title": "Lane A #32 mug",
      "vendor": null,
      "taxable": true,
      "order_id": 1000000363001,
      "position": 0,
      "quantity": 1,
      "tax_lines": [],
      "created_at": "2026-11-14T20:08:02Z",
      "product_id": null,
      "updated_at": "2026-11-14T20:13:24Z",
      "variant_id": null,
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 1,
      "custom_attributes": [],
      "inventory_item_id": null,
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 1,
      "fulfillment_service": null,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-14T20:13:24Z",
  "customer_id": null,
  "source_name": null,
  "total_price": "490",
  "cancelled_at": null,
  "processed_at": "2026-11-14T20:08:02Z",
  "total_weight": 500,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": null,
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": null,
  "customer_locale": null,
  "duties_included": false,
  "duties_incoterm": null,
  "status_page_key": "example-status-page-key",
  "financial_status": "paid",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 1,
  "fulfillment_status": "fulfilled",
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "BDTUJ3A29",
  "current_total_price": "490",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "original_total_price": "490",
  "payment_gateway_names": [],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "PAID",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "FULFILLED",
  "original_total_price_presentment": "490"
}

orders/paid

access scope: read_orders หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000363001,
  "name": "#1111",
  "note": null,
  "tags": [],
  "test": false,
  "email": null,
  "phone": null,
  "edited": false,
  "number": 1111,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": false,
  "po_number": null,
  "cart_token": null,
  "created_at": "2026-11-14T20:08:02Z",
  "line_items": [
    {
      "id": 19571,
      "sku": null,
      "grams": 500,
      "price": "490",
      "title": "Lane A #32 mug",
      "vendor": null,
      "taxable": true,
      "order_id": 1000000363001,
      "position": 0,
      "quantity": 1,
      "tax_lines": [],
      "created_at": "2026-11-14T20:08:02Z",
      "product_id": null,
      "updated_at": "2026-11-14T20:08:02Z",
      "variant_id": null,
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 1,
      "custom_attributes": [],
      "inventory_item_id": null,
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 0,
      "fulfillment_service": null,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-14T20:08:02Z",
  "customer_id": null,
  "source_name": null,
  "total_price": "490",
  "cancelled_at": null,
  "processed_at": "2026-11-14T20:08:02Z",
  "total_weight": 500,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": null,
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": null,
  "customer_locale": null,
  "duties_included": false,
  "duties_incoterm": null,
  "status_page_key": "example-status-page-key",
  "financial_status": "paid",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 1,
  "fulfillment_status": null,
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "BDTUJ3A29",
  "current_total_price": "490",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "original_total_price": "490",
  "payment_gateway_names": [],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "PAID",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "UNFULFILLED",
  "original_total_price_presentment": "490"
}

orders/partially_fulfilled

access scope: read_orders หรือ read_marketplace_orders เก็บบน Dev เมื่อ 2026-11-12

JSON
{
  "id": 1000000130001,
  "name": "#1066",
  "note": null,
  "tags": [],
  "test": true,
  "email": "customer@example.com",
  "phone": "+66 2 000 0000",
  "edited": false,
  "number": 1066,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": true,
  "po_number": null,
  "cart_token": "example-cart-token",
  "created_at": "2026-11-12T18:12:55Z",
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-12T18:13:50Z",
  "customer_id": "01a1bb2d-0198-70e2-a4eb-822f37fc6f6b",
  "source_name": "web",
  "total_price": "1030",
  "cancelled_at": null,
  "processed_at": "2026-11-12T18:12:55Z",
  "total_weight": 600,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": "example-checkout-token",
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "980",
  "taxes_included": false,
  "billing_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "customer_locale": "en",
  "status_page_key": "example-status-page-key",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH",
    "province_code": "TH-10"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 2,
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "51E3WUBS1",
  "current_total_price": "1030",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1d0f6-7507-75f1-aed7-427806336a33",
  "original_total_price": "1030",
  "payment_gateway_names": [
    "stripe"
  ],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "AUTHORIZED",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "PARTIALLY_FULFILLED",
  "original_total_price_presentment": "1030"
}

orders/updated

access scope: read_orders หรือ read_marketplace_orders หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000363001,
  "name": "#1111",
  "note": null,
  "tags": [],
  "test": false,
  "email": null,
  "phone": null,
  "edited": false,
  "number": 1111,
  "user_id": null,
  "client_ip": null,
  "closed_at": null,
  "confirmed": false,
  "po_number": null,
  "cart_token": null,
  "created_at": "2026-11-14T20:08:02Z",
  "line_items": [
    {
      "id": 19571,
      "sku": null,
      "grams": 500,
      "price": "490",
      "title": "Lane A #32 mug",
      "vendor": null,
      "taxable": true,
      "order_id": 1000000363001,
      "position": 0,
      "quantity": 1,
      "tax_lines": [],
      "created_at": "2026-11-14T20:08:02Z",
      "product_id": null,
      "updated_at": "2026-11-14T20:13:24Z",
      "variant_id": null,
      "is_gift_card": false,
      "variant_title": null,
      "selling_plan_id": null,
      "current_quantity": 1,
      "custom_attributes": [],
      "inventory_item_id": null,
      "price_presentment": "490",
      "requires_shipping": true,
      "selling_plan_name": null,
      "fulfilled_quantity": 1,
      "fulfillment_service": null,
      "admin_graphql_api_id": "gid://tanqory/LineItem/01a1dbac-929b-7483-8f8d-a22eb7c25a7e",
      "discount_allocations": []
    }
  ],
  "source_url": null,
  "tax_exempt": false,
  "tip_amount": "0",
  "updated_at": "2026-11-14T20:13:24Z",
  "customer_id": null,
  "source_name": null,
  "total_price": "490",
  "cancelled_at": null,
  "processed_at": "2026-11-14T20:08:02Z",
  "total_weight": 500,
  "cancel_reason": null,
  "currency_code": "THB",
  "checkout_token": null,
  "discount_codes": [],
  "referring_site": null,
  "subtotal_price": "490",
  "taxes_included": false,
  "billing_address": null,
  "customer_locale": null,
  "duties_included": false,
  "duties_incoterm": null,
  "status_page_key": "example-status-page-key",
  "financial_status": "paid",
  "shipping_address": {
    "zip": "10110",
    "city": "Bangkok",
    "phone": "+66 2 000 0000",
    "address1": "1 Example Road",
    "last_name": "Example",
    "first_name": "Alex",
    "country_code": "TH"
  },
  "custom_attributes": [],
  "source_identifier": null,
  "subtotal_quantity": 1,
  "fulfillment_status": "fulfilled",
  "retail_location_id": null,
  "company_location_id": null,
  "confirmation_number": "BDTUJ3A29",
  "current_total_price": "490",
  "risk_recommendation": null,
  "admin_graphql_api_id": "gid://tanqory/Order/01a1dbac-9255-7d70-b21c-4e280664bd9c",
  "original_total_price": "490",
  "payment_gateway_names": [],
  "tip_amount_presentment": "0",
  "cancellation_staff_note": null,
  "display_financial_status": "PAID",
  "presentment_currency_code": "THB",
  "customer_accepts_marketing": false,
  "display_fulfillment_status": "FULFILLED",
  "original_total_price_presentment": "490"
}

product_listings/add

access scope: read_product_listings เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": 1000003025001,
  "tags": [],
  "title": "ZZ b59 cart check runner",
  "handle": "zz-b59-cart-check-runner",
  "status": "ACTIVE",
  "vendor": "",
  "gift_card": false,
  "seo_title": null,
  "created_at": "2026-11-11T23:17:24Z",
  "updated_at": "2026-11-11T23:17:25Z",
  "category_id": null,
  "product_type": "",
  "published_at": null,
  "seo_description": null,
  "template_suffix": null,
  "description_html": "",
  "featured_media_id": null,
  "admin_graphql_api_id": "gid://tanqory/Product/01a1cce6-dc71-7870-8549-9bf603c04d9b",
  "combined_listing_role": null,
  "requires_selling_plan": false,
  "gift_card_template_suffix": null
}

products/create

access scope: read_products เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000003641001,
  "tags": [],
  "title": "Lane B draft preview tee",
  "handle": "lane-b-draft-preview-tee",
  "status": "DRAFT",
  "vendor": "",
  "gift_card": false,
  "seo_title": null,
  "created_at": "2026-11-14T21:34:17Z",
  "updated_at": "2026-11-14T21:34:17Z",
  "category_id": null,
  "product_type": "",
  "published_at": null,
  "seo_description": null,
  "template_suffix": null,
  "description_html": "<p>Draft for the preview check.</p>",
  "featured_media_id": null,
  "admin_graphql_api_id": "gid://tanqory/Product/01a1dbfb-8a95-7303-89d0-24a864c7de89",
  "combined_listing_role": null,
  "requires_selling_plan": false,
  "gift_card_template_suffix": null
}

products/delete

access scope: read_products เก็บบน Dev เมื่อ 2026-11-13

JSON
{
  "id": 1000003060001,
  "admin_graphql_api_id": "gid://tanqory/Product/01a1d5c1-ec28-78c2-a7b5-5f12850ee7eb"
}

products/update

access scope: read_products เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 3059,
  "tags": [],
  "title": "ZZ rv1 check gift card",
  "handle": "zz-rv1-check-gift-card-1",
  "status": "ACTIVE",
  "vendor": "",
  "gift_card": true,
  "seo_title": null,
  "created_at": "2026-11-08T12:15:39Z",
  "updated_at": "2026-11-14T19:30:19Z",
  "category_id": "gc",
  "product_type": "",
  "published_at": null,
  "seo_description": null,
  "template_suffix": null,
  "description_html": "",
  "featured_media_id": null,
  "admin_graphql_api_id": "gid://tanqory/Product/01a1bb15-eff2-74c0-ab67-2e55a8370bee",
  "combined_listing_role": null,
  "requires_selling_plan": false,
  "gift_card_template_suffix": null
}

refunds/create

access scope: read_orders หรือ read_marketplace_orders หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000049001,
  "note": "Example note",
  "order_id": 1000000341001,
  "created_at": "2026-11-14T13:08:23Z",
  "order_name": "#1098",
  "updated_at": "2026-11-14T13:08:23Z",
  "processed_at": "2026-11-14T13:08:23Z",
  "shipping_tax": "0",
  "transactions": [
    {
      "id": 1000000305001,
      "kind": "refund",
      "test": true,
      "amount": "490",
      "status": "pending",
      "gateway": "adyen",
      "user_id": null,
      "order_id": 1000000341001,
      "provider": "adyen",
      "device_id": null,
      "parent_id": "01a1d9ab-cd42-74d3-af36-dffdb8452010",
      "refund_id": 1000000049001,
      "created_at": "2026-11-14T13:08:23Z",
      "error_code": null,
      "payment_id": "example-payment-id",
      "updated_at": "2026-11-14T13:08:23Z",
      "location_id": null,
      "gift_card_id": null,
      "processed_at": "2026-11-14T13:08:23Z",
      "receipt_json": {
        "key": "example-key",
        "kind": "refund",
        "amount": "490.00",
        "status": "received",
        "currency": "THB",
        "provider": "adyen",
        "provider_id": "EXAMPLEPSPREF001",
        "payment_psp_reference": "EXAMPLEPSPREF001"
      },
      "capture_closed": false,
      "charge_currency": null,
      "idempotency_key": "00000000-0000-4000-8000-000000000000:0",
      "payment_details": null,
      "multi_capturable": false,
      "amount_presentment": "490",
      "authorization_code": null,
      "provider_reference": "pi_example",
      "admin_graphql_api_id": "gid://tanqory/OrderTransaction/01a1da2c-5e2d-7d31-836e-8a6533492d44",
      "payment_connection_id": "01a1d992-aae1-73a8-b1d4-e421d8e1daaf",
      "manual_payment_gateway": false,
      "authorization_expires_at": null,
      "customer_payment_method_id": null
    }
  ],
  "shipping_amount": "0",
  "refund_line_items": [],
  "store_credit_amount": "0",
  "admin_graphql_api_id": "gid://tanqory/Refund/01a1da2c-5dc0-7632-8ff2-bcedd3817054",
  "shipping_tax_presentment": "0",
  "shipping_amount_presentment": "0"
}

returns/approve

access scope: read_returns หรือ read_marketplace_returns หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": "01a1c83d-c28d-7491-9e15-626e43b1575b",
  "seq": 2,
  "name": "#1019-R1",
  "number": 1,
  "status": "OPEN",
  "order_id": "01a1c836-b82b-73a2-8f24-3fb9850d4c55",
  "closed_at": null,
  "created_at": "2026-11-11T01:34:13Z",
  "line_items": [
    {
      "id": "01a1c83d-c28d-7491-9e15-62862969c7e4",
      "seq": 2,
      "quantity": 1,
      "return_id": "01a1c83d-c28d-7491-9e15-626e43b1575b",
      "created_at": "2026-11-11T01:34:13Z",
      "updated_at": "2026-11-11T01:34:13Z",
      "line_item_id": "01a1c836-b872-7102-bd1b-580bff7130f7",
      "customer_note": "notify proof: first return request",
      "refunded_quantity": 0,
      "processed_quantity": 0,
      "return_reason_note": "",
      "fulfillment_line_item_id": "01a1c83b-bf10-7d02-85ba-6fb9935810ea",
      "restocking_fee_percentage": null,
      "return_reason_definition_id": "01a1b86a-f541-70c2-90aa-b2cd6ea054ca"
    }
  ],
  "updated_at": "2026-11-11T01:34:31Z",
  "decline_note": null,
  "requested_at": "2026-11-11T01:34:13Z",
  "shipping_fees": [],
  "decline_reason": null,
  "exchange_line_items": [],
  "request_approved_at": "2026-11-11T01:34:31Z",
  "admin_graphql_api_id": "gid://tanqory/Return/01a1c83d-c28d-7491-9e15-626e43b1575b"
}

returns/decline

access scope: read_returns หรือ read_marketplace_returns หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": "01a1c83e-2b39-7322-bb1f-23f1dffcc913",
  "seq": 3,
  "name": "#1019-R2",
  "number": 2,
  "status": "DECLINED",
  "order_id": "01a1c836-b82b-73a2-8f24-3fb9850d4c55",
  "closed_at": null,
  "created_at": "2026-11-11T01:34:39Z",
  "line_items": [
    {
      "id": "01a1c83e-2b39-7322-bb1f-2411dc391407",
      "seq": 3,
      "quantity": 1,
      "return_id": "01a1c83e-2b39-7322-bb1f-23f1dffcc913",
      "created_at": "2026-11-11T01:34:39Z",
      "updated_at": "2026-11-11T01:34:39Z",
      "line_item_id": "01a1c836-b872-7102-bd1b-580bff7130f7",
      "customer_note": "notify proof: second return request",
      "refunded_quantity": 0,
      "processed_quantity": 0,
      "return_reason_note": "",
      "fulfillment_line_item_id": "01a1c83b-bf10-7d02-85ba-6fb9935810ea",
      "restocking_fee_percentage": null,
      "return_reason_definition_id": "01a1b86a-f541-70c2-90aa-b314419cc12c"
    }
  ],
  "updated_at": "2026-11-11T01:34:47Z",
  "decline_note": "This item was already returned once.",
  "requested_at": "2026-11-11T01:34:39Z",
  "shipping_fees": [],
  "decline_reason": "FINAL_SALE",
  "exchange_line_items": [],
  "request_approved_at": null,
  "admin_graphql_api_id": "gid://tanqory/Return/01a1c83e-2b39-7322-bb1f-23f1dffcc913"
}

returns/request

access scope: read_returns หรือ read_marketplace_returns หรือ read_buyer_membership_orders เก็บบน Dev เมื่อ 2026-11-11

JSON
{
  "id": "01a1c852-8fe2-7123-b9d3-e7d21b7a4158",
  "seq": 4,
  "name": "#1026-R1",
  "number": 1,
  "status": "REQUESTED",
  "order_id": "01a1c852-8c0a-7593-9ca7-4f0f4234988f",
  "closed_at": null,
  "created_at": "2026-11-11T01:56:56Z",
  "line_items": [
    {
      "id": "01a1c852-8fe2-7123-b9d3-e7f165788e07",
      "seq": 4,
      "quantity": 1,
      "return_id": "01a1c852-8fe2-7123-b9d3-e7d21b7a4158",
      "created_at": "2026-11-11T01:56:56Z",
      "updated_at": "2026-11-11T01:56:56Z",
      "line_item_id": "01a1c852-8c14-7fa0-9bee-f9a90c860fe6",
      "customer_note": "notify proof: return at Chiang Mai",
      "refunded_quantity": 0,
      "processed_quantity": 0,
      "return_reason_note": "",
      "fulfillment_line_item_id": "01a1c852-8cb8-78c0-a881-e679a5af5ea3",
      "restocking_fee_percentage": null,
      "return_reason_definition_id": "01a1b86a-f541-70c2-90aa-b314419cc12c"
    }
  ],
  "updated_at": "2026-11-11T01:56:56Z",
  "decline_note": null,
  "requested_at": "2026-11-11T01:56:56Z",
  "shipping_fees": [],
  "decline_reason": null,
  "exchange_line_items": [],
  "request_approved_at": null,
  "admin_graphql_api_id": "gid://tanqory/Return/01a1c852-8fe2-7123-b9d3-e7d21b7a4158"
}

shop/update

ไม่ต้องใช้ access scope เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": "01a1b37f-0000-7000-8000-000000000001",
  "name": "My Store",
  "email": "customer@example.com",
  "handle": "example-store",
  "created_at": "2026-11-07T00:54:06Z",
  "updated_at": "2026-11-13T06:23:02Z",
  "unit_system": null,
  "weight_unit": null,
  "country_code": "TH",
  "shop_address": {
    "zip": "10110",
    "city": "Bangkok",
    "address1": "1 Example Road",
    "province_code": "TH-10"
  },
  "contact_email": "customer@example.com",
  "currency_code": "THB",
  "iana_timezone": "Asia/Bangkok",
  "primary_locale": "en",
  "billing_address": null,
  "currency_formats": null,
  "customer_accounts": "OPTIONAL",
  "plan_display_name": "Business",
  "backup_region_code": null,
  "order_auto_archive": true,
  "order_auto_fulfill": "NONE",
  "partner_development": false,
  "segment_defaults_at": "2026-11-07T02:21:36Z",
  "admin_graphql_api_id": "gid://tanqory/Shop/01a1b37f-0000-7000-8000-000000000001",
  "customer_returns_enabled": true,
  "customer_buy_again_enabled": true,
  "order_number_format_prefix": "#",
  "order_number_format_suffix": "",
  "transactional_sms_disabled": false,
  "customer_store_credit_enabled": true,
  "customer_cancellations_enabled": true,
  "marketing_sms_consent_enabled_at_checkout": false
}

tender_transactions/create

access scope: read_orders เก็บบน Dev เมื่อ 2026-11-14

JSON
{
  "id": 1000000314001,
  "kind": "SALE",
  "test": true,
  "amount": "540",
  "status": "SUCCESS",
  "gateway": "stripe",
  "user_id": null,
  "order_id": 1000000358001,
  "provider": "stripe",
  "device_id": null,
  "parent_id": null,
  "refund_id": null,
  "created_at": "2026-11-14T17:49:03Z",
  "error_code": null,
  "payment_id": "example-payment-id",
  "updated_at": "2026-11-14T17:49:03Z",
  "location_id": null,
  "gift_card_id": null,
  "processed_at": "2026-11-14T17:49:03Z",
  "receipt_json": {
    "id": "pi_example",
    "amount": 54000,
    "status": "succeeded",
    "currency": "thb",
    "livemode": false,
    "provider": "stripe",
    "idempotency_key": "00000000-0000-4000-8000-000000000000:0"
  },
  "capture_closed": false,
  "charge_currency": null,
  "idempotency_key": "00000000-0000-4000-8000-000000000000:0",
  "payment_details": {
    "name": "",
    "number": "•••• 4242",
    "company": "Example Co.",
    "expiration_year": 2034,
    "expiration_month": 12
  },
  "multi_capturable": false,
  "amount_presentment": "540",
  "authorization_code": null,
  "provider_reference": "pi_example",
  "admin_graphql_api_id": "gid://tanqory/TenderTransaction/01a1db2d-546a-7652-8522-7ef812dcd5c1",
  "payment_connection_id": null,
  "manual_payment_gateway": false,
  "authorization_expires_at": null,
  "customer_payment_method_id": null
}

หัวข้อที่ยังไม่มีตัวอย่าง

หัวข้อเหล่านี้ยังไม่เคยเกิดในร้านทดสอบ จึงยังไม่มี body จริงให้ดู body ของหัวข้อเหล่านี้ใช้กฎเดียวกัน คือ resource ของเหตุการณ์ตาม field ด้านบน สมัครรับหัวข้อแล้วบันทึก body ที่ endpoint ได้รับ (หน้า Logs ของแอปบันทึกแต่ละครั้งที่ส่ง ไม่บันทึก body) หรือขอตัวอย่างทาง support@tanqory.com

หัวข้อAccess scope
app_purchases_one_time/updateไม่มี
app_subscriptions/approaching_capped_amountไม่มี
app_subscriptions/updateไม่มี
app/scopes_updateไม่มี
app/uninstalledไม่มี
attributed_sessions/firstread_marketing_events
attributed_sessions/lastread_marketing_events
audit_events/admin_api_activityread_audit_events
carts/createread_orders
carts/updateread_orders
channels/deleteread_publications
checkout_and_accounts_configurations/updateไม่มี
checkouts/createread_orders
checkouts/deleteread_orders
checkouts/updateread_orders
collection_listings/removeread_product_listings
collection_listings/updateread_product_listings
collection_publications/createread_publications
collection_publications/deleteread_publications
collection_publications/updateread_publications
companies/updateread_customers, read_companies
company_contact_roles/assignread_customers, read_companies
company_contact_roles/revokeread_customers, read_companies
company_contacts/createread_customers, read_companies
company_contacts/deleteread_customers, read_companies
company_contacts/updateread_customers, read_companies
company_locations/deleteread_customers, read_companies
company_locations/updateread_customers, read_companies
customer_account_settings/updateไม่มี
customer_groups/createread_customers
customer_groups/deleteread_customers
customer_groups/updateread_customers
customer_payment_methods/createread_customer_payment_methods
customer_payment_methods/revokeread_customer_payment_methods
customer_payment_methods/updateread_customer_payment_methods
customer.joined_segmentread_customers
customer.left_segmentread_customers
customers_marketing_consent/updateread_customers
customers_whats_app_marketing_consent/updateread_customers
customers/disableread_customers
customers/mergeread_customer_merge
customers/purchasing_summaryread_customers
delivery_promise_settings/updateread_shipping
discounts/redeemcode_addedread_discounts
discounts/redeemcode_removedread_discounts
finance_app_staff_member/deleteread_financial_kyc_information
finance_app_staff_member/grantread_financial_kyc_information
finance_app_staff_member/revokeread_financial_kyc_information
finance_app_staff_member/updateread_financial_kyc_information
finance_kyc_information/updateread_financial_kyc_information
fulfillment_events/deleteread_fulfillments
fulfillment_holds/addedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_holds/releasedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/cancellation_request_acceptedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/cancellation_request_rejectedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/cancellation_request_submittedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/cancelledread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/fulfillment_request_acceptedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/fulfillment_request_rejectedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/fulfillment_request_submittedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/fulfillment_service_failed_to_completeread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/hold_releasedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/line_items_prepared_for_local_deliveryread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/manually_reported_progress_stoppedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders
fulfillment_orders/mergedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders
fulfillment_orders/order_routing_completeread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_buyer_membership_orders, read_marketplace_fulfillment_orders
fulfillment_orders/placed_on_holdread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/progress_reportedread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders
fulfillment_orders/rescheduledread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/scheduled_fulfillment_order_readyread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders, read_marketplace_fulfillment_orders
fulfillment_orders/splitread_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders
inventory_items/createread_inventory, read_products
inventory_items/deleteread_inventory, read_products
inventory_items/updateread_inventory, read_products
inventory_levels/disconnectread_inventory
inventory_shipments/add_itemsread_inventory_shipments
inventory_shipments/createread_inventory_shipments
inventory_shipments/deleteread_inventory_shipments
inventory_shipments/mark_in_transitread_inventory_shipments
inventory_shipments/receive_itemsread_inventory_shipments_received_items
inventory_shipments/remove_itemsread_inventory_shipments
inventory_shipments/update_item_quantitiesread_inventory_shipments
inventory_shipments/update_trackingread_inventory_shipments
inventory_transfers/add_itemsread_inventory_transfers
inventory_transfers/cancelread_inventory_transfers
inventory_transfers/completeread_inventory_transfers
inventory_transfers/ready_to_shipread_inventory_transfers
inventory_transfers/remove_itemsread_inventory_transfers
inventory_transfers/update_item_quantitiesread_inventory_transfers
inventory_transfers/updatedread_inventory_transfers
locations/activateread_locations
locations/createread_locations
locations/deactivateread_locations
locations/deleteread_locations
locations/updateread_locations
machine_translation_batch/completedไม่มี
markets_backup_region/updateread_markets
metafield_definitions/createread_content
metafield_definitions/deleteread_content
metafield_definitions/updateread_content
metaobjects/deleteread_metaobjects
metaobjects/updateread_metaobjects
orders/deleteread_orders
orders/link_requestedread_orders, read_marketplace_orders, read_buyer_membership_orders
orders/risk_assessment_changedread_orders
orders/tanqory_protect_eligibility_changedread_orders
payment_schedules/dueread_payment_terms
payment_terms/createread_payment_terms
payment_terms/deleteread_payment_terms
payment_terms/updateread_payment_terms
product_feeds/createread_product_listings
product_feeds/full_syncread_product_listings
product_feeds/full_sync_finishread_product_listings
product_feeds/incremental_syncread_product_listings
product_feeds/updateread_product_listings
product_listings/removeread_product_listings
product_listings/updateread_product_listings
product_publications/createread_publications
product_publications/deleteread_publications
product_publications/updateread_publications
profiles/createread_shipping, read_assigned_shipping
profiles/deleteread_shipping, read_assigned_shipping
profiles/updateread_shipping, read_assigned_shipping
publications/deleteread_publications
requested_order_edit/createdread_orders, read_marketplace_orders, read_buyer_membership_orders
requested_order_edit/declinedread_orders, read_marketplace_orders, read_buyer_membership_orders
requested_order_edit/resolvedread_orders, read_marketplace_orders, read_buyer_membership_orders
returns/cancelread_orders, read_marketplace_orders, read_returns, read_marketplace_returns, read_buyer_membership_orders
returns/closeread_orders, read_marketplace_orders, read_returns, read_marketplace_returns, read_buyer_membership_orders
returns/processread_returns, read_marketplace_returns, read_buyer_membership_orders
returns/reopenread_orders, read_marketplace_orders, read_returns, read_marketplace_returns, read_buyer_membership_orders
returns/updateread_returns, read_marketplace_returns, read_buyer_membership_orders
reverse_deliveries/attach_deliverableread_returns, read_marketplace_returns
reverse_fulfillment_orders/disposeread_returns, read_marketplace_returns
rollouts/createread_rollouts
rollouts/deleteread_rollouts
rollouts/resource_change_addedread_rollouts
rollouts/resource_change_removedread_rollouts
rollouts/resource_change_updatedread_rollouts
rollouts/updateread_rollouts
scheduled_product_listings/addread_product_listings
scheduled_product_listings/removeread_product_listings
scheduled_product_listings/updateread_product_listings
segments/createread_customers
segments/deleteread_customers
segments/updateread_customers
selling_plan_groups/createread_products
selling_plan_groups/deleteread_products
selling_plan_groups/updateread_products
shipping_addresses/createread_shipping
shipping_addresses/updateread_shipping
subscription_billing_attempts/challengedread_own_subscription_contracts
subscription_billing_attempts/failureread_own_subscription_contracts
subscription_billing_attempts/successread_own_subscription_contracts
subscription_billing_cycle_edits/createread_own_subscription_contracts
subscription_billing_cycle_edits/deleteread_own_subscription_contracts
subscription_billing_cycle_edits/updateread_own_subscription_contracts
subscription_billing_cycles/skipread_own_subscription_contracts
subscription_billing_cycles/unskipread_own_subscription_contracts
subscription_contract_calculations/failread_own_subscription_contracts
subscription_contract_calculations/succeedread_own_subscription_contracts
subscription_contracts/activateread_own_subscription_contracts
subscription_contracts/cancelread_own_subscription_contracts
subscription_contracts/createread_own_subscription_contracts
subscription_contracts/expireread_own_subscription_contracts
subscription_contracts/failread_own_subscription_contracts
subscription_contracts/pauseread_own_subscription_contracts
subscription_contracts/updateread_own_subscription_contracts
tanqory_ai_credits/grantedread_billing
tanqory_ai_credits/thresholdread_billing
tax_partners/updateread_taxes
tax_services/createread_taxes
tax_services/updateread_taxes
tax_summaries/createread_fulfillments, read_marketplace_orders, read_orders
themes/createread_themes
themes/deleteread_themes
themes/publishread_themes
themes/updateread_themes
variants/in_stockread_products
variants/out_of_stockread_products

สร้างจาก commit c0b3fb3fdef7 · เวอร์ชัน API 2026-10