Shopify Admin API
  1. Order
Shopify Admin API
  • Customers
    • Customer Address
      • Retrieves a list of addresses for a customer
      • Creates a new address for a customer
      • Retrieves details for a single customer address
      • Updates an existing customer address
      • Removes an address from a customer’s address list
      • Performs bulk operations for multiple customer addresses
      • Sets the default address for a customer
    • CustomerSavedSearch
      • Retrieves a list of customer saved searches
      • Creates a customer saved search
      • Retrieves a count of all customer saved searches
      • Retrieves a single customer saved search
      • Updates a customer saved search
      • Deletes a customer saved search
      • Retrieves all customers returned by a customer saved search
    • Customer
      • Retrieves a list of customers
      • Creates a customer
      • Searches for customers that match a supplied query
      • Retrieves a single customer
      • Updates a customer
      • Deletes a customer
      • Creates an account activation URL for a customer
      • Sends an account invite to a customer
      • Retrieves a count of customers
      • Retrieves all orders that belong to a customer
  • Sales channels
    • Checkout
      • Creates a checkout
      • Completes a checkout
      • Retrieves a checkout
      • Modifies an existing checkout
      • Retrieves a list of shipping rates
    • CollectionListing
      • Retrieve collection listings that are published to your app
      • Retrieve product_ids that are published to a collection_id
      • Retrieve a specific collection listing that is published to your app
      • Create a collection listing to publish a collection to your app
      • Delete a collection listing to unpublish a collection from your app
    • Product ResourceFeedback
      • Create a new Product ResourceFeedback
      • Receive a list of all Product ResourceFeedbacks
    • MobilePlatformApplication
      • List all of the mobile platform applications associated with the app
      • Create a mobile platform application
      • Get a mobile platform application
      • Update a mobile platform application
      • Delete a mobile platform application
    • ProductListing
      • Retrieve product listings that are published to your app
      • Retrieve product_ids that are published to your app
      • Retrieve a count of products that are published to your app
      • Retrieve a specific product listing that is published to your app
      • Create a product listing to publish a product to your app
      • Delete a product listing to unpublish a product from your app
    • ResourceFeedback
      • Create a new ResourceFeedback
      • Receive a list of all ResourceFeedbacks
    • Payment
      • Creates a new payment
      • Retrieves a list of payments on a particular checkout
      • Retrieves a single payment
      • Counts the number of payments attempted on a checkout
  • Products
    • Collect
      • Adds a product to a custom collection
      • Retrieves a list of collects
      • Removes a product from a collection
      • Retrieves a specific collect by its ID
      • Retrieves a count of collects
    • Collection
      • Retrieves a single collection
      • Retrieve a list of products belonging to a collection
    • CustomCollection
      • Retrieves a list of custom collections
      • Creates a custom collection
      • Retrieves a count of custom collections
      • Retrieves a single custom collection
      • Updates an existing custom collection
      • Deletes a custom collection
    • Product
      • Retrieve a list of products
      • Create a new product
      • Retrieve a count of products
      • Retrieve a single product
      • Updates a product
      • Delete a product
    • Product Image
      • Receive a list of all Product Images
      • Create a new Product Image
      • Receive a count of all Product Images
      • Receive a single Product Image
      • Modify an existing Product Image
      • Remove an existing Product Image
    • Product Variant
      • Retrieves a list of product variants
      • Create a new Product Variant
      • Receive a count of all Product Variants
      • Receive a single Product Variant
      • Modify an existing Product Variant
      • Remove an existing Product Variant
    • SmartCollection
      • Retrieves a list of smart collections
      • Creates a smart collection
      • Retrieves a count of smart collections
      • Retrieves a single smart collection
      • Updates an existing smart collection
      • Removes a smart collection
      • Updates the ordering type of products in a smart collection
  • Orders
    • Abandoned checkouts
      • Retrieves a list of abandoned checkouts
    • DraftOrder
      • Create a new DraftOrder
      • Retrieves a list of draft orders
      • Modify an existing DraftOrder
      • Receive a single DraftOrder
      • Remove an existing DraftOrder
      • Receive a count of all DraftOrders
      • Send an invoice
      • Complete a draft order
    • Order Risk
      • Creates an order risk for an order
      • Retrieves a list of all order risks for an order
      • Retrieves a single order risk by its ID
      • Updates an order risk
      • Deletes an order risk for an order
    • Transaction
      • Retrieves a list of transactions
      • Creates a transaction for an order
      • Retrieves a count of an order's transactions
      • Retrieves a specific transaction
    • Order
      • Retrieve a list of orders
        GET
      • Create an order
        POST
      • Retrieve a specific order
        GET
      • Update an order
        PUT
      • Delete an order
        DELETE
      • Retrieve an order count
        GET
      • Close an order
        POST
      • Re-open a closed order
        POST
      • Cancel an order
        POST
    • Refund
      • Retrieves a list of refunds for an order
      • Creates a refund
      • Retrieves a specific refund
      • Calculates a refund
  • Access
    • AccessScope
      • Get a list of access scopes
    • StorefrontAccessToken
      • Creates a new StorefrontAccessToken
      • Retrieves a list of storefront access tokens that have been issued
      • Deletes an existing storefront access token
  • Billing
    • ApplicationCredit
      • Creates an application credit
      • Retrieves all application credits
      • Retrieves a single application credit
    • ApplicationCharge
      • Creates an application charge
      • Retrieves a list of application charges
      • Retrieves an application charge
    • UsageCharge
      • Creates a usage charge
      • Retrieves a list of usage charges
      • Retrieves a single charge
    • RecurringApplicationCharge
      • Creates a recurring application charge
      • Retrieves a list of recurring application charges
      • Retrieves a single charge
      • Cancels a recurring application charge
      • Updates the capped amount of a recurring application charge
  • Online store
    • Asset
      • Retrieves a single asset for a theme
      • Creates or updates an asset for a theme
      • Deletes an asset from a theme
    • Blog
      • Retrieve a list of all blogs
      • Create a new Blog
      • Receive a count of all Blogs
      • Receive a single Blog
      • Modify an existing Blog
      • Remove an existing Blog
    • Article
      • Retrieves a list of all articles from a blog
      • Creates an article for a blog
      • Retrieves a count of all articles from a blog
      • Receive a single Article
      • Updates an article
      • Deletes an article
      • Retrieves a list of all article authors
      • Retrieves a list of all article tags
      • Retrieves a list of all article tags from a specific blog
    • Redirect
      • Retrieves a list of URL redirects
      • Creates a redirect
      • Retrieves a count of URL redirects
      • Retrieves a single redirect
      • Updates an existing redirect
      • Deletes a redirect
    • Comment
      • Retrieves a list of comments
      • Creates a comment for an article
      • Retrieves a count of comments
      • Retrieves a single comment by its ID
      • Updates a comment of an article
      • Marks a comment as spam
      • Marks a comment as not spam
      • Approves a comment
      • Removes a comment
      • Restores a previously removed comment
    • ScriptTag
      • Retrieves a list of all script tags
      • Creates a new script tag
      • Retrieves a count of all script tags
      • Retrieves a single script tag
      • Updates a script tag
      • Deletes a script tag
    • Page
      • Retrieves a list of pages
      • Creates a page
      • Retrieves a page count
      • Retrieves a single page by its ID
      • Updates a page
      • Deletes a page
    • Theme
      • Retrieves a list of themes
      • Creates a theme
      • Retrieves a single theme by its ID
      • Modify an existing Theme
      • Remove an existing Theme
  • Shipping and fulfillment
    • CancellationRequest
      • Sends a cancellation request
      • Accepts a cancellation request
      • Rejects a cancellation request
    • CarrierService
      • Create a new CarrierService
      • Receive a list of all CarrierServices
      • Modify an existing CarrierService
      • Receive a single CarrierService
      • Remove an existing CarrierService
    • AssignedFulfillmentOrder
      • Retrieves a list of fulfillment orders on a shop for a specific app
    • FulfillmentEvent
      • Retrieves a list of fulfillment events for a specific fulfillment
      • Creates a fulfillment event
      • Retrieves a specific fulfillment event
      • Deletes a fulfillment event
    • Fulfillment
      • Retrieves fulfillments associated with an order
      • Retrieves fulfillments associated with a fulfillment order
      • Retrieves a count of fulfillments associated with a specific order
      • Receive a single Fulfillment
      • Creates a fulfillment for one or many fulfillment orders
      • Updates the tracking information for a fulfillment
      • Cancels a fulfillment
    • FulfillmentOrder
      • Retrieves a list of fulfillment orders for a specific order
      • Retrieves a specific fulfillment order
      • Cancel a fulfillment order
      • Marks a fulfillment order as incomplete
      • Moves a fulfillment order to a new location
      • Marks the fulfillment order as open
      • Reschedules the fulfill_at time of a scheduled fulfillment order
      • Applies a fulfillment hold on an open fulfillment order
      • Sets deadline for fulfillment orders
      • Releases the fulfillment hold on a fulfillment order
    • LocationsForMove
      • Retrieves a list of locations that a fulfillment order can potentially move to.
    • FulfillmentRequest
      • Sends a fulfillment request
      • Accepts a fulfillment request
      • Rejects a fulfillment request
    • FulfillmentService
      • Receive a list of all FulfillmentServices
      • Create a new FulfillmentService
      • Receive a single FulfillmentService
      • Modify an existing FulfillmentService
      • Remove an existing FulfillmentService
  • Shopify Payments
    • Balance
      • Return the current balance
    • Dispute
      • Return a list of all disputes
      • Return a single dispute
    • Payouts
      • Return a list of all payouts
      • Return a single payout
    • Transactions
      • Return a list of all balance transactions
  • Analytics
    • Report
      • Retrieves a list of reports
      • Creates a new report
      • Retrieves a single report
      • Updates a report
      • Deletes a report
  • Deprecated API calls
    • Deprecated API calls
      • Retrieves a list of deprecated API calls
  • Discounts
    • DiscountCode
      • Creates a discount code
      • Retrieves a list of discount codes
      • Updates an existing discount code
      • Retrieves a single discount code
      • Deletes a discount code
      • Retrieves the location of a discount code
      • Retrieves a count of discount codes for a shop
      • Creates a discount code creation job
      • Retrieves a discount code creation job
      • Retrieves a list of discount codes for a discount code creation job
    • PriceRule
      • Creates a price rule
      • Retrieves a list of price rules
      • Updates an existing a price rule
      • Retrieves a single price rule
      • Remove an existing PriceRule
      • Retrieves a count of all price rules
  • Inventory
    • InventoryItem
      • Retrieves a detailed list for inventory items by IDs
      • Retrieves a single inventory item by ID
      • Updates an existing inventory item
    • Location
      • Retrieve a list of locations
      • Retrieve a single location by its ID
      • Retrieve a count of locations
      • Retrieve a list of inventory levels for a location
    • InventoryLevel
      • Retrieves a list of inventory levels
      • Deletes an inventory level from a location
      • Adjusts the inventory level of an inventory item at a location
      • Connects an inventory item to a location
      • Sets the inventory level for an inventory item at a location
  • Events
    • Event
      • Retrieves a list of events
      • Retrieves a single event
      • Retrieves a count of events
    • Webhook
      • Retrieves a list of webhooks
      • Create a new Webhook
      • Receive a count of all Webhooks
      • Receive a single Webhook
      • Modify an existing Webhook
      • Remove an existing Webhook
  • MarketingEvent
    • MarketingEvent
      • Retrieves a list of all marketing events
      • Creates a marketing event
      • Retrieves a count of all marketing events
      • Retrieves a single marketing event
      • Updates a marketing event
      • Deletes a marketing event
      • Creates marketing engagements on a marketing event
  • Metafield
    • Metafield
      • Retrieve a list of metafields from the resource's endpoint
      • Create a metafield
      • Retrieve a list of metafields by using query parameters
      • Retrieve a count of a resource's metafields.
      • Retrieve a specific metafield
      • Updates a metafield
      • Deletes a metafield by its ID
  • Plus
    • Gift Card
      • Retrieves a list of gift cards
      • Creates a gift card
      • Retrieves a single gift card
      • Updates an existing gift card
      • Retrieves a count of gift cards
      • Disables a gift card
      • Searches for gift cards
    • User
      • Retrieves a list of all users
      • Retrieves a single user
      • Retrieves the currently logged-in user
  • Store properties
    • Country
      • Receive a list of all Countries
      • Creates a country
      • Retrieves a count of countries
      • Retrieves a specific county
      • Updates an existing country
      • Remove an existing Country
    • Currency
      • Retrieves a list of currencies enabled on a shop
    • Policy
      • Retrieves a list of the shop's policies
    • ShippingZone
      • Receive a list of all ShippingZones
    • Province
      • Retrieves a list of provinces for a country
      • Retrieves a count of provinces for a country
      • Retrieves a single province for a country
      • Updates an existing province for a country
    • Shop
      • Retrieves the shop's configuration
  • TenderTransaction
    • TenderTransaction
      • Retrieves a list of tender transactions
  1. Order

Update an order

PUT
/admin/api/{api_version}/orders/{order_id}.json
This operation allows for updating properties of an order including buyer_accepts_marketing, email, phone, note, tags, metafields and shipping_address_attributes. It is not for editing the items of an order.

请求参数

Path 参数

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://demo.myshopify.com//admin/api//orders/.json'

返回响应

🟢200Update an order
application/json
Body

示例
{
    "order": {
        "id": 450789469,
        "admin_graphql_api_id": "gid://shopify/Order/450789469",
        "app_id": null,
        "browser_ip": "0.0.0.0",
        "buyer_accepts_marketing": false,
        "cancel_reason": null,
        "cancelled_at": null,
        "cart_token": "68778783ad298f1c80c3bafcddeea02f",
        "checkout_id": 901414060,
        "checkout_token": "bd5a8aa1ecd019dd3520ff791ee3a24c",
        "client_details": {
            "accept_language": null,
            "browser_height": null,
            "browser_ip": "0.0.0.0",
            "browser_width": null,
            "session_hash": null,
            "user_agent": null
        },
        "closed_at": null,
        "confirmed": true,
        "contact_email": "bob.norman@mail.example.com",
        "created_at": "2008-01-10T11:00:00-05:00",
        "currency": "USD",
        "current_subtotal_price": "195.67",
        "current_subtotal_price_set": {
            "shop_money": {
                "amount": "195.67",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "195.67",
                "currency_code": "USD"
            }
        },
        "current_total_discounts": "3.33",
        "current_total_discounts_set": {
            "shop_money": {
                "amount": "3.33",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "3.33",
                "currency_code": "USD"
            }
        },
        "current_total_duties_set": null,
        "current_total_price": "199.65",
        "current_total_price_set": {
            "shop_money": {
                "amount": "199.65",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "199.65",
                "currency_code": "USD"
            }
        },
        "current_total_tax": "3.98",
        "current_total_tax_set": {
            "shop_money": {
                "amount": "3.98",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "3.98",
                "currency_code": "USD"
            }
        },
        "customer_locale": null,
        "device_id": null,
        "discount_codes": [
            {
                "code": "TENOFF",
                "amount": "10.00",
                "type": "fixed_amount"
            }
        ],
        "email": "bob.norman@mail.example.com",
        "estimated_taxes": false,
        "financial_status": "partially_refunded",
        "fulfillment_status": null,
        "gateway": "authorize_net",
        "landing_site": "http://www.example.com?source=abc",
        "landing_site_ref": "abc",
        "location_id": null,
        "name": "#1001",
        "note": null,
        "note_attributes": [
            {
                "name": "custom engraving",
                "value": "Happy Birthday"
            },
            {
                "name": "colour",
                "value": "green"
            }
        ],
        "number": 1,
        "order_number": 1001,
        "order_status_url": "https://jsmith.myshopify.com/548380009/orders/b1946ac92492d2347c6235b4d2611184/authenticate?key=imasecretipod",
        "original_total_duties_set": null,
        "payment_gateway_names": [
            "bogus"
        ],
        "phone": "+557734881234",
        "presentment_currency": "USD",
        "processed_at": "2008-01-10T11:00:00-05:00",
        "processing_method": "direct",
        "reference": "fhwdgads",
        "referring_site": "http://www.otherexample.com",
        "source_identifier": "fhwdgads",
        "source_name": "web",
        "source_url": null,
        "subtotal_price": "597.00",
        "subtotal_price_set": {
            "shop_money": {
                "amount": "597.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "597.00",
                "currency_code": "USD"
            }
        },
        "tags": "",
        "tax_lines": [
            {
                "price": "11.94",
                "rate": 0.06,
                "title": "State Tax",
                "price_set": {
                    "shop_money": {
                        "amount": "11.94",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "11.94",
                        "currency_code": "USD"
                    }
                },
                "channel_liable": null
            }
        ],
        "taxes_included": false,
        "test": false,
        "token": "b1946ac92492d2347c6235b4d2611184",
        "total_discounts": "10.00",
        "total_discounts_set": {
            "shop_money": {
                "amount": "10.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "10.00",
                "currency_code": "USD"
            }
        },
        "total_line_items_price": "597.00",
        "total_line_items_price_set": {
            "shop_money": {
                "amount": "597.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "597.00",
                "currency_code": "USD"
            }
        },
        "total_outstanding": "0.00",
        "total_price": "598.94",
        "total_price_set": {
            "shop_money": {
                "amount": "598.94",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "598.94",
                "currency_code": "USD"
            }
        },
        "total_price_usd": "598.94",
        "total_shipping_price_set": {
            "shop_money": {
                "amount": "0.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "0.00",
                "currency_code": "USD"
            }
        },
        "total_tax": "11.94",
        "total_tax_set": {
            "shop_money": {
                "amount": "11.94",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "11.94",
                "currency_code": "USD"
            }
        },
        "total_tip_received": "0.00",
        "total_weight": 0,
        "updated_at": "2023-01-03T12:26:22-05:00",
        "user_id": null,
        "billing_address": {
            "first_name": "Bob",
            "address1": "Chestnut Street 92",
            "phone": "+1(502)-459-2181",
            "city": "Louisville",
            "zip": "40202",
            "province": "Kentucky",
            "country": "United States",
            "last_name": "Norman",
            "address2": "",
            "company": null,
            "latitude": 45.41634,
            "longitude": -75.6868,
            "name": "Bob Norman",
            "country_code": "US",
            "province_code": "KY"
        },
        "customer": {
            "id": 207119551,
            "email": "bob.norman@mail.example.com",
            "accepts_marketing": false,
            "created_at": "2023-01-03T12:21:36-05:00",
            "updated_at": "2023-01-03T12:21:36-05:00",
            "first_name": "Bob",
            "last_name": "Norman",
            "orders_count": 1,
            "state": "disabled",
            "total_spent": "199.65",
            "last_order_id": 450789469,
            "note": null,
            "verified_email": true,
            "multipass_identifier": null,
            "tax_exempt": false,
            "tags": "",
            "last_order_name": "#1001",
            "currency": "USD",
            "phone": "+16136120707",
            "accepts_marketing_updated_at": "2005-06-12T11:57:11-04:00",
            "marketing_opt_in_level": null,
            "tax_exemptions": [],
            "admin_graphql_api_id": "gid://shopify/Customer/207119551",
            "default_address": {
                "id": 207119551,
                "customer_id": 207119551,
                "first_name": null,
                "last_name": null,
                "company": null,
                "address1": "Chestnut Street 92",
                "address2": "",
                "city": "Louisville",
                "province": "Kentucky",
                "country": "United States",
                "zip": "40202",
                "phone": "555-625-1199",
                "name": "",
                "province_code": "KY",
                "country_code": "US",
                "country_name": "United States",
                "default": true
            }
        },
        "discount_applications": [
            {
                "target_type": "line_item",
                "type": "discount_code",
                "value": "10.0",
                "value_type": "fixed_amount",
                "allocation_method": "across",
                "target_selection": "all",
                "code": "TENOFF"
            }
        ],
        "fulfillments": [
            {
                "id": 255858046,
                "admin_graphql_api_id": "gid://shopify/Fulfillment/255858046",
                "created_at": "2023-01-03T12:21:36-05:00",
                "location_id": 655441491,
                "name": "#1001.0",
                "order_id": 450789469,
                "receipt": {
                    "testcase": true,
                    "authorization": "123456"
                },
                "service": "manual",
                "shipment_status": null,
                "status": "failure",
                "tracking_company": "USPS",
                "tracking_number": "1Z2345",
                "tracking_numbers": [
                    "1Z2345"
                ],
                "tracking_url": "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2345",
                "tracking_urls": [
                    "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2345"
                ],
                "updated_at": "2023-01-03T12:21:36-05:00",
                "line_items": [
                    {
                        "id": 466157049,
                        "admin_graphql_api_id": "gid://shopify/LineItem/466157049",
                        "fulfillable_quantity": 0,
                        "fulfillment_service": "manual",
                        "fulfillment_status": null,
                        "gift_card": false,
                        "grams": 200,
                        "name": "IPod Nano - 8gb - green",
                        "price": "199.00",
                        "price_set": {
                            "shop_money": {
                                "amount": "199.00",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "199.00",
                                "currency_code": "USD"
                            }
                        },
                        "product_exists": true,
                        "product_id": 632910392,
                        "properties": [
                            {
                                "name": "Custom Engraving Front",
                                "value": "Happy Birthday"
                            },
                            {
                                "name": "Custom Engraving Back",
                                "value": "Merry Christmas"
                            }
                        ],
                        "quantity": 1,
                        "requires_shipping": true,
                        "sku": "IPOD2008GREEN",
                        "taxable": true,
                        "title": "IPod Nano - 8gb",
                        "total_discount": "0.00",
                        "total_discount_set": {
                            "shop_money": {
                                "amount": "0.00",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "0.00",
                                "currency_code": "USD"
                            }
                        },
                        "variant_id": 39072856,
                        "variant_inventory_management": "shopify",
                        "variant_title": "green",
                        "vendor": null,
                        "tax_lines": [
                            {
                                "channel_liable": null,
                                "price": "3.98",
                                "price_set": {
                                    "shop_money": {
                                        "amount": "3.98",
                                        "currency_code": "USD"
                                    },
                                    "presentment_money": {
                                        "amount": "3.98",
                                        "currency_code": "USD"
                                    }
                                },
                                "rate": 0.06,
                                "title": "State Tax"
                            }
                        ],
                        "duties": [],
                        "discount_allocations": [
                            {
                                "amount": "3.34",
                                "amount_set": {
                                    "shop_money": {
                                        "amount": "3.34",
                                        "currency_code": "USD"
                                    },
                                    "presentment_money": {
                                        "amount": "3.34",
                                        "currency_code": "USD"
                                    }
                                },
                                "discount_application_index": 0
                            }
                        ]
                    }
                ]
            }
        ],
        "line_items": [
            {
                "id": 466157049,
                "admin_graphql_api_id": "gid://shopify/LineItem/466157049",
                "fulfillable_quantity": 0,
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "name": "IPod Nano - 8gb - green",
                "price": "199.00",
                "price_set": {
                    "shop_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    }
                },
                "product_exists": true,
                "product_id": 632910392,
                "properties": [
                    {
                        "name": "Custom Engraving Front",
                        "value": "Happy Birthday"
                    },
                    {
                        "name": "Custom Engraving Back",
                        "value": "Merry Christmas"
                    }
                ],
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008GREEN",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "total_discount": "0.00",
                "total_discount_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "variant_id": 39072856,
                "variant_inventory_management": "shopify",
                "variant_title": "green",
                "vendor": null,
                "tax_lines": [
                    {
                        "channel_liable": null,
                        "price": "3.98",
                        "price_set": {
                            "shop_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            }
                        },
                        "rate": 0.06,
                        "title": "State Tax"
                    }
                ],
                "duties": [],
                "discount_allocations": [
                    {
                        "amount": "3.34",
                        "amount_set": {
                            "shop_money": {
                                "amount": "3.34",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.34",
                                "currency_code": "USD"
                            }
                        },
                        "discount_application_index": 0
                    }
                ]
            },
            {
                "id": 518995019,
                "admin_graphql_api_id": "gid://shopify/LineItem/518995019",
                "fulfillable_quantity": 1,
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "name": "IPod Nano - 8gb - red",
                "price": "199.00",
                "price_set": {
                    "shop_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    }
                },
                "product_exists": true,
                "product_id": 632910392,
                "properties": [],
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008RED",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "total_discount": "0.00",
                "total_discount_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "variant_id": 49148385,
                "variant_inventory_management": "shopify",
                "variant_title": "red",
                "vendor": null,
                "tax_lines": [
                    {
                        "channel_liable": null,
                        "price": "3.98",
                        "price_set": {
                            "shop_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            }
                        },
                        "rate": 0.06,
                        "title": "State Tax"
                    }
                ],
                "duties": [],
                "discount_allocations": [
                    {
                        "amount": "3.33",
                        "amount_set": {
                            "shop_money": {
                                "amount": "3.33",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.33",
                                "currency_code": "USD"
                            }
                        },
                        "discount_application_index": 0
                    }
                ]
            },
            {
                "id": 703073504,
                "admin_graphql_api_id": "gid://shopify/LineItem/703073504",
                "fulfillable_quantity": 0,
                "fulfillment_service": "manual",
                "fulfillment_status": null,
                "gift_card": false,
                "grams": 200,
                "name": "IPod Nano - 8gb - black",
                "price": "199.00",
                "price_set": {
                    "shop_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "199.00",
                        "currency_code": "USD"
                    }
                },
                "product_exists": true,
                "product_id": 632910392,
                "properties": [],
                "quantity": 1,
                "requires_shipping": true,
                "sku": "IPOD2008BLACK",
                "taxable": true,
                "title": "IPod Nano - 8gb",
                "total_discount": "0.00",
                "total_discount_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "variant_id": 457924702,
                "variant_inventory_management": "shopify",
                "variant_title": "black",
                "vendor": null,
                "tax_lines": [
                    {
                        "channel_liable": null,
                        "price": "3.98",
                        "price_set": {
                            "shop_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            }
                        },
                        "rate": 0.06,
                        "title": "State Tax"
                    }
                ],
                "duties": [],
                "discount_allocations": [
                    {
                        "amount": "3.33",
                        "amount_set": {
                            "shop_money": {
                                "amount": "3.33",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.33",
                                "currency_code": "USD"
                            }
                        },
                        "discount_application_index": 0
                    }
                ]
            }
        ],
        "payment_details": {
            "credit_card_bin": null,
            "avs_result_code": null,
            "cvv_result_code": null,
            "credit_card_number": "•••• •••• •••• 4242",
            "credit_card_company": "Visa"
        },
        "refunds": [
            {
                "id": 509562969,
                "admin_graphql_api_id": "gid://shopify/Refund/509562969",
                "created_at": "2023-01-03T12:21:36-05:00",
                "note": "it broke during shipping",
                "order_id": 450789469,
                "processed_at": "2023-01-03T12:21:36-05:00",
                "restock": true,
                "total_duties_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "user_id": 548380009,
                "order_adjustments": [],
                "transactions": [
                    {
                        "id": 179259969,
                        "admin_graphql_api_id": "gid://shopify/OrderTransaction/179259969",
                        "amount": "209.00",
                        "authorization": "authorization-key",
                        "created_at": "2005-08-05T12:59:12-04:00",
                        "currency": "USD",
                        "device_id": null,
                        "error_code": null,
                        "gateway": "bogus",
                        "kind": "refund",
                        "location_id": null,
                        "message": null,
                        "order_id": 450789469,
                        "parent_id": 801038806,
                        "processed_at": "2005-08-05T12:59:12-04:00",
                        "receipt": {},
                        "source_name": "web",
                        "status": "success",
                        "test": false,
                        "user_id": null
                    }
                ],
                "refund_line_items": [
                    {
                        "id": 104689539,
                        "line_item_id": 703073504,
                        "location_id": 487838322,
                        "quantity": 1,
                        "restock_type": "legacy_restock",
                        "subtotal": 195.66,
                        "subtotal_set": {
                            "shop_money": {
                                "amount": "195.66",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "195.66",
                                "currency_code": "USD"
                            }
                        },
                        "total_tax": 3.98,
                        "total_tax_set": {
                            "shop_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            }
                        },
                        "line_item": {
                            "id": 703073504,
                            "admin_graphql_api_id": "gid://shopify/LineItem/703073504",
                            "fulfillable_quantity": 0,
                            "fulfillment_service": "manual",
                            "fulfillment_status": null,
                            "gift_card": false,
                            "grams": 200,
                            "name": "IPod Nano - 8gb - black",
                            "price": "199.00",
                            "price_set": {
                                "shop_money": {
                                    "amount": "199.00",
                                    "currency_code": "USD"
                                },
                                "presentment_money": {
                                    "amount": "199.00",
                                    "currency_code": "USD"
                                }
                            },
                            "product_exists": true,
                            "product_id": 632910392,
                            "properties": [],
                            "quantity": 1,
                            "requires_shipping": true,
                            "sku": "IPOD2008BLACK",
                            "taxable": true,
                            "title": "IPod Nano - 8gb",
                            "total_discount": "0.00",
                            "total_discount_set": {
                                "shop_money": {
                                    "amount": "0.00",
                                    "currency_code": "USD"
                                },
                                "presentment_money": {
                                    "amount": "0.00",
                                    "currency_code": "USD"
                                }
                            },
                            "variant_id": 457924702,
                            "variant_inventory_management": "shopify",
                            "variant_title": "black",
                            "vendor": null,
                            "tax_lines": [
                                {
                                    "channel_liable": null,
                                    "price": "3.98",
                                    "price_set": {
                                        "shop_money": {
                                            "amount": "3.98",
                                            "currency_code": "USD"
                                        },
                                        "presentment_money": {
                                            "amount": "3.98",
                                            "currency_code": "USD"
                                        }
                                    },
                                    "rate": 0.06,
                                    "title": "State Tax"
                                }
                            ],
                            "duties": [],
                            "discount_allocations": [
                                {
                                    "amount": "3.33",
                                    "amount_set": {
                                        "shop_money": {
                                            "amount": "3.33",
                                            "currency_code": "USD"
                                        },
                                        "presentment_money": {
                                            "amount": "3.33",
                                            "currency_code": "USD"
                                        }
                                    },
                                    "discount_application_index": 0
                                }
                            ]
                        }
                    },
                    {
                        "id": 709875399,
                        "line_item_id": 466157049,
                        "location_id": 487838322,
                        "quantity": 1,
                        "restock_type": "legacy_restock",
                        "subtotal": 195.67,
                        "subtotal_set": {
                            "shop_money": {
                                "amount": "195.67",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "195.67",
                                "currency_code": "USD"
                            }
                        },
                        "total_tax": 3.98,
                        "total_tax_set": {
                            "shop_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            },
                            "presentment_money": {
                                "amount": "3.98",
                                "currency_code": "USD"
                            }
                        },
                        "line_item": {
                            "id": 466157049,
                            "admin_graphql_api_id": "gid://shopify/LineItem/466157049",
                            "fulfillable_quantity": 0,
                            "fulfillment_service": "manual",
                            "fulfillment_status": null,
                            "gift_card": false,
                            "grams": 200,
                            "name": "IPod Nano - 8gb - green",
                            "price": "199.00",
                            "price_set": {
                                "shop_money": {
                                    "amount": "199.00",
                                    "currency_code": "USD"
                                },
                                "presentment_money": {
                                    "amount": "199.00",
                                    "currency_code": "USD"
                                }
                            },
                            "product_exists": true,
                            "product_id": 632910392,
                            "properties": [
                                {
                                    "name": "Custom Engraving Front",
                                    "value": "Happy Birthday"
                                },
                                {
                                    "name": "Custom Engraving Back",
                                    "value": "Merry Christmas"
                                }
                            ],
                            "quantity": 1,
                            "requires_shipping": true,
                            "sku": "IPOD2008GREEN",
                            "taxable": true,
                            "title": "IPod Nano - 8gb",
                            "total_discount": "0.00",
                            "total_discount_set": {
                                "shop_money": {
                                    "amount": "0.00",
                                    "currency_code": "USD"
                                },
                                "presentment_money": {
                                    "amount": "0.00",
                                    "currency_code": "USD"
                                }
                            },
                            "variant_id": 39072856,
                            "variant_inventory_management": "shopify",
                            "variant_title": "green",
                            "vendor": null,
                            "tax_lines": [
                                {
                                    "channel_liable": null,
                                    "price": "3.98",
                                    "price_set": {
                                        "shop_money": {
                                            "amount": "3.98",
                                            "currency_code": "USD"
                                        },
                                        "presentment_money": {
                                            "amount": "3.98",
                                            "currency_code": "USD"
                                        }
                                    },
                                    "rate": 0.06,
                                    "title": "State Tax"
                                }
                            ],
                            "duties": [],
                            "discount_allocations": [
                                {
                                    "amount": "3.34",
                                    "amount_set": {
                                        "shop_money": {
                                            "amount": "3.34",
                                            "currency_code": "USD"
                                        },
                                        "presentment_money": {
                                            "amount": "3.34",
                                            "currency_code": "USD"
                                        }
                                    },
                                    "discount_application_index": 0
                                }
                            ]
                        }
                    }
                ],
                "duties": []
            }
        ],
        "shipping_address": {
            "first_name": "Bob",
            "address1": "Chestnut Street 92",
            "phone": "+1(502)-459-2181",
            "city": "Louisville",
            "zip": "40202",
            "province": "Kentucky",
            "country": "United States",
            "last_name": "Norman",
            "address2": "",
            "company": null,
            "latitude": 45.41634,
            "longitude": -75.6868,
            "name": "Bob Norman",
            "country_code": "US",
            "province_code": "KY"
        },
        "shipping_lines": [
            {
                "id": 369256396,
                "carrier_identifier": null,
                "code": "Free Shipping",
                "delivery_category": null,
                "discounted_price": "0.00",
                "discounted_price_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "phone": null,
                "price": "0.00",
                "price_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "USD"
                    }
                },
                "requested_fulfillment_service_id": null,
                "source": "shopify",
                "title": "Free Shipping",
                "tax_lines": [],
                "discount_allocations": []
            }
        ]
    }
}
修改于 2023-01-29 12:00:33
上一页
Retrieve a specific order
下一页
Delete an order
Built with