Refund order adjustmens

StephanBillbee
New Member
2 0 0

Hello,
I am facing a problem with OrderAdjustments. For one customer, always two "refund_discrepany" entries appear for refunds, both with a positive amount. What does this mean and how should I deal with it?

 

"refunds": [
    {
        "id": 12345,
        "order_id": 54321,
        "created_at": "2020-12-10T12:40:02+01:00",
        "note": "Retour",
        "user_id": 112233,
        "processed_at": "2020-12-10T12:40:02+01:00",
        "restock": false,
        "duties": [],
        "admin_graphql_api_id": "gid:\/\/shopify\/Refund\/12345",
        "refund_line_items": [
            {
                "id": 12345,
                "quantity": 1,
                "line_item_id": 11111,
                "location_id": null,
                "restock_type": "no_restock",
                "subtotal": 55.14,
                "total_tax": 2.63,
                "subtotal_set": {
                    "shop_money": {
                        "amount": "55.14",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "55.14",
                        "currency_code": "EUR"
                    }
                },
                "total_tax_set": {
                    "shop_money": {
                        "amount": "2.63",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "2.63",
                        "currency_code": "EUR"
                    }
                },
                "line_item": {
                    "id": 11111,
                    "variant_id": 223344,
                    "title": "abcde",
                    "quantity": 1,
                    "sku": "xyz",
                    "variant_title": "tttttt",
                    "vendor": "Bundle",
                    "fulfillment_service": "manual",
                    "product_id": 1906122424366,
                    "requires_shipping": true,
                    "taxable": true,
                    "gift_card": false,
                    "name": "abcde - tttttt",
                    "variant_inventory_management": "shopify",
                    "properties": [],
                    "product_exists": true,
                    "fulfillable_quantity": 0,
                    "grams": 1000,
                    "price": "79.90",
                    "total_discount": "0.00",
                    "fulfillment_status": "fulfilled",
                    "price_set": {
                        "shop_money": {
                            "amount": "79.90",
                            "currency_code": "EUR"
                        },
                        "presentment_money": {
                            "amount": "79.90",
                            "currency_code": "EUR"
                        }
                    },
                    "total_discount_set": {
                        "shop_money": {
                            "amount": "0.00",
                            "currency_code": "EUR"
                        },
                        "presentment_money": {
                            "amount": "0.00",
                            "currency_code": "EUR"
                        }
                    },
                    "discount_allocations": [
                        {
                            "amount": "24.76",
                            "discount_application_index": 0,
                            "amount_set": {
                                "shop_money": {
                                    "amount": "24.76",
                                    "currency_code": "EUR"
                                },
                                "presentment_money": {
                                    "amount": "24.76",
                                    "currency_code": "EUR"
                                }
                            }
                        }
                    ],
                    "duties": [],
                    "admin_graphql_api_id": "gid:\/\/shopify\/LineItem\/11111",
                    "tax_lines": [
                        {
                            "title": "MwSt",
                            "price": "2.63",
                            "rate": 0.05,
                            "price_set": {
                                "shop_money": {
                                    "amount": "2.63",
                                    "currency_code": "EUR"
                                },
                                "presentment_money": {
                                    "amount": "2.63",
                                    "currency_code": "EUR"
                                }
                            }
                        }
                    ],
                    "origin_location": {
                        "id": 321321321,
                        "country_code": "DE",
                        "province_code": "",
                        "name": "xyz",
                        "address1": "abc",
                        "address2": "",
                        "city": "xyz",
                        "zip": "12345"
                    }
                }
            }
        ],
        "transactions": [
            {
                "id": 123456789,
                "order_id": 54321,
                "kind": "refund",
                "gateway": "shopify_payments",
                "status": "success",
                "message": null,
                "created_at": "2020-12-10T12:40:01+01:00",
                "test": false,
                "authorization": "ddd",
                "location_id": null,
                "user_id": 112233,
                "parent_id": 56789,
                "processed_at": "2020-12-10T12:40:01+01:00",
                "device_id": null,
                "error_code": null,
                "source_name": "456789",
                "payment_details": {
                    "credit_card_bin": null,
                    "avs_result_code": null,
                    "cvv_result_code": null,
                    "credit_card_number": "•••• •••• •••• ",
                    "credit_card_company": "unknown"
                },
                "receipt": {
                    "id": "ddd",
                    "object": "refund",
                    "amount": 5014,
                    "balance_transaction": "qwertzui",
                    "charge": "poiuztr",
                    "created": 1607600401,
                    "currency": "eur",
                    "metadata": {
                        "order_transaction_id": "123456789",
                        "order_id": "54321",
                        "payments_refund_id": "56789123",
                        "payment_service": "true",
                        "payment_object_type": "Refund",
                        "payment_object_id": "23456789"
                    },
                    "payment_intent": "mnbvcxyjhgfds",
                    "reason": null,
                    "receipt_number": null,
                    "source_transfer_reversal": null,
                    "status": "succeeded",
                    "transfer_reversal": null
                },
                "amount": "50.14",
                "currency": "EUR",
                "admin_graphql_api_id": "gid:\/\/shopify\/OrderTransaction\/123456789"
            }
        ],
        "order_adjustments": [
            {
                "id": 98765432,
                "order_id": 54321,
                "refund_id": 12345,
                "amount": "5.00",
                "tax_amount": "0.00",
                "kind": "refund_discrepancy",
                "reason": "Refund discrepancy",
                "amount_set": {
                    "shop_money": {
                        "amount": "5.00",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "5.00",
                        "currency_code": "EUR"
                    }
                },
                "tax_amount_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    }
                }
            },
            {
                "id": 4567876543,
                "order_id": 54321,
                "refund_id": 12345,
                "amount": "50.14",
                "tax_amount": "0.00",
                "kind": "refund_discrepancy",
                "reason": "Refund discrepancy",
                "amount_set": {
                    "shop_money": {
                        "amount": "50.14",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "50.14",
                        "currency_code": "EUR"
                    }
                },
                "tax_amount_set": {
                    "shop_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    },
                    "presentment_money": {
                        "amount": "0.00",
                        "currency_code": "EUR"
                    }
                }
            }
        ]
    }
]
0 Likes