wir haben hier ein ähnliches Problem mit Export/API Anbindung an Easybill. Wenn ein Kunde (für einen Teilbetrag) einen Gutschein verwendet, so wird das in den von Shopify übermittelten Daten nur insoweit gekennzeichnet, das “gift_card” (auch) als payment gateway auftaucht. Es wird aber nicht klar, in welcher Höhe ein Gutschein verwendet wurde und der Endbetrag der Bestellung ist der volle Betrag der Bestellung.
Um den Gutschein in der Rechnung ausweisen zu können müsste shopify aber den noch offenen Betrag und die Höhe der Gutscheinzahlung angeben.
Show More
css { "orders": [ { "id": xxxxxxxxxxx "admin_graphql_api_id": "gid://shopify/Order/xxxxxxx", "app_id": 580111, "browser_ip": xxxxxxxxxxx "buyer_accepts_marketing": false, "cancel_reason": null, "cancelled_at": null, "cart_token": xxxxxxxxxxxx "checkout_id": xxxxxxxxxxxxx "checkout_token": xxxxxxxxxxxxxxx "client_details": { "accept_language": "en-US,en;q=0.9,de-DE;q=0.8,de;q=0.7", "browser_height": 937, "browser_ip": xxxxxxxxxxxxxxx "browser_width": 1920, "session_hash": null, "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36" }, "closed_at": null, "confirmed": true, "contact_email": xxxxxxxxxxx "created_at": "2021-09-28T12:31:44+02:00", "currency": "EUR", "current_subtotal_price": "49.00", "current_subtotal_price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "current_total_discounts": "0.00", "current_total_discounts_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "current_total_duties_set": null, "current_total_price": "49.00", "current_total_price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "current_total_tax": "7.82", "current_total_tax_set": { "shop_money": { "amount": "7.82", "currency_code": "EUR" }, "presentment_money": { "amount": "7.82", "currency_code": "EUR" } }, "customer_locale": "de", "device_id": null, "discount_codes": [ ], "email": xxxxxxxxxxxx "financial_status": "partially_paid", "fulfillment_status": "fulfilled", "gateway": "Vorkasse Per Überweisung", "landing_site": "/", "landing_site_ref": null, "location_id": null, "name": "OS-13454", "note": "", "note_attributes": [ { "name": "language", "value": "de" } ], "number": 12454, "order_number": 13454, "order_status_url": "xxxxxxxxxxxx", "original_total_duties_set": null, "payment_gateway_names": [ "gift_card", "Vorkasse Per Überweisung" ], "phone": null, "presentment_currency": "EUR", "processed_at": "2021-09-28T12:31:44+02:00", "processing_method": "manual", "reference": null, "referring_site": "", "source_identifier": null, "source_name": "web", "source_url": null, "subtotal_price": "49.00", "subtotal_price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "tags": "", "tax_lines": [ { "price": "7.82", "rate": 0.19, "title": "DE MwSt", "price_set": { "shop_money": { "amount": "7.82", "currency_code": "EUR" }, "presentment_money": { "amount": "7.82", "currency_code": "EUR" } } } ], "taxes_included": true, "test": false, "token": xxxxxxxxxx "total_discounts": "0.00", "total_discounts_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "total_line_items_price": "49.00", "total_line_items_price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "total_outstanding": "29.00", "total_price": "49.00", "total_price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "total_price_usd": "57.44", "total_shipping_price_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "total_tax": "7.82", "total_tax_set": { "shop_money": { "amount": "7.82", "currency_code": "EUR" }, "presentment_money": { "amount": "7.82", "currency_code": "EUR" } }, "total_tip_received": "0.00", "total_weight": 0, "updated_at": "2021-09-28T12:33:07+02:00", "user_id": null, "billing_address": { "first_name": xxxxxx "address1": xxxxxxxxxxx9", "phone": "", "city": xxxxxxxx "zip": xxxxxxxxxx "province": null, "country": "Germany", "last_name": xxxxxxxxxxx "address2": "", "company": "", "latitude": xxxxxxx "longitude": xxxxxxxxx "name": xxxxxxxxxxxxx "country_code": "DE", "province_code": null }, "customer": { "id": 1775680257, "email": xxxxxxxxx, "accepts_marketing": false, "created_at": "2015-11-07T13:43:02+01:00", "updated_at": "2021-09-28T12:31:45+02:00", "first_name": xxxxx "last_name": "xxxxxxxxx", "orders_count": 69, "state": "enabled", "total_spent": "128.03", "last_order_id": xxxxx "note": null, "verified_email": true, "multipass_identifier": null, "tax_exempt": false, "phone": null, "tags": "", "last_order_name": "OS-xxxxxxx", "currency": "EUR", "accepts_marketing_updated_at": "2018-12-23T00:49:05+01:00", "marketing_opt_in_level": null, "tax_exemptions": [ ], "admin_graphql_api_id": "gid://shopify/Customer/xxxx", "default_address": { "id": xxxxxxxx "customer_id": xxxxxxxx "first_name": xxxxxxxx "last_name": "xxxxxxx", "company": "", "address1": xxxxxxxx9", "address2": "", "city": xxxxxxxxx "province": null, "country": "Germany", "zip": xxxxxxxxx "phone": "", "name": "xxxxxxxxxx "province_code": null, "country_code": "DE", "country_name": "Germany", "default": true } }, "discount_applications": [ ], "fulfillments": [ { "id": xxxxxxxx "admin_graphql_api_id": "gid://shopify/Fulfillment/xxxxxxxxxxx", "created_at": "2021-09-28T12:33:07+02:00", "location_id": xxxxx "name": "OS-xxxxx "order_id": xxxxxx "receipt": { }, "service": "manual", "shipment_status": null, "status": "success", "tracking_company": null, "tracking_number": null, "tracking_numbers": [ ], "tracking_url": null, "tracking_urls": [ ], "updated_at": "2021-09-28T12:33:07+02:00", "line_items": [ { "id": 10727451033795, "admin_graphql_api_id": "gid://shopify/LineItem/1xxxxxxxx", "fulfillable_quantity": 0, "fulfillment_service": "manual", "fulfillment_status": "fulfilled", "gift_card": false, "grams": 0, "name": "xxxxxxxx", "origin_location": { "id": 282078529, "country_code": "DE", "province_code": "", "name": "xxxxxxx", "address1": "xxxxxx, "address2": "", "city": xxxxxxx "zip": xxxxxxxx }, "price": "49.00", "price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "product_exists": true, "product_id": xxxxxxxxx "properties": [ { "name": xxxxxx "value": "nxxxxxxxxxt" }, { "name": "Gravurwunsch Vorderseite", "value": "xxxxxxxxx : )" }, { "name": "Gravurwunsch Rückseite", "value": "" }, { "name": "Bemerkung/Symbole", "value": "" } ], "quantity": 1, "requires_shipping": true, "sku": "", "taxable": true, "title": "xxxxxxxx", "total_discount": "0.00", "total_discount_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "variant_id": xxxxxxxxx "variant_inventory_management": "shopify", "variant_title": xxxxxxxx "vendor": ".", "tax_lines": [ { "price": "7.82", "price_set": { "shop_money": { "amount": "7.82", "currency_code": "EUR" }, "presentment_money": { "amount": "7.82", "currency_code": "EUR" } }, "rate": 0.19, "title": "DE MwSt" } ], "duties": [ ], "discount_allocations": [ ] } ] } ], "line_items": [ { "id": 10727451033795, "admin_graphql_api_id": "gid://shopify/LineItem/xxxxxxxx", "fulfillable_quantity": 0, "fulfillment_service": "manual", "fulfillment_status": "fulfilled", "gift_card": false, "grams": 0, "name": "xxxxxxx", "origin_location": { "id": xxxxxx "country_code": "DE", "province_code": "", "name": "xxxxxxx", "address1": "xxxxxxxx", "address2": "", "city": "xxxxxxx", "zip": "xxxxxxxx" }, "price": "49.00", "price_set": { "shop_money": { "amount": "49.00", "currency_code": "EUR" }, "presentment_money": { "amount": "49.00", "currency_code": "EUR" } }, "product_exists": true, "product_id": xxxxxxx "properties": [ { "name": "Gravurschrift", "value": "nicht ausgewählt" }, { "name": "Gravurwunsch Vorderseite", "value": "xxxxxxx : )" }, { "name": "Gravurwunsch Rückseite", "value": "" }, { "name": "Bemerkung/Symbole", "value": "" } ], "quantity": 1, "requires_shipping": true, "sku": "", "taxable": true, "title": "xxxxxxxx", "total_discount": "0.00", "total_discount_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "variant_id": xxxxxxx "variant_inventory_management": "shopify", "variant_title": xxxxxxxx "vendor": ".", "tax_lines": [ { "price": "7.82", "price_set": { "shop_money": { "amount": "7.82", "currency_code": "EUR" }, "presentment_money": { "amount": "7.82", "currency_code": "EUR" } }, "rate": 0.19, "title": "DE MwSt" } ], "duties": [ ], "discount_allocations": [ ] } ], "refunds": [ ], "shipping_address": { "first_name": xxxxxx "address1": xxxxxxx9", "phone": "", "city": xxxxxxx "zip": xxxxxxxxx "province": null, "country": xxxxx "last_name": xxxxxxx "address2": "", "company": "", "latitude": xxxxxxxx "longitude": xxxxx "name": "xxxxxxxxx", "country_code": "DE", "province_code": null }, "shipping_lines": [ { "id": xxxxxx "carrier_identifier": null, "code": "DHL Paket", "delivery_category": null, "discounted_price": "0.00", "discounted_price_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "phone": null, "price": "0.00", "price_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "requested_fulfillment_service_id": null, "source": "shopify", "title": "DHL Paket", "tax_lines": [ { "price": "0.00", "price_set": { "shop_money": { "amount": "0.00", "currency_code": "EUR" }, "presentment_money": { "amount": "0.00", "currency_code": "EUR" } }, "rate": 0.19, "title": "DE MwSt" } ], "discount_allocations": [ ] } ] } ] }