refund amount isn't equals to the line_item item

lisiming
New Member
10 0 0

Hi Shopify devs,

I have a problem with the refund. The order_id is 3953404805307 and the refund id is 811918983355.

There is the refund object. The 'subtotal' of  refund_line_item is 11.94 and 'the total_tax' is 2.38. But the amount of transaction is 14.33 which isn't equal to 11.94+2.38.

{
                "id": 811918983355,
                "created_at": "2021-08-02T23:10:14-04:00",
                "order_id": 3953404805307,
                "processed_at": "2021-08-02T23:10:14-04:00",
                "restock": false,
                "total_duties_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    }
                },
                "order_adjustments": [],
                "transactions": [
                    {
                        "id": 4908089573563,
                        "amount": "14.33",
                        "created_at": "2021-08-02T23:10:13-04:00",
                        "currency": "EUR",
                        "gateway": "bogus",
                        "kind": "refund",
                        "location_id": null,
                        "order_id": 3953404805307,
                        "parent_id": 4908081807547,
                        "processed_at": "2021-08-02T23:10:13-04:00",
                        "status": "success",
                        "test": true
                    }
                ],
                "refund_line_items": [
                    {
                        "id": 303760507067,
                        "line_item_id": 10191697739963,
                        "location_id": null,
                        "quantity": 1,
                        "restock_type": "no_restock",
                        "subtotal": 11.94,
                        "subtotal_set": {
                            "shop_money": {
                                "amount": "11.94",
                                "currency_code": "EUR"
                            },
                            "presentment_money": {
                                "amount": "11.94",
                                "currency_code": "EUR"
                            }
                        },
                        "total_tax": 2.38,
                        "total_tax_set": {
                            "shop_money": {
                                "amount": "2.38",
                                "currency_code": "EUR"
                            },
                            "presentment_money": {
                                "amount": "2.38",
                                "currency_code": "EUR"
                            }
                        },
                        "line_item": {
                            "id": 10191697739963,
                            "fulfillable_quantity": 1,
                            "price": "11.94",
                            "price_set": {
                                "shop_money": {
                                    "amount": "11.94",
                                    "currency_code": "EUR"
                                },
                                "presentment_money": {
                                    "amount": "11.94",
                                    "currency_code": "EUR"
                                }
                            },
                            "product_id": 6934599008443,
                            "quantity": 4,
                            "taxable": true,
                            "total_discount": "0.00",
                            "variant_id": 40752773988539,
                            "tax_lines": [
                                {
                                    "price": "9.55",
                                    "price_set": {
                                        "shop_money": {
                                            "amount": "9.55",
                                            "currency_code": "EUR"
                                        },
                                        "presentment_money": {
                                            "amount": "9.55",
                                            "currency_code": "EUR"
                                        }
                                    },
                                    "rate": 0.2,
                                    "title": "GB VAT"
                                }
                            ],
                            "duties": [],
                            "discount_allocations": []
                        }
                    }
                ],
                "duties": []
            }

 

0 Likes
GrahamS
Shopify Staff
Shopify Staff
130 19 25

Hello there,

There are situations that can cause rounding to occur on orders, usually resulting in a disparity of +/- 0.01c. It will vary from order to order, so in this case, your best bet would be to contact the support service directly to have them authenticate your account, login, and check the order data directly for more info.

Best,

Graham

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
lisiming
New Member
10 0 0

Hi Graham,

Thank you so much for your Reply. I thought I was writing to the support service. So How can I contact the support service?

Best,

Siming

0 Likes
awwdam
Shopify Staff
Shopify Staff
138 13 10

Hey @lisiming,

Just wanted to pass on a few more things here. While our team works to provide insights and answer general questions related to our API on these forums, we are unable to provide authenticated support or locate account info at this time. However, there are several options for contacting our Support directly, depending on what works best for you!

To reach our merchant support team, start by clicking here and logging into your store to select from several support options.  In the case that you are a Shopify Partner, you can head to the Support menu in your Partner Dashboard, and follow the links provided there - Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes