{ "resources": { "currency": { "symbol": "$", "name": "US Dollar", "symbol_native": "$", "code": "USD", "includes_tax": false }, "region": { "id": "reg_01F0YES4R67TXXC1QBQ8P54A8Y", "name": "Test Region", "currency_code": "usd", "tax_rate": 0, "tax_code": null, "countries": [ { "id": 236, "iso_2": "us", "iso_3": "usa", "num_code": 840, "name": "UNITED STATES", "display_name": "United States", "region_id": "region" } ], "payment_providers": [], "fulfillment_providers": [ { "id": "test-ful", "is_installed": true } ], "created_at": "2021-03-16T21:24:00.389Z", "updated_at": "2021-03-16T21:24:00.389Z", "deleted_at": null, "metadata": null }, "shipping_option": { "id": "so_01F0YES4T6ZHH52Z4KZEDT1312", "name": "Free Shipping", "region_id": "reg_01F0YES4R67TXXC1QBQ8P54A8Y", "region": { "id": "reg_01F0YES4R67TXXC1QBQ8P54A8Y", "name": "Test Region", "currency_code": "usd", "tax_rate": "0", "tax_code": null, "payment_providers": [], "fulfillment_providers": [ { "id": "test-ful", "is_installed": true } ], "created_at": "2021-03-16T21:24:00.389Z", "updated_at": "2021-03-16T21:24:00.389Z", "deleted_at": null, "metadata": null }, "profile_id": "sp_01F0YES4Q77FGG18GPFWW5BZP9", "profile": { "id": "sp_01F0YES4Q77FGG18GPFWW5BZP9", "name": "Default Shipping Profile", "type": "default", "created_at": "2021-03-16T21:24:00.307Z", "updated_at": "2021-03-16T21:24:00.307Z", "deleted_at": null, "metadata": null }, "provider_id": "test-ful", "price_type": "flat_rate", "amount": 100, "is_return": false, "requirements": [], "data": {}, "created_at": "2021-03-16T21:24:00.439Z", "updated_at": "2021-03-16T21:24:00.439Z", "deleted_at": null, "metadata": null }, "cart": { "id": "cart_01F0YES82DA12W88KQ90EY6W4C", "email": null, "type": "default", "payment_session": null, "customer": null, "billing_address_id": null, "billing_address": null, "payment_authorized_at": null, "shipping_address_id": "addr_01F0YES82D4Y16JKGF0NFSSS3P", "shipping_address": { "id": "addr_01F0YES82D4Y16JKGF0NFSSS3P", "customer_id": null, "company": null, "first_name": null, "last_name": null, "address_1": null, "address_2": null, "city": null, "country_code": "us", "province": null, "postal_code": null, "phone": null, "created_at": "2021-03-16T21:24:03.766Z", "updated_at": "2021-03-16T21:24:03.766Z", "deleted_at": null, "metadata": null }, "items": [], "region_id": "region", "region": { "id": "region", "name": "Test Region", "currency_code": "usd", "tax_rate": "0", "tax_code": null, "countries": [ { "id": 236, "iso_2": "us", "iso_3": "usa", "num_code": 840, "name": "UNITED STATES", "display_name": "United States", "region_id": "region" } ], "payment_providers": [], "fulfillment_providers": [], "created_at": "2021-03-16T21:24:03.743Z", "updated_at": "2021-03-16T21:24:03.743Z", "deleted_at": null, "metadata": null }, "discounts": [], "gift_cards": [], "customer_id": null, "payment_sessions": [], "payment_id": null, "payment": null, "shipping_methods": [], "completed_at": null, "created_at": "2021-03-16T21:24:03.766Z", "updated_at": "2021-03-16T21:24:03.857Z", "deleted_at": null, "metadata": null, "idempotency_key": null, "context": { "ip": "::ffff:127.0.0.1", "user_agent": "axios/0.21.1" }, "shipping_total": 0, "discount_total": 0, "tax_total": 0, "gift_card_total": 0, "subtotal": 0, "total": 0 }, "product_collection": { "id": "pcol_01F0YESBFAZ0DV6V831JXWH0BG", "title": "Summer Collection", "handle": "summer-collection", "created_at": "2021-03-16T21:24:07.273Z", "updated_at": "2021-03-16T21:24:07.273Z", "deleted_at": null, "metadata": null }, "gift_card": { "id": "gift_01F0YESEKYJ5578VCAPV4XYFDP", "code": "1J3U-WXO0-SZ0H-O5QU", "value": 1000, "balance": 1000, "region_id": "reg_01F0YESEJP4H8Q517XSPGK6TD6", "region": { "id": "reg_01F0YESEJP4H8Q517XSPGK6TD6", "name": "Test Region", "currency_code": "usd", "tax_rate": "0", "tax_code": null, "payment_providers": [], "fulfillment_providers": [], "created_at": "2021-03-16T21:24:10.454Z", "updated_at": "2021-03-16T21:24:10.454Z", "deleted_at": null, "metadata": null }, "is_disabled": false, "ends_at": null, "created_at": "2021-03-16T21:24:10.484Z", "updated_at": "2021-03-16T21:24:10.484Z", "deleted_at": null, "metadata": null }, "product": { "id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "title": "Test product", "subtitle": null, "description": "test-product-description", "handle": "test-product", "is_giftcard": false, "images": [], "thumbnail": null, "options": [ { "id": "opt_01F0YESHQBZVKCEXJ24BS6PCX3", "title": "size", "product_id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, { "id": "opt_01F0YESHQBV8MMNN4V7WSDMH6G", "title": "color", "product_id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null } ], "variants": [ { "id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "title": "Test variant", "product_id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "product": { "id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "title": "Test product", "subtitle": null, "description": "test-product-description", "handle": "test-product", "is_giftcard": false, "thumbnail": null, "profile_id": "sp_01F0YESHMKRB4V3B7F6MVQHGNN", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": "test-collection", "type_id": "test-type", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, "prices": [ { "id": "ma_01F0YESHRFQNH5S8Q0PK84YYZN", "currency_code": "usd", "amount": 100, "sale_amount": null, "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "region_id": null, "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null } ], "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 10, "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, "options": [ { "id": "optval_01F0YESHR7S6ECD03RF6W12DSJ", "value": "large", "option_id": "opt_01F0YESHQBZVKCEXJ24BS6PCX3", "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, { "id": "optval_01F0YESHR7N2GHM1RN3GKYPN6P", "value": "green", "option_id": "opt_01F0YESHQBV8MMNN4V7WSDMH6G", "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null } ], "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null } ], "profile_id": "sp_01F0YESHMKRB4V3B7F6MVQHGNN", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": "test-collection", "collection": { "id": "test-collection", "title": "Test collection", "handle": null, "created_at": "2021-03-16T21:24:13.603Z", "updated_at": "2021-03-16T21:24:13.603Z", "deleted_at": null, "metadata": null }, "type_id": "test-type", "type": { "id": "test-type", "value": "test-type", "created_at": "2021-03-16T21:24:13.613Z", "updated_at": "2021-03-16T21:24:13.613Z", "deleted_at": null, "metadata": null }, "tags": [ { "id": "tag1", "value": "123", "created_at": "2021-03-16T21:24:13.609Z", "updated_at": "2021-03-16T21:24:13.609Z", "deleted_at": null, "metadata": null }, { "id": "ptag_01F0YESHPZYY3H4SJ3A5918SBN", "value": "456", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null } ], "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "metadata": null }, "product_category": { "id": "pcat_01F0YESBFAZ0DV6V831JXWH0BG", "name": "Skinny Jeans", "handle": "skinny-jeans", "created_at": "2021-03-16T21:24:07.273Z", "updated_at": "2021-03-16T21:24:07.273Z", "deleted_at": null }, "product_variant": { "id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "title": "Test variant", "product_id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "variant_rank": 0, "product": { "id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "title": "Test product", "subtitle": null, "description": "test-product-description", "handle": "test-product", "is_giftcard": false, "thumbnail": null, "profile_id": "sp_01F0YESHMKRB4V3B7F6MVQHGNN", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": "test-collection", "type_id": "test-type", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, "prices": [ { "id": "ma_01F0YESHRFQNH5S8Q0PK84YYZN", "currency_code": "usd", "amount": 1000, "sale_amount": null, "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "region_id": null, "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null } ], "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 10, "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, "options": [ { "id": "optval_01F0YESHR7S6ECD03RF6W12DSJ", "value": "large", "option_id": "opt_01F0YESHQBZVKCEXJ24BS6PCX3", "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, { "id": "optval_01F0YESHR7N2GHM1RN3GKYPN6P", "value": "green", "option_id": "opt_01F0YESHQBV8MMNN4V7WSDMH6G", "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null } ], "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, "product_option": { "id": "opt_01F0YESHQBZVKCEXJ24BS6PCX3", "title": "size", "product_id": "prod_01F0YESHQ27Y31CAMD0NV6W9YP", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, "product_option_value": { "id": "optval_01F0YESHR7S6ECD03RF6W12DSJ", "value": "large", "option_id": "opt_01F0YESHQBZVKCEXJ24BS6PCX3", "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null, "metadata": null }, "money_amount": { "id": "ma_01F0YESHRFQNH5S8Q0PK84YYZN", "currency_code": "usd", "amount": 100, "sale_amount": null, "variant_id": "variant_01F0YESHR7P2YAYBDBY5B6X3PK", "region_id": null, "created_at": "2021-03-16T21:24:13.657Z", "updated_at": "2021-03-16T21:24:13.657Z", "deleted_at": null }, "discount": { "id": "disc_01F0YESMW10MGHWJKZSDDMN0VN", "code": "10DISC", "is_dynamic": false, "rule_id": "dru_01F0YESMVK96HVX7N419E3CJ7C", "rule": { "id": "dru_01F0YESMVK96HVX7N419E3CJ7C", "description": "10 Percent", "type": "percentage", "value": 10, "allocation": "total", "usage_limit": null, "created_at": "2021-03-16T21:24:16.872Z", "updated_at": "2021-03-16T21:24:16.872Z", "deleted_at": null, "metadata": null, "conditions": [ { "id": "cnd_01F0YESMVJXKX8XZ6Q9Z6Q6Z6", "type": "products", "operator": "in" } ] }, "is_disabled": false, "parent_discount_id": null, "starts_at": "2021-03-16T21:24:16.872Z", "ends_at": null, "created_at": "2021-03-16T21:24:16.872Z", "updated_at": "2021-03-16T21:24:16.872Z", "deleted_at": null, "metadata": null }, "discount_rule": { "id": "dru_01F0YESMVK96HVX7N419E3CJ7C", "description": "10 Percent", "type": "percentage", "value": 10, "allocation": "total", "usage_limit": null, "created_at": "2021-03-16T21:24:16.872Z", "updated_at": "2021-03-16T21:24:16.872Z", "deleted_at": null, "metadata": null }, "customer": { "id": "cus_01F0YESQXFZ5WKMHTXJ4JDPBDZ", "email": "test1@email.com", "first_name": null, "last_name": null, "billing_address_id": null, "password_hash": null, "phone": null, "has_account": false, "orders": [], "created_at": "2021-03-16T21:24:20.015Z", "updated_at": "2021-03-16T21:24:20.015Z", "deleted_at": null, "metadata": null }, "customer_group": { "name": "test group", "id": "cgrp_01FX8NJYPPDEH7YK9NYM6BXPHV", "deleted_at": null, "metadata": null, "created_at": "2022-03-03T19:54:53.014Z", "updated_at": "2022-03-03T19:54:53.014Z" }, "shipping_profile": { "id": "sp_01F0YESTZQFW15SFEZSS29EZ5R", "name": "Default Shipping Profile", "type": "default", "created_at": "2021-03-16T21:24:23.116Z", "updated_at": "2021-03-16T21:24:23.116Z", "deleted_at": null, "metadata": null }, "store": { "id": "store_01F0YESXYNJNTJJY5G5Z26KHKJ", "name": "Medusa Store", "default_currency_code": "usd", "default_currency": { "code": "usd", "symbol": "$", "symbol_native": "$", "name": "US Dollar" }, "currencies": [], "swap_link_template": null, "created_at": "2021-03-16T21:24:26.191Z", "updated_at": "2021-03-16T21:24:26.191Z", "metadata": null, "payment_providers": [ { "id": "test-pay", "is_installed": true } ], "fulfillment_providers": [ { "id": "test-ful", "is_installed": true } ] }, "user": { "id": "admin_user", "email": "admin@medusa.js", "role": "admin", "first_name": null, "last_name": null, "api_token": "test_token", "created_at": "2021-03-16T21:24:29.411Z", "updated_at": "2021-03-16T21:24:29.411Z", "deleted_at": null, "metadata": null }, "notification": { "id": "noti_01F0YET45G9NHP08Z66CE4QKBS", "resource_type": "order", "resource_id": "order_01F0BF66ZBXNJ98WDQ9SCWH8Y7", "event_name": "order.placed", "to": "test@email.com", "provider_id": "test-not", "created_at": "2021-03-16T21:24:32.560Z", "updated_at": "2021-03-16T21:24:32.560Z", "resends": [] }, "order": { "id": "order_01F0YET7CZ741ECWG1J3N34RXF", "status": "pending", "fulfillment_status": "not_fulfilled", "payment_status": "not_paid", "display_id": 1, "cart_id": null, "customer_id": "cus_01F0YET7C3H3D5M8QPNPP5CDAX", "customer": { "id": "cus_01F0YET7C3H3D5M8QPNPP5CDAX", "email": "test@email.com", "first_name": null, "last_name": null, "billing_address_id": null, "password_hash": null, "phone": null, "has_account": false, "created_at": "2021-03-16T21:24:35.843Z", "updated_at": "2021-03-16T21:24:35.843Z", "deleted_at": null, "metadata": null }, "email": "test@email.com", "billing_address": { "id": "addr_01F0YET7CZZX0842X5AHQYAZ80", "customer_id": null, "company": null, "first_name": "lebron", "last_name": null, "address_1": null, "address_2": null, "city": null, "country_code": null, "province": null, "postal_code": null, "phone": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "deleted_at": null, "metadata": null }, "shipping_address": { "id": "addr_01F0YET7CZDHXHXYJ3JTXPH4T7", "customer_id": null, "company": null, "first_name": "lebron", "last_name": null, "address_1": null, "address_2": null, "city": null, "country_code": "us", "province": null, "postal_code": null, "phone": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "deleted_at": null, "metadata": null }, "region_id": "reg_01F0YET7BZTARY9MKN1SJ7AAXF", "region": { "id": "reg_01F0YET7BZTARY9MKN1SJ7AAXF", "name": "Test Region", "currency_code": "usd", "tax_rate": "0", "tax_code": null, "payment_providers": [], "fulfillment_providers": [], "created_at": "2021-03-16T21:24:35.839Z", "updated_at": "2021-03-16T21:24:35.839Z", "deleted_at": null, "metadata": null }, "currency_code": "usd", "tax_rate": 0, "discounts": [ { "id": "test-discount", "code": "TEST134", "is_dynamic": false, "rule_id": "dru_01F0YET7CZQDGWTFQYY8T4KYRZ", "rule": { "id": "dru_01F0YET7CZQDGWTFQYY8T4KYRZ", "description": "Test Discount", "type": "percentage", "value": 10, "allocation": "total", "usage_limit": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "deleted_at": null, "metadata": null }, "is_disabled": false, "parent_discount_id": null, "starts_at": "2021-03-16T21:24:35.871Z", "ends_at": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "deleted_at": null, "metadata": null } ], "gift_cards": [], "shipping_methods": [ { "id": "sm_01F0YET7DR2E7CYVSDHM593QG2", "shipping_option_id": "so_01F0YET7C758MMXF1WNVCPGKZJ", "order_id": "order_01F0YET7CZ741ECWG1J3N34RXF", "claim_order_id": null, "cart_id": null, "swap_id": null, "return_id": null, "shipping_option": { "id": "so_01F0YET7C758MMXF1WNVCPGKZJ", "name": "test-option", "region_id": "reg_01F0YET7BZTARY9MKN1SJ7AAXF", "profile_id": "sp_01F0YET7AF62TCC9CMWK5TXXAQ", "provider_id": "test-ful", "price_type": "flat_rate", "amount": 1000, "is_return": false, "data": {}, "created_at": "2021-03-16T21:24:35.846Z", "updated_at": "2021-03-16T21:24:35.846Z", "deleted_at": null, "metadata": null }, "price": 1000, "data": {} } ], "payments": [ { "id": "test-payment", "swap_id": null, "cart_id": null, "order_id": "order_01F0YET7CZ741ECWG1J3N34RXF", "amount": 10000, "currency_code": "usd", "amount_refunded": 0, "provider_id": "test", "data": {}, "captured_at": null, "canceled_at": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "metadata": null, "idempotency_key": null } ], "fulfillments": [], "returns": [], "claims": [], "refunds": [], "swaps": [], "items": [ { "id": "test-item", "cart_id": null, "order_id": "order_01F0YET7CZ741ECWG1J3N34RXF", "swap_id": null, "claim_order_id": null, "title": "Line Item", "description": "Line Item Desc", "thumbnail": "https://test.js/1234", "is_giftcard": false, "should_merge": true, "allow_discounts": true, "has_shipping": null, "unit_price": 8000, "variant_id": "variant_01F0YET7BMD9FGWA5NTPBWT2SS", "variant": { "id": "variant_01F0YET7BMD9FGWA5NTPBWT2SS", "title": "test variant", "product_id": "prod_01F0YET7BA4AQ8WEK687BNWP3N", "product": { "id": "prod_01F0YET7BA4AQ8WEK687BNWP3N", "title": "test product", "subtitle": null, "description": null, "handle": "test-product", "is_giftcard": false, "thumbnail": null, "profile_id": "sp_01F0YET7AF62TCC9CMWK5TXXAQ", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": null, "type_id": null, "created_at": "2021-03-16T21:24:35.818Z", "updated_at": "2021-03-16T21:24:35.818Z", "deleted_at": null, "metadata": null }, "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 1, "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, "created_at": "2021-03-16T21:24:35.828Z", "updated_at": "2021-03-16T21:24:35.828Z", "deleted_at": null, "metadata": null }, "quantity": 1, "fulfilled_quantity": 1, "returned_quantity": null, "shipped_quantity": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "metadata": null, "refundable": 7200 } ], "gift_card_transactions": [], "canceled_at": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "metadata": null, "shipping_total": 1000, "gift_card_total": 0, "discount_total": 800, "tax_total": 0, "subtotal": 8000, "total": 8200, "refunded_total": 0, "refundable_amount": 8200 }, "order_edit": { "id": "oe_01F0YET7XPCMF8RZ0Y151NZV2V", "order_id": "ord_01F0YET7XPCMF8RZ0Y151NZV2V", "internal_note": "internal note", "declined_reason": null, "declined_at": null, "declined_by": null, "canceled_at": null, "canceled_by": null, "requested_at": null, "requested_by": null, "created_at": "2021-03-16T21:24:35.871Z", "created_by_id": "admin_user", "confirmed_at": null, "confirmed_by": null }, "store_order_edit": { "id": "oe_01F0YET7XPCMF8RZ0Y151NZV2B", "order_id": "ord_01F0YET7XPCMF8RZ0Y151NZV2V", "declined_reason": null, "declined_at": null, "declined_by": null, "canceled_at": null, "requested_at": null, "created_at": "2021-03-16T21:24:35.871Z", "confirmed_at": null, "confirmed_by": null }, "return": { "id": "ret_01F0YET7XPCMF8RZ0Y151NZV2V", "status": "requested", "items": [ { "return_id": "ret_01F0YET7XPCMF8RZ0Y151NZV2V", "item_id": "test-item", "quantity": 1, "is_requested": true, "requested_quantity": 1, "received_quantity": null, "reason_id": null, "reason": null, "note": null, "metadata": null } ], "swap_id": null, "claim_order_id": null, "order_id": "order_01F0YET7RD6NWQTEM0ZN5DRRVD", "shipping_method": null, "shipping_data": null, "refund_amount": 7200, "received_at": null, "created_at": "2021-03-16T21:24:36.381Z", "updated_at": "2021-03-16T21:24:36.381Z", "metadata": null, "idempotency_key": "f3dee891-7a24-4e34-9071-62606035563d" }, "swap": { "id": "swap_01F0YET86Y9G92D3YDR9Y6V676", "fulfillment_status": "not_fulfilled", "payment_status": "not_paid", "order_id": "order_01F0YET82SR6NB8K61TNRN36FW", "additional_items": [ { "id": "item_01F0YET86YR1J3GX155E9R81A3", "cart_id": "cart_01F0YET896KVZ17Y2QDVT28QFE", "order_id": null, "swap_id": "swap_01F0YET86Y9G92D3YDR9Y6V676", "claim_order_id": null, "title": "test product", "description": "test variant", "thumbnail": null, "is_giftcard": false, "should_merge": true, "allow_discounts": true, "has_shipping": null, "unit_price": 8000, "variant_id": "variant_01F0YET825M92TKN1ZGAVBPX1B", "variant": { "id": "variant_01F0YET825M92TKN1ZGAVBPX1B", "title": "test variant", "product_id": "prod_01F0YET8213X0J501ZZHZ56Y7Y", "product": { "id": "prod_01F0YET8213X0J501ZZHZ56Y7Y", "title": "test product", "subtitle": null, "description": null, "handle": "test-product", "is_giftcard": false, "thumbnail": null, "profile_id": "sp_01F0YET7AF62TCC9CMWK5TXXAQ", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": null, "type_id": null, "created_at": "2021-03-16T21:24:36.545Z", "updated_at": "2021-03-16T21:24:36.545Z", "deleted_at": null, "metadata": null }, "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 1, "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, "created_at": "2021-03-16T21:24:36.549Z", "updated_at": "2021-03-16T21:24:36.549Z", "deleted_at": null, "metadata": null }, "quantity": 2, "fulfilled_quantity": null, "returned_quantity": null, "shipped_quantity": null, "created_at": "2021-03-16T21:24:36.659Z", "updated_at": "2021-03-16T21:24:36.659Z", "metadata": {} } ], "return_order": { "id": "ret_01F0YET873ZAXQ7PYVKVFMT9FP", "status": "requested", "items": [ { "return_id": "ret_01F0YET873ZAXQ7PYVKVFMT9FP", "item_id": "test-item", "quantity": 1, "is_requested": true, "requested_quantity": 1, "received_quantity": null, "reason_id": null, "reason": null, "note": null, "metadata": null } ], "swap_id": "swap_01F0YET86Y9G92D3YDR9Y6V676", "claim_order_id": null, "order_id": null, "shipping_method": null, "shipping_data": null, "refund_amount": 7200, "received_at": null, "created_at": "2021-03-16T21:24:36.659Z", "updated_at": "2021-03-16T21:24:36.659Z", "metadata": null, "idempotency_key": null }, "fulfillments": [], "payment": null, "difference_due": null, "shipping_address_id": null, "shipping_address": null, "shipping_methods": [], "cart_id": "cart_01F0YET896KVZ17Y2QDVT28QFE", "confirmed_at": null, "created_at": "2021-03-16T21:24:36.659Z", "updated_at": "2021-03-16T21:24:36.659Z", "deleted_at": null, "metadata": null, "idempotency_key": "10804103-2f4f-41ef-b44e-7049459f157d" }, "line_item": { "id": "test-item", "cart_id": "cart_01F0YES82DA12W88KQ90EY6W4C", "order_id": null, "swap_id": null, "claim_order_id": null, "title": "Line Item", "description": "Line Item Desc", "thumbnail": "https://test.js/1234", "is_giftcard": false, "should_merge": true, "allow_discounts": true, "has_shipping": null, "unit_price": 8000, "variant_id": "variant_01F0YET7BMD9FGWA5NTPBWT2SS", "variant": { "id": "variant_01F0YET7BMD9FGWA5NTPBWT2SS", "title": "test variant", "product_id": "prod_01F0YET7BA4AQ8WEK687BNWP3N", "product": { "id": "prod_01F0YET7BA4AQ8WEK687BNWP3N", "title": "test product", "subtitle": null, "description": null, "handle": "test-product", "is_giftcard": false, "thumbnail": null, "profile_id": "sp_01F0YET7AF62TCC9CMWK5TXXAQ", "weight": null, "length": null, "height": null, "width": null, "hs_code": null, "origin_country": null, "mid_code": null, "material": null, "collection_id": null, "type_id": null, "created_at": "2021-03-16T21:24:35.818Z", "updated_at": "2021-03-16T21:24:35.818Z", "deleted_at": null, "metadata": null }, "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 1, "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, "created_at": "2021-03-16T21:24:35.828Z", "updated_at": "2021-03-16T21:24:35.828Z", "deleted_at": null, "metadata": null }, "quantity": 1, "fulfilled_quantity": 1, "returned_quantity": null, "shipped_quantity": null, "created_at": "2021-03-16T21:24:35.871Z", "updated_at": "2021-03-16T21:24:35.871Z", "metadata": null, "refundable": 7200 }, "return_reason": { "id": "rr_01F0ZXDBAB9KVZWJVW6115VEM7", "value": "too_big", "label": "Size too big", "description": "use if the size was too big", "created_at": "2021-03-17 11:58:56.975971+01", "updated_at": "2021-03-17 12:09:59.156058+01", "metadata": null, "parent_return_reason_id": null }, "product_type": { "id": "ptype_ZXDBABWJVW6115VEMZXDBAB", "value": "clothing", "created_at": "2021-03-16T21:24:35.828Z", "updated_at": "2021-03-16T21:24:35.828Z", "deleted_at": null, "metadata": null }, "product_tag": { "id": "ptag_ZXDBABWJVW6115VEMZXDBAB", "value": "pants", "created_at": "2021-03-16T21:24:35.828Z", "updated_at": "2021-03-16T21:24:35.828Z", "deleted_at": null, "metadata": null }, "price_list": { "id": "pl_ZXDBABWJVW6115VEMZXDBAB", "name": "test price list", "description": "test price list", "type": "products", "status": "active", "starts_at": null, "ends_at": null, "created_at": "2021-03-16T21:24:35.828Z", "updated_at": "2021-03-16T21:24:35.828Z", "deleted_at": null }, "note": { "id": "note_01F0ZXDBAB9KVZWJVW6115VEM7", "value": "customer contacted", "resource_type": "swap", "resource_id": "swap_01F0YET86Y9G92D3YDR9Y6V676", "author_id": "admin_user", "created_at": "2021-03-17 11:58:56.975971+01", "updated_at": "2021-03-17 12:09:59.156058+01", "metadata": null }, "inventory_item": { "id": "iitem_320ZXDBAB4WJVW6115VEM7", "sku": "sku123", "origin_country": "dk", "hs_code": null, "mid_code": null, "material": null, "weight": 10, "lenght": 4, "height": 5, "width": 2, "requires_shipping": true, "created_at": "2021-03-17 11:58:56.975971+01", "updated_at": "2021-03-17 12:09:59.156058+01", "metadata": null, "location_levels": [ { "id": "ilev_320ZXDBAB4WJVW6115VEM7", "inventory_item_id": "iitem_320ZXDBAB4WJVW6115VEM7", "location_id": "loc_01F0ZXDBAB9KVZWJVW6115VEM7", "stocked_quantity": 1, "reserved_quantity": 0, "incoming_quantity": 10 } ] }, "stock_location": { "id": "loc_01F0ZXDBAB9KVZWJVW6115VEM7", "name": "Stock location 1", "address_id": "addr_01F0ZXDBAB9KVZWJVW6115VEM7", "created_at": "2021-03-17 11:58:56.975971+01", "updated_at": "2021-03-17 12:09:59.156058+01" }, "reservation": { "id": "res_01F0ZXDBAB9KVZWJVW6115VEM7", "line_item_id": "li_01F0ZXDBAB9KVZWJVW6115VEM7", "inventory_item_id": "iitem_320ZXDBAB4WJVW6115VEM7", "location_id": "loc_01F0ZXDBAB9KVZWJVW6115VEM7", "quantity": 1 }, "invite": { "id": "invite_320ZXDBAB4WJVW6115VEM7", "user_email": "lebron@james.com", "role": "admin", "accepted": true, "token": "secret_token", "expires_at": "2021-03-18 11:58:56.975971+01", "created_at": "2021-03-17 11:58:56.975971+01", "updated_at": "2021-03-17 12:09:59.156058+01", "metadata": null }, "publishable_api_key": { "id": "pubkey_1234", "created_by": "admin_user", "created_at": "2021-11-08 11:58:56.975971+01", "updated_at": "2021-11-08 11:58:56.975971+01", "revoked_by": null, "revoked_at": null }, "draft_order": { "id": "dorder_01FGKMYKMJ4E8HP3RGEW28E7CZ", "status": "open", "display_id": 1, "cart_id": "cart_01FGKMYKM9V8FVEJE23Q26FG5B", "cart": { "id": "cart_01FGKMYKM9V8FVEJE23Q26FG5B", "email": "jane@medusa.test", "billing_address_id": null, "billing_address": null, "shipping_address_id": "addr_01FGKMYKKQ3S1Q4ZC9HV4REXC6", "shipping_address": { "id": "addr_01FGKMYKKQ3S1Q4ZC9HV4REXC6", "customer_id": null, "company": null, "first_name": "Jane", "last_name": "Medusan", "address_1": null, "address_2": null, "city": null, "country_code": "dk", "province": null, "postal_code": null, "phone": null, "created_at": "2021-09-27T12:51:21.335Z", "updated_at": "2021-09-27T12:51:21.335Z", "deleted_at": null, "metadata": null }, "items": [ { "id": "item_01FGKMYKM9AKV5D146N28QFPX7", "cart_id": "cart_01FGKMYKM9V8FVEJE23Q26FG5B", "order_id": null, "swap_id": null, "claim_order_id": null, "title": "Basic Tee - One Size", "description": "Soft and sweet", "thumbnail": "https://test.js/1234", "is_giftcard": false, "should_merge": true, "allow_discounts": true, "has_shipping": null, "unit_price": 8000, "variant_id": "variant_01FGKMYKJVY3DYDZWCRB2GZS0G", "variant": { "id": "variant_01FGKMYKJVY3DYDZWCRB2GZS0G", "title": "One Size", "product_id": "prod_01FGKMYKJJMZ6XFN37JBGTZ46G", "sku": null, "barcode": null, "ean": null, "upc": null, "inventory_quantity": 1, "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, "created_at": "2021-09-27T12:51:21.307Z", "updated_at": "2021-09-27T12:51:21.307Z", "deleted_at": null, "metadata": null }, "quantity": 1, "fulfilled_quantity": 1, "returned_quantity": null, "shipped_quantity": null, "created_at": "2021-09-27T12:51:21.352Z", "updated_at": "2021-09-27T12:51:21.352Z", "metadata": null } ], "region_id": "reg_01FGKMYKKG6ACZANRNHR3XVRN3", "region": { "id": "reg_01FGKMYKKG6ACZANRNHR3XVRN3", "name": "United States", "currency_code": "usd", "tax_rate": "0", "tax_code": null, "payment_providers": [ { "id": "test-pay", "is_installed": true } ], "fulfillment_providers": [], "created_at": "2021-09-27T12:51:21.328Z", "updated_at": "2021-09-27T12:51:21.328Z", "deleted_at": null, "metadata": null }, "discounts": [], "gift_cards": [], "customer_id": "cus_01FGKMYKM2TAKTGZ1XMEW45RJZ", "payment_sessions": [], "payment_id": null, "payment": null, "shipping_methods": [], "type": "draft_order", "completed_at": null, "payment_authorized_at": null, "created_at": "2021-09-27T12:51:21.352Z", "updated_at": "2021-09-27T12:51:21.352Z", "deleted_at": null, "metadata": null, "idempotency_key": null, "context": null, "shipping_total": 0, "discount_total": 0, "tax_total": 0, "gift_card_total": 0, "subtotal": 8000, "total": 8000 }, "order_id": null, "order": null, "canceled_at": null, "created_at": "2021-09-27T12:51:21.360Z", "updated_at": "2021-09-27T12:51:21.360Z", "no_notification_order": null, "metadata": null }, "fulfillment_option": { "provider_id": "test-ful", "options": [] }, "batch_job": { "id": "batch_01F0YES4R67TXXC1QBQ8P54A8Y", "type": "product_export", "created_by": "usr_123412341234", "context": null, "result": null, "dry_run": false, "updated_at": "2021-03-16T21:24:00.389Z", "created_at": "2021-03-16T21:24:00.389Z", "deleted_at": null }, "upload": { "url": "test-url" }, "sales_channel": { "id": "sc_01F0YES4R67TXXC1QBQ8P54A8Y", "name": "sales channel 1 name", "description": "sales channel 1 description", "is_disabled": false, "updated_at": "2022-07-05T15:16:01.959Z", "created_at": "2022-07-05T15:16:01.959Z", "deleted_at": null }, "sales_channels": [ { "id": "sc_01F0YES4R67TXXC1QBQ8P54A8Y", "name": "sales channel 1 name", "description": "sales channel 1 description", "is_disabled": false, "updated_at": "2022-07-05T15:16:01.959Z", "created_at": "2022-07-05T15:16:01.959Z", "deleted_at": null } ], "payment_collection": { "id": "paycol_01GJK7P9MRHM6XWCJG70JFB8PF", "created_at": "2022-11-23T21:53:19.367Z", "updated_at": "2022-11-24T12:57:08.652Z", "deleted_at": null, "type": "order_edit", "status": "authorized", "description": null, "amount": 900, "authorized_amount": 900, "region_id": "test-region", "currency_code": "usd", "metadata": null, "created_by": "admin_user", "payment_sessions": [ { "id": "ps_01GJMVD71Z4WF9FXXGT7DHGPCM", "created_at": "2022-11-24T12:57:07.883Z", "updated_at": "2022-11-24T12:57:08.652Z", "cart_id": null, "provider_id": "test-pay", "is_selected": null, "status": "authorized", "data": {}, "idempotency_key": null, "amount": 900, "payment_authorized_at": "2022-11-24T12:57:08.672Z" } ] }, "payment_sessions": { "id": "ps_01GJMVD71Z4WF9FXXGT7DHGPCM", "created_at": "2022-11-24T12:57:07.883Z", "updated_at": "2022-11-24T12:57:08.652Z", "cart_id": null, "provider_id": "test-pay", "is_selected": null, "status": "authorized", "data": {}, "idempotency_key": null, "amount": 900, "payment_authorized_at": "2022-11-24T12:57:08.672Z" }, "payment": { "id": "pay_A1GJEVD71Z4WF9FXFGT7D1GP15", "swap_id": null, "cart_id": null, "order_id": null, "amount": 900, "currency_code": "usd", "amount_refunded": 0, "amount_captured": 900, "provider_id": "manual", "data": {}, "captured_at": "2022-11-17T21:24:35.871Z", "canceled_at": null, "created_at": "2022-11-16T21:24:35.871Z", "updated_at": "2022-11-16T21:24:35.871Z", "metadata": null, "idempotency_key": null }, "refund": { "order_id": null, "payment_id": "pay_A1GJEVD71Z4WF9FXFGT7D1GP15", "amount": 900, "note": null, "reason": "return", "metadata": null, "idempotency_key": null } } }