Files
medusa-store/docs/api/fixtures.json
Sebastian Rindom 3d0dff58c4 docs: fixture improvements + small fixes (#204)
* fix: deref arrays

* docs: clean up

* fix: update license
2021-03-16 18:15:41 +01:00

901 lines
28 KiB
JSON

{
"resources": {
"customer": {
"id": "cus_01F0VY3BQPZZTZGWHPPNVW87RP",
"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-15T21:54:00.566Z",
"updated_at": "2021-03-15T21:54:00.566Z",
"deleted_at": null,
"metadata": null
},
"order": {
"id": "order_01F0VY2B8H3S6R3W6EY4QMKWG1",
"status": "pending",
"fulfillment_status": "not_fulfilled",
"payment_status": "not_paid",
"display_id": 1,
"cart_id": null,
"customer_id": "cus_01F0VY2B7Y2Y18PDQZMGWB0VF0",
"customer": {
"id": "cus_01F0VY2B7Y2Y18PDQZMGWB0VF0",
"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-15T21:53:27.294Z",
"updated_at": "2021-03-15T21:53:27.294Z",
"deleted_at": null,
"metadata": null
},
"email": "test@email.com",
"billing_address": {
"id": "addr_01F0VY2B8HSF0DGYRRMKAD0QE4",
"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-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"deleted_at": null,
"metadata": null
},
"shipping_address": {
"id": "addr_01F0VY2B8HXBT67KYXJKMEDYR4",
"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-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"deleted_at": null,
"metadata": null
},
"region_id": "reg_01F0VY2B7RAKG6PSVJ47KQP0PA",
"region": {
"id": "reg_01F0VY2B7RAKG6PSVJ47KQP0PA",
"name": "Test Region",
"currency_code": "usd",
"tax_rate": "0",
"tax_code": null,
"payment_providers": [],
"fulfillment_providers": [],
"created_at": "2021-03-15T21:53:27.287Z",
"updated_at": "2021-03-15T21:53:27.287Z",
"deleted_at": null,
"metadata": null
},
"currency_code": "usd",
"tax_rate": 0,
"discounts": [
{
"id": "test-discount",
"code": "TEST134",
"is_dynamic": false,
"rule_id": "dru_01F0VY2B8H55AYVCW47B8DWMCN",
"rule": {
"id": "dru_01F0VY2B8H55AYVCW47B8DWMCN",
"description": "Test Discount",
"type": "percentage",
"value": 10,
"allocation": "total",
"usage_limit": null,
"created_at": "2021-03-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"deleted_at": null,
"metadata": null
},
"is_disabled": false,
"parent_discount_id": null,
"starts_at": "2021-03-15T21:53:27.313Z",
"ends_at": null,
"created_at": "2021-03-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"deleted_at": null,
"metadata": null
}
],
"gift_cards": [],
"shipping_methods": [
{
"id": "sm_01F0VY2B9DGWC1W2TDHHPBZD4Q",
"shipping_option_id": "so_01F0VY2B81KREYYVHH2SJQJ2NA",
"order_id": "order_01F0VY2B8H3S6R3W6EY4QMKWG1",
"claim_order_id": null,
"cart_id": null,
"swap_id": null,
"return_id": null,
"shipping_option": {
"id": "so_01F0VY2B81KREYYVHH2SJQJ2NA",
"name": "test-option",
"region_id": "reg_01F0VY2B7RAKG6PSVJ47KQP0PA",
"profile_id": "sp_01F0VY2B5KMSAXMSD449SFG005",
"provider_id": "test-ful",
"price_type": "flat_rate",
"amount": 1000,
"is_return": false,
"data": {},
"created_at": "2021-03-15T21:53:27.297Z",
"updated_at": "2021-03-15T21:53:27.297Z",
"deleted_at": null,
"metadata": null
},
"price": 1000,
"data": {}
}
],
"payments": [
{
"id": "test-payment",
"swap_id": null,
"cart_id": null,
"order_id": "order_01F0VY2B8H3S6R3W6EY4QMKWG1",
"amount": 10000,
"currency_code": "usd",
"amount_refunded": 0,
"provider_id": "test",
"data": {},
"captured_at": null,
"canceled_at": null,
"created_at": "2021-03-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"metadata": null,
"idempotency_key": null
}
],
"fulfillments": [],
"returns": [],
"claims": [],
"refunds": [],
"swaps": [],
"items": [
{
"id": "test-item",
"cart_id": null,
"order_id": "order_01F0VY2B8H3S6R3W6EY4QMKWG1",
"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": null,
"variant": null,
"quantity": 1,
"fulfilled_quantity": 1,
"returned_quantity": null,
"shipped_quantity": null,
"created_at": "2021-03-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"metadata": null,
"refundable": 7200
}
],
"gift_card_transactions": [],
"canceled_at": null,
"created_at": "2021-03-15T21:53:27.313Z",
"updated_at": "2021-03-15T21:53:27.313Z",
"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
},
"product": {
"id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"title": "Test product",
"subtitle": null,
"description": "test-product-description",
"handle": "test-product",
"is_giftcard": false,
"images": [],
"thumbnail": null,
"options": [
{
"id": "opt_01F0VY2HPB68E6XV3JNRW000TW",
"title": "size",
"product_id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
{
"id": "opt_01F0VY2HPBK73EGMPH4XP2ZH1M",
"title": "color",
"product_id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
}
],
"variants": [
{
"id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"title": "Test variant",
"product_id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"product": {
"id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"title": "Test product",
"subtitle": null,
"description": "test-product-description",
"handle": "test-product",
"is_giftcard": false,
"thumbnail": null,
"profile_id": "sp_01F0VY2HHYESK5JG3NSDWBH0EX",
"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-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
"prices": [
{
"id": "ma_01F0VY2HQA993M711M9F2QZ5K8",
"currency_code": "usd",
"amount": 100,
"sale_amount": null,
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"region_id": null,
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"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_01F0VY2HQ5WSBTQP2VC67ZFY9V",
"value": "large",
"option_id": "opt_01F0VY2HPB68E6XV3JNRW000TW",
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
{
"id": "optval_01F0VY2HQ5HEQPKWPZ9R85YVWS",
"value": "green",
"option_id": "opt_01F0VY2HPBK73EGMPH4XP2ZH1M",
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
}
],
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
}
],
"profile_id": "sp_01F0VY2HHYESK5JG3NSDWBH0EX",
"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-15T21:53:33.797Z",
"updated_at": "2021-03-15T21:53:33.797Z",
"deleted_at": null,
"metadata": null
},
"type_id": "test-type",
"type": {
"id": "test-type",
"value": "test-type",
"created_at": "2021-03-15T21:53:33.813Z",
"updated_at": "2021-03-15T21:53:33.813Z",
"deleted_at": null,
"metadata": null
},
"tags": [
{
"id": "tag1",
"value": "123",
"created_at": "2021-03-15T21:53:33.809Z",
"updated_at": "2021-03-15T21:53:33.809Z",
"deleted_at": null,
"metadata": null
},
{
"id": "ptag_01F0VY2HP14MV8695X229DHGDT",
"value": "456",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
}
],
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"metadata": null
},
"cart": {
"id": "cart_01F0VYC80B1KK49045W4CZTHNW",
"email": null,
"billing_address_id": null,
"billing_address": null,
"shipping_address_id": "addr_01F0VYC80BK976RK5HE7YB9A7S",
"shipping_address": {
"id": "addr_01F0VYC80BK976RK5HE7YB9A7S",
"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-15T21:58:51.632Z",
"updated_at": "2021-03-15T21:58:51.632Z",
"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-15T21:58:51.602Z",
"updated_at": "2021-03-15T21:58:51.602Z",
"deleted_at": null,
"metadata": null
},
"discounts": [],
"gift_cards": [],
"customer_id": null,
"payment_sessions": [],
"payment_id": null,
"payment": null,
"shipping_methods": [],
"type": "default",
"completed_at": null,
"created_at": "2021-03-15T21:58:51.632Z",
"updated_at": "2021-03-15T21:58:51.757Z",
"deleted_at": null,
"metadata": null,
"idempotency_key": null,
"shipping_total": 0,
"discount_total": 0,
"tax_total": 0,
"gift_card_total": 0,
"subtotal": 0,
"total": 0
},
"product_collection": {
"id": "pcol_01F0VY3W9433C9Q2JGZC1MVFYQ",
"title": "Summer Collection",
"handle": "summer-collection",
"created_at": "2021-03-15T21:54:17.507Z",
"updated_at": "2021-03-15T21:54:17.507Z",
"deleted_at": null,
"metadata": null
},
"discount": {
"id": "disc_01F0VYCE742WAYBT38HNSVWZP6",
"code": "10DISC",
"is_dynamic": false,
"rule_id": "dru_01F0VYCE6R1QV0DFT64EXGGVA2",
"rule": {
"id": "dru_01F0VYCE6R1QV0DFT64EXGGVA2",
"description": "10 Percent",
"type": "percentage",
"value": 10,
"allocation": "total",
"usage_limit": null,
"created_at": "2021-03-15T21:58:57.998Z",
"updated_at": "2021-03-15T21:58:57.998Z",
"deleted_at": null,
"metadata": null
},
"is_disabled": false,
"parent_discount_id": null,
"starts_at": "2021-03-15T21:58:57.998Z",
"ends_at": null,
"created_at": "2021-03-15T21:58:57.998Z",
"updated_at": "2021-03-15T21:58:57.998Z",
"deleted_at": null,
"metadata": null
},
"product_variant": {
"id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"title": "Test variant",
"product_id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"product": {
"id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"title": "Test product",
"subtitle": null,
"description": "test-product-description",
"handle": "test-product",
"is_giftcard": false,
"thumbnail": null,
"profile_id": "sp_01F0VY2HHYESK5JG3NSDWBH0EX",
"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-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
"prices": [
{
"id": "ma_01F0VY2HQA993M711M9F2QZ5K8",
"currency_code": "usd",
"amount": 100,
"sale_amount": null,
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"region_id": null,
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"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_01F0VY2HQ5WSBTQP2VC67ZFY9V",
"value": "large",
"option_id": "opt_01F0VY2HPB68E6XV3JNRW000TW",
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
{
"id": "optval_01F0VY2HQ5HEQPKWPZ9R85YVWS",
"value": "green",
"option_id": "opt_01F0VY2HPBK73EGMPH4XP2ZH1M",
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
}
],
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
"product_option": {
"id": "opt_01F0VY2HPB68E6XV3JNRW000TW",
"title": "size",
"product_id": "prod_01F0VY2HP5Z742ZQJ88G8K88XA",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
"product_option_value": {
"id": "optval_01F0VY2HQ5WSBTQP2VC67ZFY9V",
"value": "large",
"option_id": "opt_01F0VY2HPB68E6XV3JNRW000TW",
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null,
"metadata": null
},
"money_amount": {
"id": "ma_01F0VY2HQA993M711M9F2QZ5K8",
"currency_code": "usd",
"amount": 100,
"sale_amount": null,
"variant_id": "variant_01F0VY2HQ5FCB5CZS651SY4YDJ",
"region_id": null,
"created_at": "2021-03-15T21:53:33.884Z",
"updated_at": "2021-03-15T21:53:33.884Z",
"deleted_at": null
},
"gift_card": {
"id": "gift_01F0VY36MYBD8QJJX560HAMK08",
"code": "CUHS-0X5J-GL91-UQZE",
"value": 1000,
"balance": 1000,
"region_id": "reg_01F0VY36JGWMSQDSKEA95QR4PJ",
"region": {
"id": "reg_01F0VY36JGWMSQDSKEA95QR4PJ",
"name": "Test Region",
"currency_code": "usd",
"tax_rate": "0",
"tax_code": null,
"payment_providers": [],
"fulfillment_providers": [],
"created_at": "2021-03-15T21:53:55.279Z",
"updated_at": "2021-03-15T21:53:55.279Z",
"deleted_at": null,
"metadata": null
},
"is_disabled": false,
"ends_at": null,
"created_at": "2021-03-15T21:53:55.325Z",
"updated_at": "2021-03-15T21:53:55.325Z",
"deleted_at": null,
"metadata": null
},
"shipping_option": {
"id": "so_01F0VY2QV5RYPD9HN1S5SQZPQ5",
"name": "Free Shipping",
"region_id": "reg_01F0VY2QSCPG4F8KC9RN2R439T",
"region": {
"id": "reg_01F0VY2QSCPG4F8KC9RN2R439T",
"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-15T21:53:40.140Z",
"updated_at": "2021-03-15T21:53:40.140Z",
"deleted_at": null,
"metadata": null
},
"profile_id": "sp_01F0VY2QRT5C25T0QHSD8EEKA4",
"profile": {
"id": "sp_01F0VY2QRT5C25T0QHSD8EEKA4",
"name": "Default Shipping Profile",
"type": "default",
"created_at": "2021-03-15T21:53:40.068Z",
"updated_at": "2021-03-15T21:53:40.068Z",
"deleted_at": null,
"metadata": null
},
"provider_id": "test-ful",
"price_type": "flat_rate",
"amount": 100,
"is_return": false,
"requirements": [],
"data": {},
"created_at": "2021-03-15T21:53:40.185Z",
"updated_at": "2021-03-15T21:53:40.185Z",
"deleted_at": null,
"metadata": null
},
"region": {
"id": "reg_01F0VY2QSCPG4F8KC9RN2R439T",
"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-15T21:53:40.140Z",
"updated_at": "2021-03-15T21:53:40.140Z",
"deleted_at": null,
"metadata": null
},
"return": {
"id": "ret_01F0VY2BN9RSJC6GTJRG3C03X6",
"status": "requested",
"items": [
{
"return_id": "ret_01F0VY2BN9RSJC6GTJRG3C03X6",
"item_id": "test-item",
"quantity": 1,
"is_requested": true,
"requested_quantity": 1,
"received_quantity": null,
"metadata": null
}
],
"swap_id": null,
"claim_order_id": null,
"order_id": "order_01F0VY2BGM5TWR3PNX28SVD0MS",
"shipping_method": null,
"shipping_data": null,
"refund_amount": 7200,
"received_at": null,
"created_at": "2021-03-15T21:53:27.696Z",
"updated_at": "2021-03-15T21:53:27.696Z",
"metadata": null,
"idempotency_key": "5992adb7-b4f9-440c-a8c2-147966807d9a"
},
"notification": {
"id": "noti_01F0VY31P10A09S6JTJM2GYV7V",
"resource_type": "order",
"resource_id": "order_01F0BF66ZBXNJ98WDQ9SCWH8Y7",
"event_name": "order.placed",
"to": "test@email.com",
"provider_id": "test-not",
"created_at": "2021-03-15T21:53:50.273Z",
"updated_at": "2021-03-15T21:53:50.273Z",
"resends": []
},
"discount_rule": {
"id": "dru_01F0VYCE6R1QV0DFT64EXGGVA2",
"description": "10 Percent",
"type": "percentage",
"value": 10,
"allocation": "total",
"usage_limit": null,
"created_at": "2021-03-15T21:58:57.998Z",
"updated_at": "2021-03-15T21:58:57.998Z",
"deleted_at": null,
"metadata": null
},
"user": {
"id": "admin_user",
"email": "admin@medusa.js",
"first_name": null,
"last_name": null,
"api_token": "test_token",
"created_at": "2021-03-15T21:54:22.223Z",
"updated_at": "2021-03-15T21:54:22.223Z",
"deleted_at": null,
"metadata": null
},
"shipping_profile": {
"id": "sp_01F0VY3GHMP2QKQJDF12ZVNQ71",
"name": "Default Shipping Profile",
"type": "default",
"created_at": "2021-03-15T21:54:05.417Z",
"updated_at": "2021-03-15T21:54:05.417Z",
"deleted_at": null,
"metadata": null
},
"store": {
"id": "store_01F0VYDX7S2T0KPWYG3VN018AZ",
"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-15T21:59:46.161Z",
"updated_at": "2021-03-15T21:59:46.161Z",
"metadata": null,
"payment_providers": [
{
"id": "test-pay",
"is_installed": true
}
],
"fulfillment_providers": [
{
"id": "test-ful",
"is_installed": true
}
]
},
"swap": {
"id": "swap_01F0WX73K6ED141YQX65J55D73",
"fulfillment_status": "not_fulfilled",
"payment_status": "not_paid",
"order_id": "order_01F0WX73B3WFZ24157M3AZR369",
"additional_items": [
{
"id": "item_01F0WX73K6Q7YSB929EPFR39E9",
"cart_id": "cart_01F0WX73ND08RYPZA1J91XTWV5",
"order_id": null,
"swap_id": "swap_01F0WX73K6ED141YQX65J55D73",
"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_01F0WX739Y6BQZG8Y9PCK5XPRA",
"variant": {
"id": "variant_01F0WX739Y6BQZG8Y9PCK5XPRA",
"title": "test variant",
"product_id": "prod_01F0WX739NEKR6PK8XP0YD5FY8",
"product": {
"id": "prod_01F0WX739NEKR6PK8XP0YD5FY8",
"title": "test product",
"subtitle": null,
"description": null,
"handle": "test-product",
"is_giftcard": false,
"thumbnail": null,
"profile_id": "sp_01F0WX738N6YJ9KGK31YBPDHFK",
"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-16T06:57:48.853Z",
"updated_at": "2021-03-16T06:57:48.853Z",
"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-16T06:57:48.862Z",
"updated_at": "2021-03-16T06:57:48.862Z",
"deleted_at": null,
"metadata": null
},
"quantity": 2,
"fulfilled_quantity": null,
"returned_quantity": null,
"shipped_quantity": null,
"created_at": "2021-03-16T06:57:49.106Z",
"updated_at": "2021-03-16T06:57:49.106Z",
"metadata": {}
}
],
"return_order": {
"id": "ret_01F0WX73KBV2QAJPYZAGPDADVW",
"status": "requested",
"items": [
{
"return_id": "ret_01F0WX73KBV2QAJPYZAGPDADVW",
"item_id": "test-item",
"quantity": 1,
"is_requested": true,
"requested_quantity": 1,
"received_quantity": null,
"metadata": null
}
],
"swap_id": "swap_01F0WX73K6ED141YQX65J55D73",
"claim_order_id": null,
"order_id": null,
"shipping_method": null,
"shipping_data": null,
"refund_amount": 7200,
"received_at": null,
"created_at": "2021-03-16T06:57:49.106Z",
"updated_at": "2021-03-16T06:57:49.106Z",
"metadata": null,
"idempotency_key": null
},
"fulfillments": [],
"payment": null,
"difference_due": null,
"shipping_address_id": null,
"shipping_address": null,
"shipping_methods": [],
"cart_id": "cart_01F0WX73ND08RYPZA1J91XTWV5",
"confirmed_at": null,
"created_at": "2021-03-16T06:57:49.106Z",
"updated_at": "2021-03-16T06:57:49.106Z",
"deleted_at": null,
"metadata": null,
"idempotency_key": "360a87af-2ff7-4326-b557-042aa2ae331d"
}
}
}