Create order API returns an array in response
-
Hi, I’m trying to send POST request(v2) to create an order. The response should return newly created order as written in the documentation https://woocommerce.github.io/woocommerce-rest-api-docs/v2.html#create-an-order
But it returns an array of orders and it seems there is no newly created order in this array.
Here is my response, some data was changed such names and addresses and etc.[ { "id": 15112, "parent_id": 0, "number": "SE15112", "order_key": "wc_order_DMzvECDjgt8BH", "created_via": "/psp/paymentorders/09f49364-22db-4fbd-2ed6-08d80ea0f1f0", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-12T09:44:38", "date_created_gmt": "2020-06-12T07:44:38", "date_modified": "2020-06-12T16:25:55", "date_modified_gmt": "2020-06-12T14:25:55", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "115.60", "total": "607.00", "total_tax": "121.40", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "95.199.6.122", "customer_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1", "customer_note": "SHIPPED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Stockholm", "state": "", "postcode": "14753", "country": "SE", "email": "fake email", "phone": "0707465787" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Stockholm", "state": "", "postcode": "14753", "country": "SE" }, "payment_method": "invoice", "payment_method_title": "869009686097", "transaction_id": "", "date_paid": "2020-06-12T09:44:39", "date_paid_gmt": "2020-06-12T07:44:39", "date_completed": "2020-06-12T14:40:20", "date_completed_gmt": "2020-06-12T12:40:20", "cart_hash": "", "meta_data": [ { "id": 33252, "key": "service_point", "value": "ICA Kvantum Tumba" }, { "id": 33253, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33254, "key": "service_point_id", "value": "531960" }, { "id": 33255, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33256, "key": "service_point_address", "value": "fake address 1" }, { "id": 33257, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33268, "key": "_shipping_email", "value": "fake email" }, { "id": 33269, "key": "_shipping_phone", "value": "0707465787" } ], "line_items": [ { "id": 1453, "name": "Sommarpresent", "product_id": 419, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "231.20", "subtotal_tax": "57.80", "total": "231.20", "total_tax": "57.80", "taxes": [ { "id": 1, "total": "57.8", "subtotal": "57.8" } ], "meta_data": [ { "id": 10964, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1013", "price": 231.2 }, { "id": 1512, "name": "Sommarpresent", "product_id": 419, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "231.20", "subtotal_tax": "57.80", "total": "231.20", "total_tax": "57.80", "taxes": [ { "id": 1, "total": "57.8", "subtotal": "57.8" } ], "meta_data": [], "sku": "SH1013", "price": 231.2 } ], "tax_lines": [ { "id": 1455, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "115.60", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1454, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15112" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15111, "parent_id": 0, "number": "SE15111", "order_key": "wc_order_bvnZr1pJDRbwE", "created_via": "/psp/paymentorders/6726d428-c556-4717-553f-08d80ddf1534", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-11T23:10:30", "date_created_gmt": "2020-06-11T21:10:30", "date_modified": "2020-06-12T16:25:55", "date_modified_gmt": "2020-06-12T14:25:55", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "103.20", "total": "545.00", "total_tax": "109.00", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "78.69.122.188", "customer_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.165", "customer_note": "SHIPPED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Enk?ping", "state": "", "postcode": "74536", "country": "SE", "email": "fake email", "phone": "0738193297" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Enk?ping", "state": "", "postcode": "74536", "country": "SE" }, "payment_method": "swish", "payment_method_title": "871774117737", "transaction_id": "", "date_paid": "2020-06-11T23:10:30", "date_paid_gmt": "2020-06-11T21:10:30", "date_completed": "2020-06-12T14:53:59", "date_completed_gmt": "2020-06-12T12:53:59", "cart_hash": "", "meta_data": [ { "id": 33206, "key": "service_point", "value": "Stora Coop Enk?ping" }, { "id": 33207, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33208, "key": "service_point_id", "value": "715378" }, { "id": 33209, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33210, "key": "service_point_address", "value": "fake address" }, { "id": 33211, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33222, "key": "_shipping_email", "value": "fake email" }, { "id": 33223, "key": "_shipping_phone", "value": "0738193297" } ], "line_items": [ { "id": 1450, "name": "Mygg- och f?stingmedel, spray", "product_id": 12, "variation_id": 0, "quantity": 2, "tax_class": "", "subtotal": "206.40", "subtotal_tax": "51.60", "total": "206.40", "total_tax": "51.60", "taxes": [ { "id": 1, "total": "51.6", "subtotal": "51.6" } ], "meta_data": [ { "id": 10943, "key": "_reduced_stock", "value": "2" } ], "sku": "SH1001", "price": 103.2 }, { "id": 1511, "name": "Mygg- och f?stingmedel, spray", "product_id": 12, "variation_id": 0, "quantity": 2, "tax_class": "", "subtotal": "206.40", "subtotal_tax": "51.60", "total": "206.40", "total_tax": "51.60", "taxes": [ { "id": 1, "total": "51.6", "subtotal": "51.6" } ], "meta_data": [], "sku": "SH1001", "price": 103.2 } ], "tax_lines": [ { "id": 1452, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "103.20", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1451, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake company address/wp-json/wc/v2/orders/15111" } ], "collection": [ { "href": "https://fake company address/wp-json/wc/v2/orders" } ] } }, { "id": 15110, "parent_id": 0, "number": "SE15110", "order_key": "wc_order_9qCNEr0hKdleE", "created_via": "/psp/paymentorders/f21eb547-30bd-4e8e-07b5-08d80ddd8652", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-11T17:28:24", "date_created_gmt": "2020-06-11T15:28:24", "date_modified": "2020-06-12T16:25:55", "date_modified_gmt": "2020-06-12T14:25:55", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "90.00", "total": "479.00", "total_tax": "95.80", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "92.34.124.195", "customer_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1", "customer_note": "SHIPPED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Uppsala", "state": "", "postcode": "75316", "country": "SE", "email": "fake email", "phone": "0735792611" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Uppsala", "state": "", "postcode": "75316", "country": "SE" }, "payment_method": "swish", "payment_method_title": "369474109352", "transaction_id": "", "date_paid": "2020-06-11T17:28:25", "date_paid_gmt": "2020-06-11T15:28:25", "date_completed": "2020-06-12T11:18:44", "date_completed_gmt": "2020-06-12T09:18:44", "cart_hash": "", "meta_data": [ { "id": 33160, "key": "service_point", "value": "ICA Luthagens Livs" }, { "id": 33161, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33162, "key": "service_point_id", "value": "776062" }, { "id": 33163, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33164, "key": "service_point_address", "value": "fake address" }, { "id": 33165, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33176, "key": "_shipping_email", "value": "fake email" }, { "id": 33177, "key": "_shipping_phone", "value": "0735792611" } ], "line_items": [ { "id": 1447, "name": "Sommarpresent", "product_id": 420, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "180.00", "subtotal_tax": "45.00", "total": "180.00", "total_tax": "45.00", "taxes": [ { "id": 1, "total": "45", "subtotal": "45" } ], "meta_data": [ { "id": 10922, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1014", "price": 180 }, { "id": 1510, "name": "Sommarpresent", "product_id": 420, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "180.00", "subtotal_tax": "45.00", "total": "180.00", "total_tax": "45.00", "taxes": [ { "id": 1, "total": "45", "subtotal": "45" } ], "meta_data": [], "sku": "SH1014", "price": 180 } ], "tax_lines": [ { "id": 1449, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "90.00", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1448, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake company address/wp-json/wc/v2/orders/15110" } ], "collection": [ { "href": "https://fake company address/wp-json/wc/v2/orders" } ] } }, { "id": 15109, "parent_id": 0, "number": "SE15109", "order_key": "wc_order_kLthvoMQKJrs3", "created_via": "/psp/paymentorders/6160b749-0ae9-4bd2-4266-08d80ddfa6de", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-11T15:47:36", "date_created_gmt": "2020-06-11T13:47:36", "date_modified": "2020-06-12T16:25:54", "date_modified_gmt": "2020-06-12T14:25:54", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "115.60", "total": "607.00", "total_tax": "121.40", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "130.243.152.126", "customer_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", "customer_note": "SHIPPED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Gagnef", "state": "", "postcode": "78530", "country": "SE", "email": "fake email", "phone": "0705529874" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Gagnef", "state": "", "postcode": "78530", "country": "SE" }, "payment_method": "creditcard", "payment_method_title": "660232396365", "transaction_id": "", "date_paid": "2020-06-11T15:47:36", "date_paid_gmt": "2020-06-11T13:47:36", "date_completed": "2020-06-12T11:18:43", "date_completed_gmt": "2020-06-12T09:18:43", "cart_hash": "", "meta_data": [ { "id": 33114, "key": "service_point", "value": "ICA N?ra Gagnefhallen" }, { "id": 33115, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33116, "key": "service_point_id", "value": "711063" }, { "id": 33117, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33118, "key": "service_point_address", "value": "fake address" }, { "id": 33119, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33130, "key": "_shipping_email", "value": "fake email" }, { "id": 33131, "key": "_shipping_phone", "value": "0705529874" } ], "line_items": [ { "id": 1444, "name": "Sommarpresent", "product_id": 419, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "231.20", "subtotal_tax": "57.80", "total": "231.20", "total_tax": "57.80", "taxes": [ { "id": 1, "total": "57.8", "subtotal": "57.8" } ], "meta_data": [ { "id": 10901, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1013", "price": 231.2 }, { "id": 1509, "name": "Sommarpresent", "product_id": 419, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "231.20", "subtotal_tax": "57.80", "total": "231.20", "total_tax": "57.80", "taxes": [ { "id": 1, "total": "57.8", "subtotal": "57.8" } ], "meta_data": [], "sku": "SH1013", "price": 231.2 } ], "tax_lines": [ { "id": 1446, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "115.60", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1445, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15109" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15108, "parent_id": 0, "number": "SE15108", "order_key": "wc_order_fW9CYNJUfvpsu", "created_via": "/psp/paymentorders/7e979555-5e2d-4722-fd0f-08d80d19bc41", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-10T22:57:45", "date_created_gmt": "2020-06-10T20:57:45", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "68.00", "total": "369.00", "total_tax": "73.80", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "95.199.174.162", "customer_user_agent": "Mozilla/5.0 (Linux; Android 9; Nokia 7.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Trollh?ttan", "state": "", "postcode": "46133", "country": "SE", "email": "fake email", "phone": "0737215950" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Trollh?ttan", "state": "", "postcode": "46133", "country": "SE" }, "payment_method": "swish", "payment_method_title": "927243227987", "transaction_id": "", "date_paid": "2020-06-10T22:57:46", "date_paid_gmt": "2020-06-10T20:57:46", "date_completed": "2020-06-11T14:24:54", "date_completed_gmt": "2020-06-11T12:24:54", "cart_hash": "", "meta_data": [ { "id": 33063, "key": "service_point", "value": "Kungs Frukt" }, { "id": 33064, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33065, "key": "service_point_id", "value": "277083" }, { "id": 33066, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33067, "key": "service_point_address", "value": "fake address" }, { "id": 33068, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33079, "key": "_shipping_email", "value": "fake email" }, { "id": 33080, "key": "_shipping_phone", "value": "0737215950" } ], "line_items": [ { "id": 1440, "name": "Saltvattentv?l", "product_id": 412, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [ { "id": 10879, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1003", "price": 68 }, { "id": 1441, "name": "Saltvattenschampo", "product_id": 58, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [ { "id": 10880, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1004", "price": 68 }, { "id": 1505, "name": "Saltvattentv?l", "product_id": 412, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [], "sku": "SH1003", "price": 68 }, { "id": 1506, "name": "Saltvattenschampo", "product_id": 58, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [], "sku": "SH1004", "price": 68 } ], "tax_lines": [ { "id": 1443, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "68.00", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1442, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15108" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15107, "parent_id": 0, "number": "SE15107", "order_key": "wc_order_vY7EfacZkBPBh", "created_via": "/psp/paymentorders/1c7dff89-6c95-4f87-df26-08d80c36757c", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-10T09:05:56", "date_created_gmt": "2020-06-10T07:05:56", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "99.20", "total": "525.00", "total_tax": "105.00", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "212.85.169.160", "customer_user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Jonsered", "state": "", "postcode": "43376", "country": "SE", "email": "fake email", "phone": "0763419836" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Jonsered", "state": "", "postcode": "43376", "country": "SE" }, "payment_method": "creditcard", "payment_method_title": "174896399745", "transaction_id": "", "date_paid": "2020-06-10T09:05:56", "date_paid_gmt": "2020-06-10T07:05:56", "date_completed": "2020-06-11T14:27:06", "date_completed_gmt": "2020-06-11T12:27:06", "cart_hash": "", "meta_data": [ { "id": 33009, "key": "service_point", "value": "Jonsereds Livs" }, { "id": 33010, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 33011, "key": "service_point_id", "value": "225473" }, { "id": 33012, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 33013, "key": "service_point_address", "value": "fake address" }, { "id": 33014, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 33025, "key": "_shipping_email", "value": "fake email" }, { "id": 33026, "key": "_shipping_phone", "value": "0763419836" } ], "line_items": [ { "id": 1436, "name": "Svensk Sj?kloss, fast tv?l p? rep", "product_id": 15020, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "95.20", "subtotal_tax": "23.80", "total": "95.20", "total_tax": "23.80", "taxes": [ { "id": 1, "total": "23.8", "subtotal": "23.8" } ], "meta_data": [ { "id": 10848, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1009", "price": 95.2 }, { "id": 1437, "name": "Mygg- och f?stingmedel, spray", "product_id": 12, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "103.20", "subtotal_tax": "25.80", "total": "103.20", "total_tax": "25.80", "taxes": [ { "id": 1, "total": "25.8", "subtotal": "25.8" } ], "meta_data": [ { "id": 10849, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1001", "price": 103.2 }, { "id": 1507, "name": "Mygg- och f?stingmedel, spray", "product_id": 12, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "103.20", "subtotal_tax": "25.80", "total": "103.20", "total_tax": "25.80", "taxes": [ { "id": 1, "total": "25.8", "subtotal": "25.8" } ], "meta_data": [], "sku": "SH1001", "price": 103.2 }, { "id": 1508, "name": "Svensk Sj?kloss, fast tv?l p? rep", "product_id": 15020, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "95.20", "subtotal_tax": "23.80", "total": "95.20", "total_tax": "23.80", "taxes": [ { "id": 1, "total": "23.8", "subtotal": "23.8" } ], "meta_data": [], "sku": "SH1009", "price": 95.2 } ], "tax_lines": [ { "id": 1439, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "99.20", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1438, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15107" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15106, "parent_id": 0, "number": "SE15106", "order_key": "wc_order_zha15zvT7OtSa", "created_via": "/psp/paymentorders/89e082a1-16a6-4c3a-88df-08d80c388eaf", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-10T08:01:15", "date_created_gmt": "2020-06-10T06:01:15", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "31.60", "total": "187.00", "total_tax": "37.40", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "212.181.164.159", "customer_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "LUND", "state": "", "postcode": "22361", "country": "SE", "email": "fake email", "phone": "0730473572" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "LUND", "state": "", "postcode": "22361", "country": "SE" }, "payment_method": "swish", "payment_method_title": "756989861354", "transaction_id": "", "date_paid": "2020-06-10T08:01:15", "date_paid_gmt": "2020-06-10T06:01:15", "date_completed": "2020-06-10T10:30:07", "date_completed_gmt": "2020-06-10T08:30:07", "cart_hash": "", "meta_data": [ { "id": 32963, "key": "service_point", "value": "Coop M?rtenstorget" }, { "id": 32964, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 32965, "key": "service_point_id", "value": "156864" }, { "id": 32966, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 32967, "key": "service_point_address", "value": "fake address" }, { "id": 32968, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 32979, "key": "_shipping_email", "value": "fake email" }, { "id": 32980, "key": "_shipping_phone", "value": "0730473572" } ], "line_items": [ { "id": 1433, "name": "Multireng?ring", "product_id": 416, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "63.20", "subtotal_tax": "15.80", "total": "63.20", "total_tax": "15.80", "taxes": [ { "id": 1, "total": "15.8", "subtotal": "15.8" } ], "meta_data": [ { "id": 10818, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1007", "price": 63.2 }, { "id": 1504, "name": "Multireng?ring", "product_id": 416, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "63.20", "subtotal_tax": "15.80", "total": "63.20", "total_tax": "15.80", "taxes": [ { "id": 1, "total": "15.8", "subtotal": "15.8" } ], "meta_data": [], "sku": "SH1007", "price": 63.2 } ], "tax_lines": [ { "id": 1435, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "31.60", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1434, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15106" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15105, "parent_id": 0, "number": "SE15105", "order_key": "wc_order_dxwafY0ARm6zL", "created_via": "/psp/paymentorders/5005c7ab-d52d-40c2-7463-08d80b8c4cdb", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-08T20:45:16", "date_created_gmt": "2020-06-08T18:45:16", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "113.20", "total": "595.00", "total_tax": "119.00", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "94.137.196.156", "customer_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "H?gersten", "state": "", "postcode": "12954", "country": "SE", "email": "fake email", "phone": "0763007291" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "H?gersten", "state": "", "postcode": "12954", "country": "SE" }, "payment_method": "invoice", "payment_method_title": "987413679289", "transaction_id": "", "date_paid": "2020-06-08T20:45:17", "date_paid_gmt": "2020-06-08T18:45:17", "date_completed": "2020-06-10T10:30:05", "date_completed_gmt": "2020-06-10T08:30:05", "cart_hash": "", "meta_data": [ { "id": 32917, "key": "service_point", "value": "Hemk?p Matextra Fru?ngen" }, { "id": 32918, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 32919, "key": "service_point_id", "value": "536979" }, { "id": 32920, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 32921, "key": "service_point_address", "value": "fake address" }, { "id": 32922, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 32933, "key": "_shipping_email", "value": "fake email" }, { "id": 32934, "key": "_shipping_phone", "value": "0763007291" } ], "line_items": [ { "id": 1428, "name": "Multireng?ring", "product_id": 61, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "63.20", "subtotal_tax": "15.80", "total": "63.20", "total_tax": "15.80", "taxes": [ { "id": 1, "total": "15.8", "subtotal": "15.8" } ], "meta_data": [ { "id": 10795, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1008", "price": 63.2 }, { "id": 1429, "name": "Saltvattentv?l", "product_id": 412, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [ { "id": 10796, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1003", "price": 68 }, { "id": 1430, "name": "Svensk Sj?kloss, fast tv?l p? rep", "product_id": 15020, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "95.20", "subtotal_tax": "23.80", "total": "95.20", "total_tax": "23.80", "taxes": [ { "id": 1, "total": "23.8", "subtotal": "23.8" } ], "meta_data": [ { "id": 10797, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1009", "price": 95.2 }, { "id": 1501, "name": "Saltvattentv?l", "product_id": 412, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [], "sku": "SH1003", "price": 68 }, { "id": 1502, "name": "Multireng?ring", "product_id": 61, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "63.20", "subtotal_tax": "15.80", "total": "63.20", "total_tax": "15.80", "taxes": [ { "id": 1, "total": "15.8", "subtotal": "15.8" } ], "meta_data": [], "sku": "SH1008", "price": 63.2 }, { "id": 1503, "name": "Svensk Sj?kloss, fast tv?l p? rep", "product_id": 15020, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "95.20", "subtotal_tax": "23.80", "total": "95.20", "total_tax": "23.80", "taxes": [ { "id": 1, "total": "23.8", "subtotal": "23.8" } ], "meta_data": [], "sku": "SH1009", "price": 95.2 } ], "tax_lines": [ { "id": 1432, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "113.20", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1431, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake address/wp-json/wc/v2/orders/15105" } ], "collection": [ { "href": "https://fake address/wp-json/wc/v2/orders" } ] } }, { "id": 15104, "parent_id": 0, "number": "SE15104", "order_key": "wc_order_lcrVcNJIoZjxO", "created_via": "/psp/paymentorders/973fc89d-655f-4eb1-7cfb-08d808611247", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-06T17:36:59", "date_created_gmt": "2020-06-06T15:36:59", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "168.00", "total": "869.00", "total_tax": "173.80", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "90.129.295.143", "customer_user_agent": "Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.2 Chrome/75.0.3770.143 Mobile Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "J?RF?LLA", "state": "", "postcode": "17740", "country": "SE", "email": "fake email", "phone": "0707393391" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "J?RF?LLA", "state": "", "postcode": "17740", "country": "SE" }, "payment_method": "swish", "payment_method_title": "686689125102", "transaction_id": "", "date_paid": "2020-06-06T17:36:59", "date_paid_gmt": "2020-06-06T15:36:59", "date_completed": "2020-06-10T10:30:03", "date_completed_gmt": "2020-06-10T08:30:03", "cart_hash": "", "meta_data": [ { "id": 32865, "key": "service_point", "value": "Riddarspelet Spelbutik" }, { "id": 32866, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 32867, "key": "service_point_id", "value": "540170" }, { "id": 32868, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 32869, "key": "service_point_address", "value": "fake address" }, { "id": 32870, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 32881, "key": "_shipping_email", "value": "fake email" }, { "id": 32882, "key": "_shipping_phone", "value": "0707393391" }, { "id": 32900, "key": "_wcpdf_packing_slip_date", "value": "1591616770" }, { "id": 32901, "key": "_wcpdf_packing_slip_date_formatted", "value": "2020-06-08 13:46:10" } ], "line_items": [ { "id": 1423, "name": "Balsam Leave-in", "product_id": 415, "variation_id": 0, "quantity": 3, "tax_class": "", "subtotal": "141.60", "subtotal_tax": "35.40", "total": "141.60", "total_tax": "35.40", "taxes": [ { "id": 1, "total": "35.4", "subtotal": "35.4" } ], "meta_data": [ { "id": 10754, "key": "_reduced_stock", "value": "3" } ], "sku": "SH1006", "price": 47.199999999999996 }, { "id": 1424, "name": "Multireng?ring", "product_id": 416, "variation_id": 0, "quantity": 2, "tax_class": "", "subtotal": "126.40", "subtotal_tax": "31.60", "total": "126.40", "total_tax": "31.60", "taxes": [ { "id": 1, "total": "31.6", "subtotal": "31.6" } ], "meta_data": [ { "id": 10755, "key": "_reduced_stock", "value": "2" } ], "sku": "SH1007", "price": 63.2 }, { "id": 1425, "name": "Saltvattenschampo", "product_id": 58, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [ { "id": 10756, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1004", "price": 68 }, { "id": 1497, "name": "Saltvattenschampo", "product_id": 58, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "68.00", "subtotal_tax": "17.00", "total": "68.00", "total_tax": "17.00", "taxes": [ { "id": 1, "total": "17", "subtotal": "17" } ], "meta_data": [], "sku": "SH1004", "price": 68 }, { "id": 1498, "name": "Balsam Leave-in", "product_id": 415, "variation_id": 0, "quantity": 3, "tax_class": "", "subtotal": "141.60", "subtotal_tax": "35.40", "total": "141.60", "total_tax": "35.40", "taxes": [ { "id": 1, "total": "35.4", "subtotal": "35.4" } ], "meta_data": [], "sku": "SH1006", "price": 47.199999999999996 }, { "id": 1499, "name": "Multireng?ring", "product_id": 416, "variation_id": 0, "quantity": 2, "tax_class": "", "subtotal": "126.40", "subtotal_tax": "31.60", "total": "126.40", "total_tax": "31.60", "taxes": [ { "id": 1, "total": "31.6", "subtotal": "31.6" } ], "meta_data": [], "sku": "SH1007", "price": 63.2 } ], "tax_lines": [ { "id": 1427, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "168.00", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1426, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake company address/wp-json/wc/v2/orders/15104" } ], "collection": [ { "href": "https://fake company address/wp-json/wc/v2/orders" } ] } }, { "id": 15103, "parent_id": 0, "number": "SE15103", "order_key": "wc_order_4Erpu8ft5cvBH", "created_via": "/psp/paymentorders/9aa62ad4-285c-44f7-6fc5-08d808611247", "version": "4.2.0", "status": "completed", "currency": "SEK", "date_created": "2020-06-05T18:37:13", "date_created_gmt": "2020-06-05T16:37:13", "date_modified": "2020-06-12T16:25:52", "date_modified_gmt": "2020-06-12T14:25:52", "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "23.20", "shipping_tax": "5.80", "cart_tax": "90.00", "total": "479.00", "total_tax": "95.80", "prices_include_tax": true, "customer_id": 0, "customer_ip_address": "185.176.256.195", "customer_user_agent": "Mozilla/5.0 (X11; CrOS x86_64 13020.55.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.77 Safari/537.36", "customer_note": "INVOICED", "billing": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Str?ngn?s", "state": "", "postcode": "64593", "country": "SE", "email": "fake email", "phone": "0796026301" }, "shipping": { "first_name": "fake first name", "last_name": "fake last name", "company": "", "address_1": "fake address 1", "address_2": "", "city": "Str?ngn?s", "state": "", "postcode": "64593", "country": "SE" }, "payment_method": "swish", "payment_method_title": "265396330397", "transaction_id": "", "date_paid": "2020-06-05T18:37:14", "date_paid_gmt": "2020-06-05T16:37:14", "date_completed": "2020-06-10T10:30:02", "date_completed_gmt": "2020-06-10T08:30:02", "cart_hash": "", "meta_data": [ { "id": 32819, "key": "service_point", "value": "Spelpoolen" }, { "id": 32820, "key": "_service_point", "value": "field_5d1205721c001" }, { "id": 32821, "key": "service_point_id", "value": "366186" }, { "id": 32822, "key": "_service_point_id", "value": "field_5d1205d01c002" }, { "id": 32823, "key": "service_point_address", "value": "fake address" }, { "id": 32824, "key": "_service_point_address", "value": "field_5d122b06c0501" }, { "id": 32835, "key": "_shipping_email", "value": "fake email" }, { "id": 32836, "key": "_shipping_phone", "value": "0796026301" }, { "id": 32897, "key": "_wcpdf_packing_slip_date", "value": "1591616758" }, { "id": 32898, "key": "_wcpdf_packing_slip_date_formatted", "value": "2020-06-08 13:45:58" } ], "line_items": [ { "id": 1420, "name": "Sommarpresent", "product_id": 420, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "180.00", "subtotal_tax": "45.00", "total": "180.00", "total_tax": "45.00", "taxes": [ { "id": 1, "total": "45", "subtotal": "45" } ], "meta_data": [ { "id": 10715, "key": "_reduced_stock", "value": "1" } ], "sku": "SH1014", "price": 180 }, { "id": 1500, "name": "Sommarpresent", "product_id": 420, "variation_id": 0, "quantity": 1, "tax_class": "", "subtotal": "180.00", "subtotal_tax": "45.00", "total": "180.00", "total_tax": "45.00", "taxes": [ { "id": 1, "total": "45", "subtotal": "45" } ], "meta_data": [], "sku": "SH1014", "price": 180 } ], "tax_lines": [ { "id": 1422, "rate_code": "25 % MOMS-1", "rate_id": 1, "label": "25 % moms", "compound": false, "tax_total": "90.00", "shipping_tax_total": "5.80", "rate_percent": 25, "meta_data": [] } ], "shipping_lines": [ { "id": 1421, "method_title": "Standardfrakt", "method_id": "", "instance_id": "", "total": "23.20", "total_tax": "5.80", "taxes": [ { "id": 1, "total": "5.8", "subtotal": "" } ], "meta_data": [] } ], "fee_lines": [], "coupon_lines": [], "refunds": [], "currency_symbol": "kr", "_links": { "self": [ { "href": "https://fake company address/wp-json/wc/v2/orders/15103" } ], "collection": [ { "href": "https://fake company address/wp-json/wc/v2/orders" } ] } } ]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Create order API returns an array in response’ is closed to new replies.