Order does not have line refund information
-
Good morning,
I’m tryng to retrive order for each line but with no sucess. I have the total refund but I need the quantities refunded for each line.
Image of the order: https://ibb.co/TRNHP5W
REST API information:{ "id": 53, "parent_id": 0, "status": "completed", "currency": "EUR", "version": "6.8.0", "prices_include_tax": false, "date_created": "2022-08-29T11:57:43", "date_modified": "2022-08-29T11:59:04", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "0.00", "shipping_tax": "0.00", "cart_tax": "0.00", "total": "549.40", "total_tax": "0.00", "customer_id": 0, "order_key": "wc_order_JzHaI4lQuUG7w", "billing": { "first_name": "", "last_name": "", "company": "", "address_1": "", "address_2": "", "city": "", "state": "", "postcode": "", "country": "", "email": "", "phone": "" }, "shipping": { "first_name": "", "last_name": "", "company": "", "address_1": "", "address_2": "", "city": "", "state": "", "postcode": "", "country": "", "phone": "" }, "payment_method": "", "payment_method_title": "", "transaction_id": "", "customer_ip_address": "", "customer_user_agent": "", "created_via": "admin", "customer_note": "", "date_completed": "2022-08-29T11:58:26", "date_paid": "2022-08-29T11:58:26", "cart_hash": "", "number": "53", "meta_data": [ { "id": 695, "key": "_new_order_email_sent", "value": "true" } ], "line_items": [ { "id": 34, "name": "garrafaDeVodka", "product_id": 42, "variation_id": 0, "quantity": 4, "tax_class": "", "subtotal": "320.00", "subtotal_tax": "0.00", "total": "320.00", "total_tax": "0.00", "taxes": [], "meta_data": [], "sku": "", "price": 80, "image": { "id": "", "src": "" }, "parent_name": null }, { "id": 35, "name": "luckystrike", "product_id": 40, "variation_id": 0, "quantity": 3, "tax_class": "", "subtotal": "221.40", "subtotal_tax": "0.00", "total": "221.40", "total_tax": "0.00", "taxes": [], "meta_data": [ { "id": 298, "key": "_reduced_stock", "value": "3", "display_key": "_reduced_stock", "display_value": "3" } ], "sku": "wine-0-0", "price": 73.8, "image": { "id": "", "src": "" }, "parent_name": null }, { "id": 36, "name": "sandesDePresunto", "product_id": 52, "variation_id": 0, "quantity": 2, "tax_class": "", "subtotal": "8.00", "subtotal_tax": "0.00", "total": "8.00", "total_tax": "0.00", "taxes": [], "meta_data": [], "sku": "", "price": 4, "image": { "id": "", "src": "" }, "parent_name": null } ], "tax_lines": [], "shipping_lines": [], "fee_lines": [], "coupon_lines": [], "refunds": [ { "id": 54, "reason": "", "total": "-391.60" } ], "payment_url": "https://localhost/wordpress/checkout/order-pay/53/?pay_for_order=true&key=wc_order_JzHaI4lQuUG7w", "is_editable": false, "needs_payment": false, "needs_processing": true, "date_created_gmt": "2022-08-29T10:57:43", "date_modified_gmt": "2022-08-29T10:59:04", "date_completed_gmt": "2022-08-29T10:58:26", "date_paid_gmt": "2022-08-29T10:58:26", "currency_symbol": "€", "_links": { "self": [ { "href": "https://localhost/wordpress/wp-json/wc/v3/orders/53" } ], "collection": [ { "href": "https://localhost/wordpress/wp-json/wc/v3/orders" } ] } }
Thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Order does not have line refund information’ is closed to new replies.