The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.

Requires ANY of the following access scopes: orders, marketplace_orders.

The Refund resource has two major components:

  • Transaction records of money returned to the customer
  • The line items included in the refund, along with restocking instructions

Before you create a refund, use the calculate endpoint to generate accurate refund transactions. Specify the line items that are being refunded, their quantity and restock instructions, and whether you're refunding shipping costs. You can then use the response of the calculate endpoint to create the actual refund.

When you create a refund using the response from the calculate endpoint, you can set additional options, such as whether to notify the customer of the refund. You can refund less than the calculated amount for either shipping or the line items by setting a custom value for the amount property.

If a refund includes shipping costs, or if you choose to refund line items for less than their calculated amount, then an order adjustment is created automatically to account for the discrepancy in the store's financial reports.

Was this section helpful?

Properties

created_at
read-only
The date and time (ISO 8601 format) when the refund was created.

duties
read-only
A list of duties that have been reimbursed as part of the refund.

id
read-only
->id
The unique identifier for the refund.

note
An optional note attached to a refund.

order_adjustments
read-only

A list of order adjustments attached to the refund. Order adjustments are generated to account for refunded shipping costs and differences between calculated and actual refund amounts. As of the 2024-10 Admin API version, refunded shipping costs are no longer considered order adjustments and should be accessed through refund_shipping_lines. Each entry has the following properties:


processed_at
read-only
The date and time (ISO 8601 format) when the refund was imported. This value can be set to a date in the past when importing from other systems. If no value is provided, then it will be auto-generated as the current time in Shopify. Public apps need to be granted permission by Shopify to import orders with the processed_at timestamp set to a value earlier the created_at timestamp. Private apps can't be granted permission by Shopify.

refund_duties

A list of refunded duties. Each entry has the following properties:


refund_line_items
A list of refunded line items. Each entry has the following properties:

refund_shipping_lines
read-only

A list of refunded shipping lines. Each entry has the following properties:


restock
deprecated
Whether to add any of the line items back to the store's inventory. Use restock_type for refund line items instead.

transactions
A list of transactions involved in the refund. A single order can have multiple transactions associated with it. For more information, see the Transaction resource.

user_id
read-only
The unique identifier of the user who performed the refund.

Was this section helpful?
{}The Refund resource
{
  "created_at": "2008-01-10T11:00:00-05:00",
  "duties": {
    "duties": [
      {
        "duty_id": 1,
        "amount_set": {
          "shop_money": {
            "amount": "9.83",
            "currency_code": "CAD"
          },
          "presentment_money": {
            "amount": "9.83",
            "currency_code": "CAD"
          }
        }
      }
    ]
  },
  "id": 92738740,
  "note": "Item was damaged during shipping",
  "order_adjustments": [
    {
      "id": 4221763620,
      "order_id": 171016912932,
      "refund_id": 8244756516,
      "amount": "10.00",
      "tax_amount": "0.00",
      "kind": "refund_discrepancy",
      "reason": "Refund discrepancy",
      "amount_set": {
        "shop_money": {
          "amount": 10,
          "currency_code": "CAD"
        },
        "presentment_money": {
          "amount": 7.3,
          "currency_code": "USD"
        }
      },
      "tax_amount_set": {
        "shop_money": {
          "amount": 0,
          "currency_code": "CAD"
        },
        "presentment_money": {
          "amount": 0,
          "currency_code": "USD"
        }
      }
    }
  ],
  "processed_at": "2007-01-10T11:00:00-05:00",
  "refund_duties": [
    {
      "duty_id": 1,
      "refund_type": "FULL"
    }
  ],
  "refund_line_items": [
    {
      "id": 209341123,
      "line_item": {},
      "line_item_id": 128323456,
      "quantity": 2,
      "location_id": 40642626,
      "restock_type": "return",
      "subtotal": 10.99,
      "total_tax": 2.67,
      "subtotal_set": {
        "shop_money": {
          "amount": 10.99,
          "currency_code": "CAD"
        },
        "presentment_money": {
          "amount": 8.95,
          "currency_code": "USD"
        }
      },
      "total_tax_set": {
        "shop_money": {
          "amount": 1.67,
          "currency_code": "CAD"
        },
        "presentment_money": {
          "amount": 1.32,
          "currency_code": "USD"
        }
      }
    }
  ],
  "refund_shipping_lines": [
    {
      "id": 712736824,
      "shipping_line": {},
      "shipping_line_id": 8845532987448,
      "subtotal_amount_set": {
        "shop_money": {
          "amount": 5,
          "currency_code": "CAD"
        },
        "presentment_money": {
          "amount": 3.65,
          "currency_code": "USD"
        }
      }
    }
  ],
  "restock": true,
  "transactions": [
    {
      "id": 179259969,
      "order_id": 450789469,
      "amount": "209.00",
      "kind": "refund",
      "gateway": "shopify_payments",
      "status": "success",
      "message": null,
      "created_at": "2005-08-05T12:59:12-04:00",
      "test": false,
      "authorization": "authorization-key",
      "currency": "USD",
      "location_id": null,
      "user_id": null,
      "parent_id": 801038806,
      "device_id": null,
      "receipt": {},
      "error_code": null,
      "source_name": "web"
    }
  ],
  "user_id": 238478920
}

Creates a refund. Use the calculate endpoint to produce the transactions to submit.



api_version
string
required

order_id
string
required

currency

The three-letter code (ISO 4217 format) for the currency used for the refund.


discrepancy_reason
An optional comment that explains a discrepancy between calculated and actual refund amounts. Used to populate the reason property of the resulting order_adjustment object attached to the refund. Valid values: restock, damage, customer, and other.

note
An optional note attached to a refund.

notify
Whether to send a refund notification to the customer.

refund_line_items
A list of line item IDs, quantities to refund, and restock instructions. Each entry has the following properties:

restock
deprecated
Whether to add the line items back to the store inventory. Use restock_type for refund line items instead.

shipping
Specify how much shipping to refund. It has the following properties:

transactions
A list of transactions to process as refunds. Use the calculate endpoint to obtain these transactions.

Was this section helpful?
Path parameters
orderid=450789469
string
required
Request body
refund
Refund resource
Was this section helpful?
post
/admin/api/2024-10/orders/450789469/refunds.json
Copy
curl -d '{"refund":{"currency":"USD","notify":true,"note":"wrong size","shipping":{"full_refund":true},"refund_line_items":[{"line_item_id":518995019,"quantity":1,"restock_type":"return","location_id":487838322}],"transactions":[{"parent_id":801038806,"amount":41.94,"kind":"refund","gateway":"bogus"}]}}' \
-X POST "https://your-development-store.myshopify.com/admin/api/2024-10/orders/450789469/refunds.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Content-Type: application/json"
{}Response
JSON
HTTP/1.1 201 Created
{
  "refund": {
    "id": 929361714,
    "order_id": 450789469,
    "created_at": "2024-09-20T11:39:51-04:00",
    "note": "wrong size",
    "user_id": null,
    "processed_at": "2024-09-20T11:39:51-04:00",
    "duties": [],
    "total_duties_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "restock": false,
    "additional_fees": [],
    "total_additional_fees_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "return": null,
    "refund_shipping_lines": [],
    "admin_graphql_api_id": "gid://shopify/Refund/929361714",
    "order_adjustments": [],
    "refund_line_items": [
      {
        "location_id": null,
        "restock_type": "no_restock",
        "quantity": 1,
        "id": 1058498597,
        "line_item_id": 518995019,
        "subtotal": 0,
        "total_tax": 0,
        "subtotal_set": {
          "shop_money": {
            "amount": "0.00",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "0.00",
            "currency_code": "USD"
          }
        },
        "total_tax_set": {
          "shop_money": {
            "amount": "0.00",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "0.00",
            "currency_code": "USD"
          }
        },
        "line_item": {
          "id": 518995019,
          "variant_id": 49148385,
          "title": "IPod Nano - 8gb",
          "quantity": 1,
          "sku": "IPOD2008RED",
          "variant_title": "red",
          "vendor": null,
          "fulfillment_service": "manual",
          "product_id": 632910392,
          "requires_shipping": true,
          "taxable": true,
          "gift_card": false,
          "name": "IPod Nano - 8gb - red",
          "variant_inventory_management": "shopify",
          "properties": [],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "grams": 200,
          "price": "199.00",
          "total_discount": "0.00",
          "fulfillment_status": null,
          "price_set": {
            "shop_money": {
              "amount": "199.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "199.00",
              "currency_code": "USD"
            }
          },
          "total_discount_set": {
            "shop_money": {
              "amount": "0.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "0.00",
              "currency_code": "USD"
            }
          },
          "discount_allocations": [
            {
              "amount": "3.33",
              "discount_application_index": 0,
              "amount_set": {
                "shop_money": {
                  "amount": "3.33",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.33",
                  "currency_code": "USD"
                }
              }
            }
          ],
          "duties": [],
          "admin_graphql_api_id": "gid://shopify/LineItem/518995019",
          "tax_lines": [
            {
              "title": "State Tax",
              "price": "3.98",
              "rate": 0.06,
              "channel_liable": null,
              "price_set": {
                "shop_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                }
              }
            }
          ]
        }
      }
    ],
    "transactions": [
      {
        "id": 1068278758,
        "order_id": 450789469,
        "kind": "refund",
        "gateway": "bogus",
        "status": "success",
        "message": "Bogus Gateway: Forced success",
        "created_at": "2024-09-20T11:39:51-04:00",
        "test": true,
        "authorization": null,
        "location_id": null,
        "user_id": null,
        "parent_id": 801038806,
        "processed_at": "2024-09-20T11:39:51-04:00",
        "device_id": null,
        "error_code": null,
        "source_name": "755357713",
        "receipt": {},
        "amount": "41.94",
        "currency": "USD",
        "payment_id": "c901414060.1",
        "total_unsettled_set": {
          "presentment_money": {
            "amount": "348.0",
            "currency": "USD"
          },
          "shop_money": {
            "amount": "348.0",
            "currency": "USD"
          }
        },
        "manual_payment_gateway": false,
        "amount_rounding": null,
        "admin_graphql_api_id": "gid://shopify/OrderTransaction/1068278758"
      }
    ]
  }
}

Calculates refund transactions based on line items and shipping. When you want to create a refund, you should first use the calculate endpoint to generate accurate refund transactions. Specify the line items that are being refunded, their quantity and restock instructions, and whether you intend to refund shipping costs. If the restock instructions can't be met—for example, because you try to return more items than have been fulfilled—then the endpoint returns modified restock instructions. You can then use the response in the body of the request to create the actual refund.

The response includes a transactions object with "kind": "suggested_refund", which must to be changed to "kind" : "refund" for the refund to be accepted.


api_version
string
required

order_id
string
required

currency

The three-letter code (ISO 4217 format) for the currency used for the refund. Note: Required whenever the shipping amount property is provided.


refund_line_items
A list of line item IDs, quantities to refund, and restock instructions. Each entry has the following properties:

shipping
Specify how much shipping to refund. It has the following properties:

Was this section helpful?
Path parameters
orderid=450789469
string
required
Was this section helpful?
post
/admin/api/2024-10/orders/450789469/refunds/calculate.json
Copy
curl -d '{"refund":{"currency":"USD","shipping":{"amount":2.0}}}' \
-X POST "https://your-development-store.myshopify.com/admin/api/2024-10/orders/450789469/refunds/calculate.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Content-Type: application/json"
{}Response
JSON
HTTP/1.1 200 OK
{
  "refund": {
    "duties": [],
    "total_duties_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "shipping": {
      "amount": "2.00",
      "tax": "0.00",
      "maximum_refundable": "5.00"
    },
    "additional_fees": [],
    "total_additional_fees_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "return": null,
    "refund_shipping_lines": [],
    "refund_line_items": [],
    "transactions": [
      {
        "order_id": 450789469,
        "kind": "suggested_refund",
        "gateway": "bogus",
        "parent_id": 801038806,
        "amount": "2.00",
        "currency": "USD",
        "maximum_refundable": "41.94"
      }
    ],
    "currency": "USD"
  }
}

Retrieves a list of refunds for an order. Note: This endpoint implements pagination by using links that are provided in the response header. To learn more, refer to Make paginated requests to the REST Admin API.

api_version
string
required

order_id
string
required

fields
Show only certain fields, specified by a comma-separated list of field names.

in_shop_currency
default false
Show amounts in the shop currency for the underlying transaction.

limit
≤ 250
default 50
The maximum number of results to retrieve.

Was this section helpful?
Path parameters
orderid=450789469
string
required
Was this section helpful?
get
/admin/api/2024-10/orders/450789469/refunds.json
Copy
curl -X GET "https://your-development-store.myshopify.com/admin/api/2024-10/orders/450789469/refunds.json" \
-H "X-Shopify-Access-Token: {access_token}"
{}Response
JSON
HTTP/1.1 200 OK
{
  "refunds": [
    {
      "id": 509562969,
      "order_id": 450789469,
      "created_at": "2024-09-20T11:29:43-04:00",
      "note": "it broke during shipping",
      "user_id": 548380009,
      "processed_at": "2024-09-20T11:29:43-04:00",
      "duties": [],
      "total_duties_set": {
        "shop_money": {
          "amount": "0.00",
          "currency_code": "USD"
        },
        "presentment_money": {
          "amount": "0.00",
          "currency_code": "USD"
        }
      },
      "restock": true,
      "additional_fees": [],
      "total_additional_fees_set": {
        "shop_money": {
          "amount": "0.00",
          "currency_code": "USD"
        },
        "presentment_money": {
          "amount": "0.00",
          "currency_code": "USD"
        }
      },
      "return": null,
      "refund_shipping_lines": [],
      "admin_graphql_api_id": "gid://shopify/Refund/509562969",
      "order_adjustments": [],
      "refund_line_items": [
        {
          "id": 104689539,
          "quantity": 1,
          "line_item_id": 703073504,
          "location_id": 487838322,
          "restock_type": "legacy_restock",
          "subtotal": 195.66,
          "total_tax": 3.98,
          "subtotal_set": {
            "shop_money": {
              "amount": "195.66",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "195.66",
              "currency_code": "USD"
            }
          },
          "total_tax_set": {
            "shop_money": {
              "amount": "3.98",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "3.98",
              "currency_code": "USD"
            }
          },
          "line_item": {
            "id": 703073504,
            "variant_id": 457924702,
            "title": "IPod Nano - 8gb",
            "quantity": 1,
            "sku": "IPOD2008BLACK",
            "variant_title": "black",
            "vendor": null,
            "fulfillment_service": "manual",
            "product_id": 632910392,
            "requires_shipping": true,
            "taxable": true,
            "gift_card": false,
            "name": "IPod Nano - 8gb - black",
            "variant_inventory_management": "shopify",
            "properties": [],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "grams": 200,
            "price": "199.00",
            "total_discount": "0.00",
            "fulfillment_status": null,
            "price_set": {
              "shop_money": {
                "amount": "199.00",
                "currency_code": "USD"
              },
              "presentment_money": {
                "amount": "199.00",
                "currency_code": "USD"
              }
            },
            "total_discount_set": {
              "shop_money": {
                "amount": "0.00",
                "currency_code": "USD"
              },
              "presentment_money": {
                "amount": "0.00",
                "currency_code": "USD"
              }
            },
            "discount_allocations": [
              {
                "amount": "3.33",
                "discount_application_index": 0,
                "amount_set": {
                  "shop_money": {
                    "amount": "3.33",
                    "currency_code": "USD"
                  },
                  "presentment_money": {
                    "amount": "3.33",
                    "currency_code": "USD"
                  }
                }
              }
            ],
            "duties": [],
            "admin_graphql_api_id": "gid://shopify/LineItem/703073504",
            "tax_lines": [
              {
                "title": "State Tax",
                "price": "3.98",
                "rate": 0.06,
                "channel_liable": null,
                "price_set": {
                  "shop_money": {
                    "amount": "3.98",
                    "currency_code": "USD"
                  },
                  "presentment_money": {
                    "amount": "3.98",
                    "currency_code": "USD"
                  }
                }
              }
            ]
          }
        },
        {
          "id": 709875399,
          "quantity": 1,
          "line_item_id": 466157049,
          "location_id": 487838322,
          "restock_type": "legacy_restock",
          "subtotal": 195.67,
          "total_tax": 3.98,
          "subtotal_set": {
            "shop_money": {
              "amount": "195.67",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "195.67",
              "currency_code": "USD"
            }
          },
          "total_tax_set": {
            "shop_money": {
              "amount": "3.98",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "3.98",
              "currency_code": "USD"
            }
          },
          "line_item": {
            "id": 466157049,
            "variant_id": 39072856,
            "title": "IPod Nano - 8gb",
            "quantity": 1,
            "sku": "IPOD2008GREEN",
            "variant_title": "green",
            "vendor": null,
            "fulfillment_service": "manual",
            "product_id": 632910392,
            "requires_shipping": true,
            "taxable": true,
            "gift_card": false,
            "name": "IPod Nano - 8gb - green",
            "variant_inventory_management": "shopify",
            "properties": [
              {
                "name": "Custom Engraving Front",
                "value": "Happy Birthday"
              },
              {
                "name": "Custom Engraving Back",
                "value": "Merry Christmas"
              }
            ],
            "product_exists": true,
            "fulfillable_quantity": 1,
            "grams": 200,
            "price": "199.00",
            "total_discount": "0.00",
            "fulfillment_status": null,
            "price_set": {
              "shop_money": {
                "amount": "199.00",
                "currency_code": "USD"
              },
              "presentment_money": {
                "amount": "199.00",
                "currency_code": "USD"
              }
            },
            "total_discount_set": {
              "shop_money": {
                "amount": "0.00",
                "currency_code": "USD"
              },
              "presentment_money": {
                "amount": "0.00",
                "currency_code": "USD"
              }
            },
            "discount_allocations": [
              {
                "amount": "3.34",
                "discount_application_index": 0,
                "amount_set": {
                  "shop_money": {
                    "amount": "3.34",
                    "currency_code": "USD"
                  },
                  "presentment_money": {
                    "amount": "3.34",
                    "currency_code": "USD"
                  }
                }
              }
            ],
            "duties": [],
            "admin_graphql_api_id": "gid://shopify/LineItem/466157049",
            "tax_lines": [
              {
                "title": "State Tax",
                "price": "3.98",
                "rate": 0.06,
                "channel_liable": null,
                "price_set": {
                  "shop_money": {
                    "amount": "3.98",
                    "currency_code": "USD"
                  },
                  "presentment_money": {
                    "amount": "3.98",
                    "currency_code": "USD"
                  }
                }
              }
            ]
          }
        }
      ],
      "transactions": [
        {
          "id": 179259969,
          "order_id": 450789469,
          "kind": "refund",
          "gateway": "bogus",
          "status": "success",
          "message": null,
          "created_at": "2005-08-05T12:59:12-04:00",
          "test": false,
          "authorization": "authorization-key",
          "location_id": null,
          "user_id": null,
          "parent_id": 801038806,
          "processed_at": "2005-08-05T12:59:12-04:00",
          "device_id": null,
          "error_code": null,
          "source_name": "web",
          "receipt": {},
          "amount": "209.00",
          "currency": "USD",
          "payment_id": "#1001.3",
          "total_unsettled_set": {
            "presentment_money": {
              "amount": "348.0",
              "currency": "USD"
            },
            "shop_money": {
              "amount": "348.0",
              "currency": "USD"
            }
          },
          "manual_payment_gateway": false,
          "amount_rounding": null,
          "admin_graphql_api_id": "gid://shopify/OrderTransaction/179259969"
        }
      ]
    }
  ]
}

Retrieves a specific refund.

api_version
string
required

order_id
string
required

refund_id
string
required

fields
Show only certain fields, specified by a comma-separated list of field names.

in_shop_currency
default false
Show amounts in the shop currency for the underlying transaction.

Was this section helpful?
Was this section helpful?
get
/admin/api/2024-10/orders/450789469/refunds/509562969.json
Copy
curl -X GET "https://your-development-store.myshopify.com/admin/api/2024-10/orders/450789469/refunds/509562969.json" \
-H "X-Shopify-Access-Token: {access_token}"
{}Response
JSON
HTTP/1.1 200 OK
{
  "refund": {
    "id": 509562969,
    "order_id": 450789469,
    "created_at": "2024-09-20T11:29:43-04:00",
    "note": "it broke during shipping",
    "user_id": 548380009,
    "processed_at": "2024-09-20T11:29:43-04:00",
    "duties": [],
    "total_duties_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "restock": true,
    "additional_fees": [],
    "total_additional_fees_set": {
      "shop_money": {
        "amount": "0.00",
        "currency_code": "USD"
      },
      "presentment_money": {
        "amount": "0.00",
        "currency_code": "USD"
      }
    },
    "return": null,
    "refund_shipping_lines": [],
    "admin_graphql_api_id": "gid://shopify/Refund/509562969",
    "order_adjustments": [],
    "refund_line_items": [
      {
        "id": 104689539,
        "quantity": 1,
        "line_item_id": 703073504,
        "location_id": 487838322,
        "restock_type": "legacy_restock",
        "subtotal": 195.66,
        "total_tax": 3.98,
        "subtotal_set": {
          "shop_money": {
            "amount": "195.66",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "195.66",
            "currency_code": "USD"
          }
        },
        "total_tax_set": {
          "shop_money": {
            "amount": "3.98",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "3.98",
            "currency_code": "USD"
          }
        },
        "line_item": {
          "id": 703073504,
          "variant_id": 457924702,
          "title": "IPod Nano - 8gb",
          "quantity": 1,
          "sku": "IPOD2008BLACK",
          "variant_title": "black",
          "vendor": null,
          "fulfillment_service": "manual",
          "product_id": 632910392,
          "requires_shipping": true,
          "taxable": true,
          "gift_card": false,
          "name": "IPod Nano - 8gb - black",
          "variant_inventory_management": "shopify",
          "properties": [],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "grams": 200,
          "price": "199.00",
          "total_discount": "0.00",
          "fulfillment_status": null,
          "price_set": {
            "shop_money": {
              "amount": "199.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "199.00",
              "currency_code": "USD"
            }
          },
          "total_discount_set": {
            "shop_money": {
              "amount": "0.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "0.00",
              "currency_code": "USD"
            }
          },
          "discount_allocations": [
            {
              "amount": "3.33",
              "discount_application_index": 0,
              "amount_set": {
                "shop_money": {
                  "amount": "3.33",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.33",
                  "currency_code": "USD"
                }
              }
            }
          ],
          "duties": [],
          "admin_graphql_api_id": "gid://shopify/LineItem/703073504",
          "tax_lines": [
            {
              "title": "State Tax",
              "price": "3.98",
              "rate": 0.06,
              "channel_liable": null,
              "price_set": {
                "shop_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                }
              }
            }
          ]
        }
      },
      {
        "id": 709875399,
        "quantity": 1,
        "line_item_id": 466157049,
        "location_id": 487838322,
        "restock_type": "legacy_restock",
        "subtotal": 195.67,
        "total_tax": 3.98,
        "subtotal_set": {
          "shop_money": {
            "amount": "195.67",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "195.67",
            "currency_code": "USD"
          }
        },
        "total_tax_set": {
          "shop_money": {
            "amount": "3.98",
            "currency_code": "USD"
          },
          "presentment_money": {
            "amount": "3.98",
            "currency_code": "USD"
          }
        },
        "line_item": {
          "id": 466157049,
          "variant_id": 39072856,
          "title": "IPod Nano - 8gb",
          "quantity": 1,
          "sku": "IPOD2008GREEN",
          "variant_title": "green",
          "vendor": null,
          "fulfillment_service": "manual",
          "product_id": 632910392,
          "requires_shipping": true,
          "taxable": true,
          "gift_card": false,
          "name": "IPod Nano - 8gb - green",
          "variant_inventory_management": "shopify",
          "properties": [
            {
              "name": "Custom Engraving Front",
              "value": "Happy Birthday"
            },
            {
              "name": "Custom Engraving Back",
              "value": "Merry Christmas"
            }
          ],
          "product_exists": true,
          "fulfillable_quantity": 1,
          "grams": 200,
          "price": "199.00",
          "total_discount": "0.00",
          "fulfillment_status": null,
          "price_set": {
            "shop_money": {
              "amount": "199.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "199.00",
              "currency_code": "USD"
            }
          },
          "total_discount_set": {
            "shop_money": {
              "amount": "0.00",
              "currency_code": "USD"
            },
            "presentment_money": {
              "amount": "0.00",
              "currency_code": "USD"
            }
          },
          "discount_allocations": [
            {
              "amount": "3.34",
              "discount_application_index": 0,
              "amount_set": {
                "shop_money": {
                  "amount": "3.34",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.34",
                  "currency_code": "USD"
                }
              }
            }
          ],
          "duties": [],
          "admin_graphql_api_id": "gid://shopify/LineItem/466157049",
          "tax_lines": [
            {
              "title": "State Tax",
              "price": "3.98",
              "rate": 0.06,
              "channel_liable": null,
              "price_set": {
                "shop_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                },
                "presentment_money": {
                  "amount": "3.98",
                  "currency_code": "USD"
                }
              }
            }
          ]
        }
      }
    ],
    "transactions": [
      {
        "id": 179259969,
        "order_id": 450789469,
        "kind": "refund",
        "gateway": "bogus",
        "status": "success",
        "message": null,
        "created_at": "2005-08-05T12:59:12-04:00",
        "test": false,
        "authorization": "authorization-key",
        "location_id": null,
        "user_id": null,
        "parent_id": 801038806,
        "processed_at": "2005-08-05T12:59:12-04:00",
        "device_id": null,
        "error_code": null,
        "source_name": "web",
        "receipt": {},
        "amount": "209.00",
        "currency": "USD",
        "payment_id": "#1001.3",
        "total_unsettled_set": {
          "presentment_money": {
            "amount": "348.0",
            "currency": "USD"
          },
          "shop_money": {
            "amount": "348.0",
            "currency": "USD"
          }
        },
        "manual_payment_gateway": false,
        "amount_rounding": null,
        "admin_graphql_api_id": "gid://shopify/OrderTransaction/179259969"
      }
    ]
  }
}