Untitled

 avatar
unknown
plain_text
2 years ago
15 kB
6
Indexable
{
    "status": "SUCCESS",
    "error_code": 5007,
    "error_msg": "Invoice fetched successfully",
    "data": {
        "id": 13,
        "order_id": "ord_01HC2AT8F1PTAJNTXCJPBPYXCZ",
        "supplier_id": "cus_01HBDPPAH1PQNM6K1W9ZQ7484C",
        "buyer_id": "cus_01HBTMBV3MPKWZ08FQ7G14H50A",
        "outlet_id": "bs_01HBTMBV45ADTQ041QTM2DYZMW",
        "ware_house_id": "bs_01HBDPPBMHJQ98CMMXMHAGWFXA",
        "invoice_number": "INV_0013",
        "orders": {
            "id": "ord_01HC2AT8F1PTAJNTXCJPBPYXCZ",
            "order_number": "PO-44",
            "status": "placed",
            "fulfillment_status": null,
            "payment_status": "not_paid",
            "grace_period": "15 days",
            "order_type": "Offline",
            "cart_id": "cart_01HC2AHWZ1Z7YH7K05672Q78M7",
            "buyer_id": "cus_01HBTMBV3MPKWZ08FQ7G14H50A",
            "supplier_id": "cus_01HBDPPAH1PQNM6K1W9ZQ7484C",
            "billing_address_id": "ad_01HB0WBMB986S0VZC9R21HY64M",
            "shipping_address_id": "addr_01HC2AHWZ1VFPVHH70T9FY8S9A",
            "canceled_at": "2023-10-06T11:08:57.143Z",
            "metadata": null,
            "invoice": null,
            "order_track_id": "order_track_01HC2AT8F1THZKF05PHZMSDX2V",
            "rating": null,
            "payment_option_id": "pay_opt_01HB8SZZW7PG7S0XG1D80F8EWY",
            "outlet_id": "bs_01HBTMBV45ADTQ041QTM2DYZMW",
            "ware_house_id": "bs_01HBDPPBMHJQ98CMMXMHAGWFXA",
            "notes": "gwqidgqwifgqw",
            "delivery_charge": 0,
            "vat_tax": 45,
            "sub_total": 225,
            "total": 270,
            "actual_amount": 0,
            "actual_vat": null,
            "product_count": 1,
            "order_track": {
                "id": "order_track_01HC2AT8F1THZKF05PHZMSDX2V",
                "created_at": "2023-10-06T11:08:57.192Z",
                "updated_at": "2023-10-06T11:08:57.192Z",
                "order_id": "ord_01HC2AT8F1PTAJNTXCJPBPYXCZ",
                "status": "placed",
                "placed_date": "2023-10-06T11:08:57.185Z",
                "confirmed_date": null,
                "packed_date": null,
                "delayed_date": null,
                "delivered_date": null,
                "expected_delivery": null,
                "cancelled_date": null
            },
            "billing_address": {
                "id": "ad_01HB0WBMB986S0VZC9R21HY64M",
                "created_at": "2023-09-23T11:21:21.515Z",
                "updated_at": "2023-09-23T11:21:21.515Z",
                "deleted_at": null,
                "customer_id": null,
                "company": null,
                "first_name": null,
                "last_name": null,
                "address_1": "test",
                "address_2": "test_emirites",
                "city": "area_test",
                "country_code": "af",
                "province": null,
                "postal_code": null,
                "phone": null,
                "metadata": null,
                "user_id": null,
                "business_setup_id": null
            },
            "shipping_address": {
                "id": "addr_01HC2AHWZ1VFPVHH70T9FY8S9A",
                "created_at": "2023-10-06T11:04:23.233Z",
                "updated_at": "2023-10-06T11:04:23.233Z",
                "deleted_at": null,
                "customer_id": null,
                "company": null,
                "first_name": null,
                "last_name": null,
                "address_1": null,
                "address_2": null,
                "city": null,
                "country_code": "ae",
                "province": null,
                "postal_code": null,
                "phone": null,
                "metadata": null,
                "user_id": null,
                "business_setup_id": null,
                "country": {
                    "id": 234,
                    "iso_2": "ae",
                    "iso_3": "are",
                    "num_code": 784,
                    "name": "UNITED ARAB EMIRATES",
                    "display_name": "United Arab Emirates",
                    "region_id": "reg_001",
                    "flag": null
                }
            },
            "items": [
                {
                    "id": "item_01HC2ARC2Y3YZMBP22DM22ESYZ",
                    "created_at": "2023-10-06T11:07:55.076Z",
                    "updated_at": "2023-10-06T11:08:57.378Z",
                    "cart_id": "cart_01HC2AHWZ1Z7YH7K05672Q78M7",
                    "order_id": null,
                    "swap_id": null,
                    "claim_order_id": null,
                    "original_item_id": null,
                    "order_edit_id": null,
                    "title": "potato",
                    "description": "potato",
                    "thumbnail": null,
                    "is_return": false,
                    "is_giftcard": false,
                    "should_merge": true,
                    "allow_discounts": true,
                    "has_shipping": false,
                    "unit_price": 75,
                    "variant_id": "variant_01HBTQ2QYS6FJ2794RYS3JT9SF",
                    "quantity": 3,
                    "fulfilled_quantity": null,
                    "returned_quantity": null,
                    "shipped_quantity": null,
                    "metadata": {},
                    "amount": null,
                    "delivered_quantity": null,
                    "master_order_id": "ord_01HC2AT8F1PTAJNTXCJPBPYXCZ",
                    "actual_amount": 0,
                    "variant": {
                        "id": "variant_01HBTQ2QYS6FJ2794RYS3JT9SF",
                        "created_at": "2023-10-03T12:09:22.705Z",
                        "updated_at": "2023-10-03T12:09:22.705Z",
                        "deleted_at": null,
                        "title": "potato",
                        "product_id": "product_01HBTQ2QYQG09C1E0ZBF8XBCYP",
                        "sku": null,
                        "barcode": null,
                        "ean": null,
                        "upc": null,
                        "variant_rank": 0,
                        "inventory_quantity": 10000,
                        "allow_backorder": false,
                        "manage_inventory": true,
                        "hs_code": null,
                        "origin_country": null,
                        "mid_code": null,
                        "material": null,
                        "weight": null,
                        "length": null,
                        "height": null,
                        "width": null,
                        "metadata": {
                            "offer": 5,
                            "order_unit": "carton",
                            "selected_unit": "carton",
                            "vat_percentage": 3.75,
                            "selected_quantity": 5
                        },
                        "product": {
                            "id": "product_01HBTQ2QYQG09C1E0ZBF8XBCYP",
                            "created_at": "2023-10-03T12:09:22.671Z",
                            "updated_at": "2023-10-03T12:09:22.671Z",
                            "deleted_at": null,
                            "title": "potato",
                            "subtitle": null,
                            "description": "apple",
                            "handle": null,
                            "is_giftcard": false,
                            "status": "published",
                            "thumbnail": null,
                            "weight": null,
                            "length": null,
                            "height": null,
                            "width": null,
                            "hs_code": "",
                            "origin_country": null,
                            "mid_code": null,
                            "material": "brand_001",
                            "collection_id": null,
                            "type_id": null,
                            "discountable": true,
                            "external_id": null,
                            "metadata": {
                                "certifications": [
                                    "c1",
                                    "c2"
                                ],
                                "product_details": [
                                    "Halal,Vegan",
                                    "Organic"
                                ]
                            },
                            "store_id": null,
                            "supplier_id": "cus_01HBDPPAH1PQNM6K1W9ZQ7484C",
                            "country_id": 234,
                            "is_deactivated": false,
                            "avaliabilty_status": true,
                            "product_code": null,
                            "product_type": "offline",
                            "ware_house_id": "bs_01HBDPPBMHJQ98CMMXMHAGWFXA",
                            "images": [
                                {
                                    "id": "img_01HBTQ2QYTZA6HDZPW3PVMVDTG",
                                    "created_at": "2023-10-03T12:09:22.710Z",
                                    "updated_at": "2023-10-03T12:09:22.710Z",
                                    "deleted_at": null,
                                    "url": "https://medusa-public-images.s3.eu-west-1.amazonaws.com/tee-white-back.png",
                                    "metadata": null
                                },
                                {
                                    "id": "img_01HBTQ2QYTCBYCQ2Q1H0B5RJMW",
                                    "created_at": "2023-10-03T12:09:22.710Z",
                                    "updated_at": "2023-10-03T12:09:22.710Z",
                                    "deleted_at": null,
                                    "url": "https://medusa-public-images.s3.eu-west-1.amazonaws.com/tee-black-front.png",
                                    "metadata": null
                                }
                            ]
                        }
                    }
                }
            ]
        },
        "supplier": {
            "id": "cus_01HBDPPAH1PQNM6K1W9ZQ7484C",
            "created_at": "2023-09-28T10:52:28.055Z",
            "updated_at": "2023-09-28T10:52:28.055Z",
            "deleted_at": null,
            "email": "test1234@mailnator.com",
            "first_name": "",
            "last_name": "",
            "billing_address_id": null,
            "phone": "",
            "has_account": true,
            "metadata": {},
            "buyer_db": false,
            "supplier_db": false,
            "isSupplierActivated": false,
            "isBuyerActivated": false,
            "is_email_verified": false,
            "is_phone_verified": false,
            "email_token": null,
            "phone_token": null,
            "buyer_id": "cus_01HBDB4S0TCHNY7ZSMP7V8HV6V",
            "isActivated": false,
            "profile_image": null,
            "username": null,
            "designation": null
        },
        "buyer": {
            "id": "cus_01HBTMBV3MPKWZ08FQ7G14H50A",
            "created_at": "2023-10-03T11:21:54.978Z",
            "updated_at": "2023-10-03T11:23:16.922Z",
            "deleted_at": null,
            "email": "udaygupta120@mailinator.com",
            "first_name": "uday",
            "last_name": "kumar",
            "billing_address_id": null,
            "phone": "9948649813",
            "has_account": true,
            "metadata": {},
            "buyer_db": false,
            "supplier_db": false,
            "isSupplierActivated": false,
            "isBuyerActivated": false,
            "is_email_verified": true,
            "is_phone_verified": false,
            "email_token": null,
            "phone_token": null,
            "buyer_id": null,
            "isActivated": false,
            "profile_image": null,
            "username": null,
            "designation": null
        },
        "outlet": {
            "id": "bs_01HBTMBV45ADTQ041QTM2DYZMW",
            "created_at": "2023-10-03T11:21:55.084Z",
            "updated_at": "2023-10-03T11:29:40.174Z",
            "business_name": "pavan traders",
            "email_id": "saii@divami.com",
            "logo_file": null,
            "contract_file": null,
            "license_number": "111",
            "license_file": "222",
            "vat_number": "333",
            "vat_file": "444",
            "min_order_value": null,
            "iban": null,
            "account_name": null,
            "status": "review",
            "is_approved": false,
            "type": "outlet",
            "grace_period": null,
            "modified_customer_id": null,
            "approved_admin_id": null,
            "customer_id": "cus_01HBTMBV3MPKWZ08FQ7G14H50A",
            "address_id": "addr_01HBTMT1A0YFP0JNAJ5R5GMFS0",
            "address": {
                "id": "addr_01HBTMT1A0YFP0JNAJ5R5GMFS0",
                "created_at": "2023-10-03T11:29:40.163Z",
                "updated_at": "2023-10-03T11:29:40.163Z",
                "deleted_at": null,
                "customer_id": "cus_01HBTMBV3MPKWZ08FQ7G14H50A",
                "company": null,
                "first_name": null,
                "last_name": null,
                "address_1": "begumpet",
                "address_2": "emirate_001",
                "city": "hyderabad",
                "country_code": null,
                "province": null,
                "postal_code": null,
                "phone": null,
                "metadata": null,
                "user_id": null,
                "business_setup_id": null
            }
        },
        "warehouse": {
            "id": "bs_01HBDPPBMHJQ98CMMXMHAGWFXA",
            "created_at": "2023-09-28T10:52:29.231Z",
            "updated_at": "2023-09-28T10:52:29.231Z",
            "business_name": "",
            "email_id": "test1234@mailnator.com",
            "logo_file": null,
            "contract_file": null,
            "license_number": null,
            "license_file": null,
            "vat_number": null,
            "vat_file": null,
            "min_order_value": null,
            "iban": null,
            "account_name": null,
            "status": "pending",
            "is_approved": false,
            "type": "offline_warhouse",
            "grace_period": "15 days",
            "modified_customer_id": null,
            "approved_admin_id": null,
            "customer_id": "cus_01HBDPPAH1PQNM6K1W9ZQ7484C",
            "address_id": null,
            "address": null
        }
    }
}
Editor is loading...