Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wordpress and woocommerce rest api
#5
Ok.
Postman.
Get method:http://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders
Authorization : 0Auth1
Consumer Key :ck_399bad935831bff0bc342e8edd3f47a14f1fa63b
Consumer Secret :cs_d193e669d87da71f46a6ea827d26a0a97adae9f6


and the response is :


[
    {
        "id"8777,
        "parent_id"0,
        "status""pending",
        "currency""EUR",
        "version""6.4.1",
        "prices_include_tax"false,
        "date_created""2022-07-19T13:40:38",
        "date_modified""2022-07-19T13:40:39",
        "discount_total""0.00",
        "discount_tax""0.00",
        "shipping_total""0.00",
        "shipping_tax""0.00",
        "cart_tax""0.00",
        "total""0.00",
        "total_tax""0.00",
        "customer_id"0,
        "order_key""wc_order_MBq29JDMl1kQ9",
        "billing": {
            "first_name""",
            "last_name""",
            "company""",
            "address_1""",
            "address_2""",
            "city""",
            "state""",
            "postcode""",
            "country""",
            "email""",
            "phone"""
        },
        "shipping": {
            "first_name""",
            "last_name""",
            "company""",
            "address_1""",
            "address_2""",
            "city""",
            "state""",
            "postcode""",
            "country""",
            "phone"""
        },
        "payment_method""",
        "payment_method_title""",
        "transaction_id""",
        "customer_ip_address""",
        "customer_user_agent""",
        "created_via""rest-api",
        "customer_note""",
        "date_completed"null,
        "date_paid"null,
        "cart_hash""",
        "number""8777",
        "meta_data": [],
        "line_items": [],
        "tax_lines": [],
        "shipping_lines": [],
        "fee_lines": [],
        "coupon_lines": [],
        "refunds": [],
        "payment_url""https://charalampidis.globaltouchdev.eu/checkout/order-pay/8777/?pay_for_order=true&key=wc_order_MBq29JDMl1kQ9",
        "date_created_gmt""2022-07-19T13:40:38",
        "date_modified_gmt""2022-07-19T13:40:39",
        "date_completed_gmt"null,
        "date_paid_gmt"null,
        "currency_symbol""€",
        "_links": {
            "self": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders/8777"
                }
            ],
            "collection": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders"
                }
            ]
        }
    },
    {
        "id"8775,
        "parent_id"0,
        "status""pending",
        "currency""EUR",
        "version""6.4.1",
        "prices_include_tax"false,
        "date_created""2022-06-29T11:59:39",
        "date_modified""2022-06-29T12:02:16",
        "discount_total""0.00",
        "discount_tax""0.00",
        "shipping_total""0.00",
        "shipping_tax""0.00",
        "cart_tax""0.00",
        "total""140.00",
        "total_tax""0.00",
        "customer_id"0,
        "order_key""wc_order_r6kGTbbIqsWVA",
        "billing": {
            "first_name""",
            "last_name""",
            "company""",
            "address_1""",
            "address_2""",
            "city""",
            "state""",
            "postcode""",
            "country""",
            "email""",
            "phone"""
        },
        "shipping": {
            "first_name""",
            "last_name""",
            "company""",
            "address_1""",
            "address_2""",
            "city""",
            "state""",
            "postcode""",
            "country""",
            "phone"""
        },
        "payment_method""",
        "payment_method_title""",
        "transaction_id""",
        "customer_ip_address""",
        "customer_user_agent""",
        "created_via""admin",
        "customer_note""",
        "date_completed"null,
        "date_paid"null,
        "cart_hash""",
        "number""8775",
        "meta_data": [],
        "line_items": [
            {
                "id"3,
                "name""Xειροποίητο σκουλαρίκι επιχρυσωμένο με φύλλο ελιάς",
                "product_id"8554,
                "variation_id"0,
                "quantity"5,
                "tax_class""",
                "subtotal""140.00",
                "subtotal_tax""0.00",
                "total""140.00",
                "total_tax""0.00",
                "taxes": [],
                "meta_data": [],
                "sku""GPE200-4001",
                "price"28,
                "parent_name"null
            }
        ],
        "tax_lines": [],
        "shipping_lines": [],
        "fee_lines": [],
        "coupon_lines": [],
        "refunds": [],
        "payment_url""https://charalampidis.globaltouchdev.eu/checkout/order-pay/8775/?pay_for_order=true&key=wc_order_r6kGTbbIqsWVA",
        "date_created_gmt""2022-06-29T11:59:39",
        "date_modified_gmt""2022-06-29T12:02:16",
        "date_completed_gmt"null,
        "date_paid_gmt"null,
        "currency_symbol""€",
        "_links": {
            "self": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders/8775"
                }
            ],
            "collection": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders"
                }
            ]
        }
    },
    {
        "id"8771,
        "parent_id"0,
        "status""on-hold",
        "currency""EUR",
        "version""6.4.1",
        "prices_include_tax"false,
        "date_created""2022-05-25T17:18:14",
        "date_modified""2022-05-25T17:18:14",
        "discount_total""0.00",
        "discount_tax""0.00",
        "shipping_total""1.00",
        "shipping_tax""0.00",
        "cart_tax""0.00",
        "total""26.00",
        "total_tax""0.00",
        "customer_id"0,
        "order_key""wc_order_vWfmn6r7pdC4G",
        "billing": {
            "first_name""chris",
            "last_name""test",
            "company""",
            "address_1""σδαδσδ",
            "address_2""",
            "city""Βραχάτι",
            "state""",
            "postcode""17122",
            "country""GR",
            "email""tsohinho@gmail.com",
            "phone""6984373463"
        },
        "shipping": {
            "first_name""chris",
            "last_name""test",
            "company""",
            "address_1""σδαδσδ",
            "address_2""",
            "city""Βραχάτι",
            "state""",
            "postcode""17122",
            "country""GR",
            "phone"""
        },
        "payment_method""bacs",
        "payment_method_title""Άμεση Τραπεζική Μεταφορά",
        "transaction_id""",
        "customer_ip_address""79.167.196.178",
        "customer_user_agent""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36",
        "created_via""checkout",
        "customer_note""",
        "date_completed"null,
        "date_paid"null,
        "cart_hash""5b111df2cc180a31342e6d011b820216",
        "number""8771",
        "meta_data": [
            {
                "id"5961,
                "key""is_vat_exempt",
                "value""no"
            },
            {
                "id"5965,
                "key""_new_order_email_sent",
                "value""true"
            }
        ],
        "line_items": [
            {
                "id"1,
                "name""Aσημένια αλυσίδα ποδιού με ματάκι",
                "product_id"8547,
                "variation_id"0,
                "quantity"1,
                "tax_class""",
                "subtotal""25.00",
                "subtotal_tax""0.00",
                "total""25.00",
                "total_tax""0.00",
                "taxes": [],
                "meta_data": [],
                "sku""SA124-3001",
                "price"25,
                "parent_name"null
            }
        ],
        "tax_lines": [],
        "shipping_lines": [
            {
                "id"2,
                "method_title""Μεταφορικά",
                "method_id""wczfee",
                "instance_id""0",
                "total""1.00",
                "total_tax""0.00",
                "taxes": [],
                "meta_data": []
            }
        ],
        "fee_lines": [],
        "coupon_lines": [],
        "refunds": [],
        "payment_url""https://charalampidis.globaltouchdev.eu/checkout/order-pay/8771/?pay_for_order=true&key=wc_order_vWfmn6r7pdC4G",
        "date_created_gmt""2022-05-25T17:18:14",
        "date_modified_gmt""2022-05-25T17:18:14",
        "date_completed_gmt"null,
        "date_paid_gmt"null,
        "currency_symbol""€",
        "_links": {
            "self": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders/8771"
                }
            ],
            "collection": [
                {
                    "href""https://charalampidis.globaltouchdev.eu/wp-json/wc/v2/orders"
                }
            ]
        }
    }
]
Reply


Messages In This Thread
RE: wordpress and woocommerce rest api - by GeorgeBairaktaris - 07-20-2022, 06:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)