magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

Order API response missing country_of_manufacture #35798

Open devchris79 opened 2 years ago

devchris79 commented 2 years ago

Preconditions and environment

Steps to reproduce

Quite a simple one this, integrating our Magento store with DHL Express Commerce I see the Order API response doesn't contain country_of_manufacture. This is a very useful system product attribute for export paperwork.

Expected result

Respose with country_of_manufacture included

Actual result

Section of Order API response with product details:

"items": [ { "amount_refunded": 0, "base_amount_refunded": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_original_price": 64.97, "base_price": 64.97, "base_price_incl_tax": 77.96, "base_row_invoiced": 64.97, "base_row_total": 64.97, "base_row_total_incl_tax": 77.96, "base_tax_amount": 12.99, "base_tax_invoiced": 12.99, "created_at": "2022-07-21 13:27:16", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "free_shipping": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_invoiced": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 12199, "name": "dS3484 - 4 x 16A ethernet relay", "no_discount": 0, "order_id": 1, "original_price": 64.97, "price": 64.97, "price_incl_tax": 77.96, "product_id": 156, "product_type": "simple", "qty_canceled": 0, "qty_invoiced": 1, "qty_ordered": 1, "qty_refunded": 0, "qty_shipped": 1, "quote_item_id": 28041, "row_invoiced": 64.97, "row_total": 64.97, "row_total_incl_tax": 77.96, "row_weight": 0.147, "sku": "DS3484", "store_id": 1, "tax_amount": 12.99, "tax_invoiced": 12.99, "tax_percent": 20, "updated_at": "2022-07-21 15:05:36", "weee_tax_applied": "[]", "weight": 0.147 } ],

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 years ago

Hi @devchris79. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 2 years ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 2 years ago

Hi @devchris79 , Thank you for raising an issue . We would like to get more information on placing an order using api. Please confirm the steps for reproducing the issue like endpoint and request body .

Example :

Endpoint url : http://localurl/rest/default/V1/orders/create Request body : { "entity": { "adjustment_negative": 0, "adjustment_positive": 0, "applied_rule_ids": "string", "base_adjustment_negative": 0, "base_adjustment_positive": 0, "base_currency_code": "string", "base_discount_amount": 0, "base_discount_canceled": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_grand_total": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "base_subtotal": 0, "base_subtotal_canceled": 0, "base_subtotal_incl_tax": 0, "base_subtotal_invoiced": 0, "base_subtotal_refunded": 0, "base_tax_amount": 0, "base_tax_canceled": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_total_canceled": 0, "base_total_due": 0, "base_total_invoiced": 0, "base_total_invoiced_cost": 0, "base_total_offline_refunded": 0, "base_total_online_refunded": 0, "base_total_paid": 0, "base_total_qty_ordered": 0, "base_total_refunded": 0, "base_to_global_rate": 0, "base_to_order_rate": 0, "billing_address_id": 0, "can_ship_partially": 0, "can_ship_partially_item": 0, "coupon_code": "string", "created_at": "string", "customer_dob": "string", "customer_email": "string", "customer_firstname": "string", "customer_gender": 0, "customer_group_id": 0, "customer_id": 0, "customer_is_guest": 0, "customer_lastname": "string", "customer_middlename": "string", "customer_note": "string", "customer_note_notify": 0, "customer_prefix": "string", "customer_suffix": "string", "customer_taxvat": "string", "discount_amount": 0, "discount_canceled": 0, "discount_description": "string", "discount_invoiced": 0, "discount_refunded": 0, "edit_increment": 0, "email_sent": 0, "entity_id": 0, "ext_customer_id": "string", "ext_order_id": "string", "forced_shipment_with_invoice": 0, "global_currency_code": "string", "grand_total": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "hold_before_state": "string", "hold_before_status": "string", "increment_id": "string", "is_virtual": 0, "order_currency_code": "string", "original_increment_id": "string", "payment_authorization_amount": 0, "payment_auth_expiration": 0, "protect_code": "string", "quote_address_id": 0, "quote_id": 0, "relation_child_id": "string", "relation_child_real_id": "string", "relation_parent_id": "string", "relation_parent_real_id": "string", "remote_ip": "string", "shipping_amount": 0, "shipping_canceled": 0, "shipping_description": "string", "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "state": "string", "status": "string", "store_currency_code": "string", "store_id": 0, "store_name": "string", "store_to_base_rate": 0, "store_to_order_rate": 0, "subtotal": 0, "subtotal_canceled": 0, "subtotal_incl_tax": 0, "subtotal_invoiced": 0, "subtotal_refunded": 0, "tax_amount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_refunded": 0, "total_canceled": 0, "total_due": 0, "total_invoiced": 0, "total_item_count": 0, "total_offline_refunded": 0, "total_online_refunded": 0, "total_paid": 0, "total_qty_ordered": 0, "total_refunded": 0, "updated_at": "string", "weight": 0, "x_forwarded_for": "string", "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": { "extension_attributes": { "custom_options": [ {} ], "bundle_options": [ { "option_selections": [] } ], "downloadable_option": { "downloadable_links": [ null ] }, "giftcard_item_option": { "giftcard_amount": "string", "custom_giftcard_amount": 0, "giftcard_sender_name": "string", "giftcard_recipient_name": "string", "giftcard_sender_email": "string", "giftcard_recipient_email": "string", "giftcard_message": "string", "extension_attributes": { "giftcard_created_codes": [] } }, "configurable_item_options": [ {} ] } }, "extension_attributes": { "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_base_price": "string", "gw_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string" } } ], "billing_address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ "string" ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "payment": { "account_status": "string", "additional_data": "string", "additional_information": [ "string" ], "address_status": "string", "amount_authorized": 0, "amount_canceled": 0, "amount_ordered": 0, "amount_paid": 0, "amount_refunded": 0, "anet_trans_method": "string", "base_amount_authorized": 0, "base_amount_canceled": 0, "base_amount_ordered": 0, "base_amount_paid": 0, "base_amount_paid_online": 0, "base_amount_refunded": 0, "base_amount_refunded_online": 0, "base_shipping_amount": 0, "base_shipping_captured": 0, "base_shipping_refunded": 0, "cc_approval": "string", "cc_avs_status": "string", "cc_cid_status": "string", "cc_debug_request_body": "string", "cc_debug_response_body": "string", "cc_debug_response_serialized": "string", "cc_exp_month": "string", "cc_exp_year": "string", "cc_last4": "string", "cc_number_enc": "string", "cc_owner": "string", "cc_secure_verify": "string", "cc_ss_issue": "string", "cc_ss_start_month": "string", "cc_ss_start_year": "string", "cc_status": "string", "cc_status_description": "string", "cc_trans_id": "string", "cc_type": "string", "echeck_account_name": "string", "echeck_account_type": "string", "echeck_bank_name": "string", "echeck_routing_number": "string", "echeck_type": "string", "entity_id": 0, "last_trans_id": "string", "method": "string", "parent_id": 0, "po_number": "string", "protection_eligibility": "string", "quote_payment_id": 0, "shipping_amount": 0, "shipping_captured": 0, "shipping_refunded": 0, "extension_attributes": { "notification_message": "string", "vault_payment_token": { "entity_id": 0, "customer_id": 0, "public_hash": "string", "payment_method_code": "string", "type": "string", "created_at": "string", "expires_at": "string", "gateway_token": "string", "token_details": "string", "is_active": true, "is_visible": true } } }, "status_histories": [ { "comment": "string", "created_at": "string", "entity_id": 0, "entity_name": "string", "is_customer_notified": 0, "is_visible_on_front": 0, "parent_id": 0, "status": "string", "extension_attributes": {} } ], "extension_attributes": { "shipping_assignments": [ { "shipping": { "address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ null ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "method": "string", "total": { "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "shipping_amount": 0, "shipping_canceled": 0, "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "extension_attributes": {} }, "extension_attributes": {} }, "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": {}, "extension_attributes": {} } ], "stock_id": 0, "extension_attributes": {} } ], "payment_additional_info": [ { "key": "string", "value": "string" } ], "company_order_attributes": { "order_id": 0, "company_id": 0, "company_name": "string", "extension_attributes": {} }, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [ {} ] } } ], "item_applied_taxes": [ { "type": "string", "item_id": 0, "associated_item_id": 0, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [] } } ], "extension_attributes": {} } ], "converting_from_quote": true, "base_customer_balance_amount": 0, "customer_balance_amount": 0, "base_customer_balance_invoiced": 0, "customer_balance_invoiced": 0, "base_customer_balance_refunded": 0, "customer_balance_refunded": 0, "base_customer_balance_total_refunded": 0, "customer_balance_total_refunded": 0, "gift_cards": [ { "id": 0, "code": "string", "amount": 0, "base_amount": 0 } ], "base_gift_cards_amount": 0, "gift_cards_amount": 0, "base_gift_cards_invoiced": 0, "gift_cards_invoiced": 0, "base_gift_cards_refunded": 0, "gift_cards_refunded": 0, "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_allow_gift_receipt": "string", "gw_add_card": "string", "gw_base_price": "string", "gw_price": "string", "gw_items_base_price": "string", "gw_items_price": "string", "gw_card_base_price": "string", "gw_card_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_items_base_tax_amount": "string", "gw_items_tax_amount": "string", "gw_card_base_tax_amount": "string", "gw_card_tax_amount": "string", "gw_base_price_incl_tax": "string", "gw_price_incl_tax": "string", "gw_items_base_price_incl_tax": "string", "gw_items_price_incl_tax": "string", "gw_card_base_price_incl_tax": "string", "gw_card_price_incl_tax": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_items_base_price_invoiced": "string", "gw_items_price_invoiced": "string", "gw_card_base_price_invoiced": "string", "gw_card_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_items_base_tax_invoiced": "string", "gw_items_tax_invoiced": "string", "gw_card_base_tax_invoiced": "string", "gw_card_tax_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_items_base_price_refunded": "string", "gw_items_price_refunded": "string", "gw_card_base_price_refunded": "string", "gw_card_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string", "gw_items_base_tax_refunded": "string", "gw_items_tax_refunded": "string", "gw_card_base_tax_refunded": "string", "gw_card_tax_refunded": "string", "pickup_location_code": "string", "notification_sent": 0, "send_notification": 0, "reward_points_balance": 0, "reward_currency_amount": 0, "base_reward_currency_amount": 0 } } }

Regards,

devchris79 commented 2 years ago

Hi @engcom-Delta,

I am pretty sure that DHL Ecommerce is using the order rest API for there integration /V1/orders/{id}

Using curl I then retrieved like:

curl -X GET "http://mydomain.com/index.php/rest/V1/orders/176" -H "Authorization: Bearer cm6r32nsyqa1vdr40a9udgpel2jp4zyp"

engcom-Delta commented 2 years ago

Hi @devchris79 ,

Thanks for your inputs . it would be more helpful , if you can share your request body .

Endpoint url :POST :: http://localurl/rest/default/V1/orders/create

Ex: { "entity": { "adjustment_negative": 0, "adjustment_positive": 0, "applied_rule_ids": "string", "base_adjustment_negative": 0, "base_adjustment_positive": 0, "base_currency_code": "string", "base_discount_amount": 0, "base_discount_canceled": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_grand_total": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "base_subtotal": 0, "base_subtotal_canceled": 0, "base_subtotal_incl_tax": 0, "base_subtotal_invoiced": 0, "base_subtotal_refunded": 0, "base_tax_amount": 0, "base_tax_canceled": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_total_canceled": 0, "base_total_due": 0, "base_total_invoiced": 0, "base_total_invoiced_cost": 0, "base_total_offline_refunded": 0, "base_total_online_refunded": 0, "base_total_paid": 0, "base_total_qty_ordered": 0, "base_total_refunded": 0, "base_to_global_rate": 0, "base_to_order_rate": 0, "billing_address_id": 0, "can_ship_partially": 0, "can_ship_partially_item": 0, "coupon_code": "string", "created_at": "string", "customer_dob": "string", "customer_email": "string", "customer_firstname": "string", "customer_gender": 0, "customer_group_id": 0, "customer_id": 0, "customer_is_guest": 0, "customer_lastname": "string", "customer_middlename": "string", "customer_note": "string", "customer_note_notify": 0, "customer_prefix": "string", "customer_suffix": "string", "customer_taxvat": "string", "discount_amount": 0, "discount_canceled": 0, "discount_description": "string", "discount_invoiced": 0, "discount_refunded": 0, "edit_increment": 0, "email_sent": 0, "entity_id": 0, "ext_customer_id": "string", "ext_order_id": "string", "forced_shipment_with_invoice": 0, "global_currency_code": "string", "grand_total": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "hold_before_state": "string", "hold_before_status": "string", "increment_id": "string", "is_virtual": 0, "order_currency_code": "string", "original_increment_id": "string", "payment_authorization_amount": 0, "payment_auth_expiration": 0, "protect_code": "string", "quote_address_id": 0, "quote_id": 0, "relation_child_id": "string", "relation_child_real_id": "string", "relation_parent_id": "string", "relation_parent_real_id": "string", "remote_ip": "string", "shipping_amount": 0, "shipping_canceled": 0, "shipping_description": "string", "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "state": "string", "status": "string", "store_currency_code": "string", "store_id": 0, "store_name": "string", "store_to_base_rate": 0, "store_to_order_rate": 0, "subtotal": 0, "subtotal_canceled": 0, "subtotal_incl_tax": 0, "subtotal_invoiced": 0, "subtotal_refunded": 0, "tax_amount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_refunded": 0, "total_canceled": 0, "total_due": 0, "total_invoiced": 0, "total_item_count": 0, "total_offline_refunded": 0, "total_online_refunded": 0, "total_paid": 0, "total_qty_ordered": 0, "total_refunded": 0, "updated_at": "string", "weight": 0, "x_forwarded_for": "string", "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": { "extension_attributes": { "custom_options": [ {} ], "bundle_options": [ { "option_selections": [] } ], "downloadable_option": { "downloadable_links": [ null ] }, "giftcard_item_option": { "giftcard_amount": "string", "custom_giftcard_amount": 0, "giftcard_sender_name": "string", "giftcard_recipient_name": "string", "giftcard_sender_email": "string", "giftcard_recipient_email": "string", "giftcard_message": "string", "extension_attributes": { "giftcard_created_codes": [] } }, "configurable_item_options": [ {} ] } }, "extension_attributes": { "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_base_price": "string", "gw_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string" } } ], "billing_address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ "string" ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "payment": { "account_status": "string", "additional_data": "string", "additional_information": [ "string" ], "address_status": "string", "amount_authorized": 0, "amount_canceled": 0, "amount_ordered": 0, "amount_paid": 0, "amount_refunded": 0, "anet_trans_method": "string", "base_amount_authorized": 0, "base_amount_canceled": 0, "base_amount_ordered": 0, "base_amount_paid": 0, "base_amount_paid_online": 0, "base_amount_refunded": 0, "base_amount_refunded_online": 0, "base_shipping_amount": 0, "base_shipping_captured": 0, "base_shipping_refunded": 0, "cc_approval": "string", "cc_avs_status": "string", "cc_cid_status": "string", "cc_debug_request_body": "string", "cc_debug_response_body": "string", "cc_debug_response_serialized": "string", "cc_exp_month": "string", "cc_exp_year": "string", "cc_last4": "string", "cc_number_enc": "string", "cc_owner": "string", "cc_secure_verify": "string", "cc_ss_issue": "string", "cc_ss_start_month": "string", "cc_ss_start_year": "string", "cc_status": "string", "cc_status_description": "string", "cc_trans_id": "string", "cc_type": "string", "echeck_account_name": "string", "echeck_account_type": "string", "echeck_bank_name": "string", "echeck_routing_number": "string", "echeck_type": "string", "entity_id": 0, "last_trans_id": "string", "method": "string", "parent_id": 0, "po_number": "string", "protection_eligibility": "string", "quote_payment_id": 0, "shipping_amount": 0, "shipping_captured": 0, "shipping_refunded": 0, "extension_attributes": { "notification_message": "string", "vault_payment_token": { "entity_id": 0, "customer_id": 0, "public_hash": "string", "payment_method_code": "string", "type": "string", "created_at": "string", "expires_at": "string", "gateway_token": "string", "token_details": "string", "is_active": true, "is_visible": true } } }, "status_histories": [ { "comment": "string", "created_at": "string", "entity_id": 0, "entity_name": "string", "is_customer_notified": 0, "is_visible_on_front": 0, "parent_id": 0, "status": "string", "extension_attributes": {} } ], "extension_attributes": { "shipping_assignments": [ { "shipping": { "address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ null ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "method": "string", "total": { "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "shipping_amount": 0, "shipping_canceled": 0, "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "extension_attributes": {} }, "extension_attributes": {} }, "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": {}, "extension_attributes": {} } ], "stock_id": 0, "extension_attributes": {} } ], "payment_additional_info": [ { "key": "string", "value": "string" } ], "company_order_attributes": { "order_id": 0, "company_id": 0, "company_name": "string", "extension_attributes": {} }, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [ {} ] } } ], "item_applied_taxes": [ { "type": "string", "item_id": 0, "associated_item_id": 0, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [] } } ], "extension_attributes": {} } ], "converting_from_quote": true, "base_customer_balance_amount": 0, "customer_balance_amount": 0, "base_customer_balance_invoiced": 0, "customer_balance_invoiced": 0, "base_customer_balance_refunded": 0, "customer_balance_refunded": 0, "base_customer_balance_total_refunded": 0, "customer_balance_total_refunded": 0, "gift_cards": [ { "id": 0, "code": "string", "amount": 0, "base_amount": 0 } ], "base_gift_cards_amount": 0, "gift_cards_amount": 0, "base_gift_cards_invoiced": 0, "gift_cards_invoiced": 0, "base_gift_cards_refunded": 0, "gift_cards_refunded": 0, "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_allow_gift_receipt": "string", "gw_add_card": "string", "gw_base_price": "string", "gw_price": "string", "gw_items_base_price": "string", "gw_items_price": "string", "gw_card_base_price": "string", "gw_card_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_items_base_tax_amount": "string", "gw_items_tax_amount": "string", "gw_card_base_tax_amount": "string", "gw_card_tax_amount": "string", "gw_base_price_incl_tax": "string", "gw_price_incl_tax": "string", "gw_items_base_price_incl_tax": "string", "gw_items_price_incl_tax": "string", "gw_card_base_price_incl_tax": "string", "gw_card_price_incl_tax": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_items_base_price_invoiced": "string", "gw_items_price_invoiced": "string", "gw_card_base_price_invoiced": "string", "gw_card_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_items_base_tax_invoiced": "string", "gw_items_tax_invoiced": "string", "gw_card_base_tax_invoiced": "string", "gw_card_tax_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_items_base_price_refunded": "string", "gw_items_price_refunded": "string", "gw_card_base_price_refunded": "string", "gw_card_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string", "gw_items_base_tax_refunded": "string", "gw_items_tax_refunded": "string", "gw_card_base_tax_refunded": "string", "gw_card_tax_refunded": "string", "pickup_location_code": "string", "notification_sent": 0, "send_notification": 0, "reward_points_balance": 0, "reward_currency_amount": 0, "base_reward_currency_amount": 0 } } }

devchris79 commented 2 years ago

Hi @engcom-Delta,

If you have a look at the sample data you have posted the items array contains no country of manufacture. Magento has this in the product attributes (as a system attribute), so surely it should be in that data? DHL for instance require the country of manufacture and the harmonised code (not supported by default Magento attributes).

engcom-Delta commented 2 years ago

Hi @devchris79 , We had verified the response and observed that country of manufacture is missing in response. Here is dev doc url for reference. Hence we are marking it feature request. https://magento.redoc.ly/2.4.4-admin/tag/orderscreate

Response: { "adjustment_negative": 0, "adjustment_positive": 0, "applied_rule_ids": "string", "base_adjustment_negative": 0, "base_adjustment_positive": 0, "base_currency_code": "string", "base_discount_amount": 0, "base_discount_canceled": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_grand_total": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "base_subtotal": 0, "base_subtotal_canceled": 0, "base_subtotal_incl_tax": 0, "base_subtotal_invoiced": 0, "base_subtotal_refunded": 0, "base_tax_amount": 0, "base_tax_canceled": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_total_canceled": 0, "base_total_due": 0, "base_total_invoiced": 0, "base_total_invoiced_cost": 0, "base_total_offline_refunded": 0, "base_total_online_refunded": 0, "base_total_paid": 0, "base_total_qty_ordered": 0, "base_total_refunded": 0, "base_to_global_rate": 0, "base_to_order_rate": 0, "billing_address_id": 0, "can_ship_partially": 0, "can_ship_partially_item": 0, "coupon_code": "string", "created_at": "string", "customer_dob": "string", "customer_email": "string", "customer_firstname": "string", "customer_gender": 0, "customer_group_id": 0, "customer_id": 0, "customer_is_guest": 0, "customer_lastname": "string", "customer_middlename": "string", "customer_note": "string", "customer_note_notify": 0, "customer_prefix": "string", "customer_suffix": "string", "customer_taxvat": "string", "discount_amount": 0, "discount_canceled": 0, "discount_description": "string", "discount_invoiced": 0, "discount_refunded": 0, "edit_increment": 0, "email_sent": 0, "entity_id": 0, "ext_customer_id": "string", "ext_order_id": "string", "forced_shipment_with_invoice": 0, "global_currency_code": "string", "grand_total": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "hold_before_state": "string", "hold_before_status": "string", "increment_id": "string", "is_virtual": 0, "order_currency_code": "string", "original_increment_id": "string", "payment_authorization_amount": 0, "payment_auth_expiration": 0, "protect_code": "string", "quote_address_id": 0, "quote_id": 0, "relation_child_id": "string", "relation_child_real_id": "string", "relation_parent_id": "string", "relation_parent_real_id": "string", "remote_ip": "string", "shipping_amount": 0, "shipping_canceled": 0, "shipping_description": "string", "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "state": "string", "status": "string", "store_currency_code": "string", "store_id": 0, "store_name": "string", "store_to_base_rate": 0, "store_to_order_rate": 0, "subtotal": 0, "subtotal_canceled": 0, "subtotal_incl_tax": 0, "subtotal_invoiced": 0, "subtotal_refunded": 0, "tax_amount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_refunded": 0, "total_canceled": 0, "total_due": 0, "total_invoiced": 0, "total_item_count": 0, "total_offline_refunded": 0, "total_online_refunded": 0, "total_paid": 0, "total_qty_ordered": 0, "total_refunded": 0, "updated_at": "string", "weight": 0, "x_forwarded_for": "string", "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": { "extension_attributes": { "custom_options": [ { "option_id": "string", "option_value": "string", "extension_attributes": {} } ], "bundle_options": [ { "option_id": 0, "option_qty": 0, "option_selections": [ null ], "extension_attributes": {} } ], "downloadable_option": { "downloadable_links": [ 0 ] }, "giftcard_item_option": { "giftcard_amount": "string", "custom_giftcard_amount": 0, "giftcard_sender_name": "string", "giftcard_recipient_name": "string", "giftcard_sender_email": "string", "giftcard_recipient_email": "string", "giftcard_message": "string", "extension_attributes": { "giftcard_created_codes": [ null ] } }, "configurable_item_options": [ { "option_id": "string", "option_value": 0, "extension_attributes": {} } ] } }, "extension_attributes": { "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_base_price": "string", "gw_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string" } } ], "billing_address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ "string" ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "payment": { "account_status": "string", "additional_data": "string", "additional_information": [ "string" ], "address_status": "string", "amount_authorized": 0, "amount_canceled": 0, "amount_ordered": 0, "amount_paid": 0, "amount_refunded": 0, "anet_trans_method": "string", "base_amount_authorized": 0, "base_amount_canceled": 0, "base_amount_ordered": 0, "base_amount_paid": 0, "base_amount_paid_online": 0, "base_amount_refunded": 0, "base_amount_refunded_online": 0, "base_shipping_amount": 0, "base_shipping_captured": 0, "base_shipping_refunded": 0, "cc_approval": "string", "cc_avs_status": "string", "cc_cid_status": "string", "cc_debug_request_body": "string", "cc_debug_response_body": "string", "cc_debug_response_serialized": "string", "cc_exp_month": "string", "cc_exp_year": "string", "cc_last4": "string", "cc_number_enc": "string", "cc_owner": "string", "cc_secure_verify": "string", "cc_ss_issue": "string", "cc_ss_start_month": "string", "cc_ss_start_year": "string", "cc_status": "string", "cc_status_description": "string", "cc_trans_id": "string", "cc_type": "string", "echeck_account_name": "string", "echeck_account_type": "string", "echeck_bank_name": "string", "echeck_routing_number": "string", "echeck_type": "string", "entity_id": 0, "last_trans_id": "string", "method": "string", "parent_id": 0, "po_number": "string", "protection_eligibility": "string", "quote_payment_id": 0, "shipping_amount": 0, "shipping_captured": 0, "shipping_refunded": 0, "extension_attributes": { "notification_message": "string", "vault_payment_token": { "entity_id": 0, "customer_id": 0, "public_hash": "string", "payment_method_code": "string", "type": "string", "created_at": "string", "expires_at": "string", "gateway_token": "string", "token_details": "string", "is_active": true, "is_visible": true } } }, "status_histories": [ { "comment": "string", "created_at": "string", "entity_id": 0, "entity_name": "string", "is_customer_notified": 0, "is_visible_on_front": 0, "parent_id": 0, "status": "string", "extension_attributes": {} } ], "extension_attributes": { "shipping_assignments": [ { "shipping": { "address": { "address_type": "string", "city": "string", "company": "string", "country_id": "string", "customer_address_id": 0, "customer_id": 0, "email": "string", "entity_id": 0, "fax": "string", "firstname": "string", "lastname": "string", "middlename": "string", "parent_id": 0, "postcode": "string", "prefix": "string", "region": "string", "region_code": "string", "region_id": 0, "street": [ "string" ], "suffix": "string", "telephone": "string", "vat_id": "string", "vat_is_valid": 0, "vat_request_date": "string", "vat_request_id": "string", "vat_request_success": 0, "extension_attributes": {} }, "method": "string", "total": { "base_shipping_amount": 0, "base_shipping_canceled": 0, "base_shipping_discount_amount": 0, "base_shipping_discount_tax_compensation_amnt": 0, "base_shipping_incl_tax": 0, "base_shipping_invoiced": 0, "base_shipping_refunded": 0, "base_shipping_tax_amount": 0, "base_shipping_tax_refunded": 0, "shipping_amount": 0, "shipping_canceled": 0, "shipping_discount_amount": 0, "shipping_discount_tax_compensation_amount": 0, "shipping_incl_tax": 0, "shipping_invoiced": 0, "shipping_refunded": 0, "shipping_tax_amount": 0, "shipping_tax_refunded": 0, "extension_attributes": {} }, "extension_attributes": {} }, "items": [ { "additional_data": "string", "amount_refunded": 0, "applied_rule_ids": "string", "base_amount_refunded": 0, "base_cost": 0, "base_discount_amount": 0, "base_discount_invoiced": 0, "base_discount_refunded": 0, "base_discount_tax_compensation_amount": 0, "base_discount_tax_compensation_invoiced": 0, "base_discount_tax_compensation_refunded": 0, "base_original_price": 0, "base_price": 0, "base_price_incl_tax": 0, "base_row_invoiced": 0, "base_row_total": 0, "base_row_total_incl_tax": 0, "base_tax_amount": 0, "base_tax_before_discount": 0, "base_tax_invoiced": 0, "base_tax_refunded": 0, "base_weee_tax_applied_amount": 0, "base_weee_tax_applied_row_amnt": 0, "base_weee_tax_disposition": 0, "base_weee_tax_row_disposition": 0, "created_at": "string", "description": "string", "discount_amount": 0, "discount_invoiced": 0, "discount_percent": 0, "discount_refunded": 0, "event_id": 0, "ext_order_item_id": "string", "free_shipping": 0, "gw_base_price": 0, "gw_base_price_invoiced": 0, "gw_base_price_refunded": 0, "gw_base_tax_amount": 0, "gw_base_tax_amount_invoiced": 0, "gw_base_tax_amount_refunded": 0, "gw_id": 0, "gw_price": 0, "gw_price_invoiced": 0, "gw_price_refunded": 0, "gw_tax_amount": 0, "gw_tax_amount_invoiced": 0, "gw_tax_amount_refunded": 0, "discount_tax_compensation_amount": 0, "discount_tax_compensation_canceled": 0, "discount_tax_compensation_invoiced": 0, "discount_tax_compensation_refunded": 0, "is_qty_decimal": 0, "is_virtual": 0, "item_id": 0, "locked_do_invoice": 0, "locked_do_ship": 0, "name": "string", "no_discount": 0, "order_id": 0, "original_price": 0, "parent_item_id": 0, "price": 0, "price_incl_tax": 0, "product_id": 0, "product_type": "string", "qty_backordered": 0, "qty_canceled": 0, "qty_invoiced": 0, "qty_ordered": 0, "qty_refunded": 0, "qty_returned": 0, "qty_shipped": 0, "quote_item_id": 0, "row_invoiced": 0, "row_total": 0, "row_total_incl_tax": 0, "row_weight": 0, "sku": "string", "store_id": 0, "tax_amount": 0, "tax_before_discount": 0, "tax_canceled": 0, "tax_invoiced": 0, "tax_percent": 0, "tax_refunded": 0, "updated_at": "string", "weee_tax_applied": "string", "weee_tax_applied_amount": 0, "weee_tax_applied_row_amount": 0, "weee_tax_disposition": 0, "weee_tax_row_disposition": 0, "weight": 0, "parent_item": {}, "product_option": { "extension_attributes": { "custom_options": [], "bundle_options": [], "configurable_item_options": [] } }, "extension_attributes": { "gift_message": {}, "gw_id": "string", "gw_base_price": "string", "gw_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string" } } ], "stock_id": 0, "extension_attributes": {} } ], "payment_additional_info": [ { "key": "string", "value": "string" } ], "company_order_attributes": { "order_id": 0, "company_id": 0, "company_name": "string", "extension_attributes": {} }, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [ { "code": "string", "title": "string", "percent": 0, "extension_attributes": {} } ] } } ], "item_applied_taxes": [ { "type": "string", "item_id": 0, "associated_item_id": 0, "applied_taxes": [ { "code": "string", "title": "string", "percent": 0, "amount": 0, "base_amount": 0, "extension_attributes": { "rates": [ null ] } } ], "extension_attributes": {} } ], "converting_from_quote": true, "base_customer_balance_amount": 0, "customer_balance_amount": 0, "base_customer_balance_invoiced": 0, "customer_balance_invoiced": 0, "base_customer_balance_refunded": 0, "customer_balance_refunded": 0, "base_customer_balance_total_refunded": 0, "customer_balance_total_refunded": 0, "gift_cards": [ { "id": 0, "code": "string", "amount": 0, "base_amount": 0 } ], "base_gift_cards_amount": 0, "gift_cards_amount": 0, "base_gift_cards_invoiced": 0, "gift_cards_invoiced": 0, "base_gift_cards_refunded": 0, "gift_cards_refunded": 0, "gift_message": { "gift_message_id": 0, "customer_id": 0, "sender": "string", "recipient": "string", "message": "string", "extension_attributes": { "entity_id": "string", "entity_type": "string", "wrapping_id": 0, "wrapping_allow_gift_receipt": true, "wrapping_add_printed_card": true } }, "gw_id": "string", "gw_allow_gift_receipt": "string", "gw_add_card": "string", "gw_base_price": "string", "gw_price": "string", "gw_items_base_price": "string", "gw_items_price": "string", "gw_card_base_price": "string", "gw_card_price": "string", "gw_base_tax_amount": "string", "gw_tax_amount": "string", "gw_items_base_tax_amount": "string", "gw_items_tax_amount": "string", "gw_card_base_tax_amount": "string", "gw_card_tax_amount": "string", "gw_base_price_incl_tax": "string", "gw_price_incl_tax": "string", "gw_items_base_price_incl_tax": "string", "gw_items_price_incl_tax": "string", "gw_card_base_price_incl_tax": "string", "gw_card_price_incl_tax": "string", "gw_base_price_invoiced": "string", "gw_price_invoiced": "string", "gw_items_base_price_invoiced": "string", "gw_items_price_invoiced": "string", "gw_card_base_price_invoiced": "string", "gw_card_price_invoiced": "string", "gw_base_tax_amount_invoiced": "string", "gw_tax_amount_invoiced": "string", "gw_items_base_tax_invoiced": "string", "gw_items_tax_invoiced": "string", "gw_card_base_tax_invoiced": "string", "gw_card_tax_invoiced": "string", "gw_base_price_refunded": "string", "gw_price_refunded": "string", "gw_items_base_price_refunded": "string", "gw_items_price_refunded": "string", "gw_card_base_price_refunded": "string", "gw_card_price_refunded": "string", "gw_base_tax_amount_refunded": "string", "gw_tax_amount_refunded": "string", "gw_items_base_tax_refunded": "string", "gw_items_tax_refunded": "string", "gw_card_base_tax_refunded": "string", "gw_card_tax_refunded": "string", "pickup_location_code": "string", "notification_sent": 0, "send_notification": 0, "reward_points_balance": 0, "reward_currency_amount": 0, "base_reward_currency_amount": 0 } }

devchris79 commented 2 years ago

Hi @engcom-Delta

Thanks for that, would it be possible to also have a field hs_code (harmonized tariff code) within the product attributes that gets posted? DHL express commerce can also do with that. If you look at the bottom of the page below they make specific note of Magento lacking those attributes:

https://support.dhlexpresscommerce.com/hc/en-gb/articles/360036285991-Set-up-Magento-2