FROM CACHE - zh-cn_header

Shopify订单API输出带有异常的Variant ID

Lennon
观光客
5 0 1

Hello您好,

我们订单接口中带有一个variant_id: 39533949714486的字符串,但是该订单中的SKU是单属性的,并没有Variant,所以也肯定不会有Variant ID的存在。所以请问一下,在客户只购买单属性SKU的时候,避免接口中含有Variant ID的存在?

谢谢!
Lennon

以下是订单接口的具体输出值。
{
"id": 4063378636854,
"admin_graphql_api_id": "gid://shopify/Order/4063378636854",
"app_id": 580111,
"browser_ip": "75.161.39.165",
"buyer_accepts_marketing": true,
"cancel_reason": null,
"cancelled_at": null,
"cart_token": "1e26bcd12c9da5aa67630013d14f4724",
"checkout_id": 24009044525110,
"checkout_token": "1418c1fb03b3afa3037e18a328517749",
"client_details": {
"accept_language": "en-US,en;q=0.9",
"browser_height": 697,
"browser_ip": "75.161.39.165",
"browser_width": 1150,
"session_hash": null,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.53"
},
"closed_at": null,
"confirmed": true,
"contact_email": "concepcion.candelaria@yhaoo.com",
"created_at": "2021-11-19T00:11:15+08:00",
"currency": "USD",
"current_subtotal_price": "29.99",
"current_subtotal_price_set": {
"shop_money": {
"amount": "29.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "29.99",
"currency_code": "USD"
}
},
"current_total_discounts": "0.00",
"current_total_discounts_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"current_total_duties_set": null,
"current_total_price": "37.98",
"current_total_price_set": {
"shop_money": {
"amount": "37.98",
"currency_code": "USD"
},
"presentment_money": {
"amount": "37.98",
"currency_code": "USD"
}
},
"current_total_tax": "0.00",
"current_total_tax_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"customer_locale": "en",
"device_id": null,
"discount_codes": [],
"email": "concepcion.candelaria@yhaoo.com",
"financial_status": "paid",
"fulfillment_status": null,
"gateway": "paypal",
"landing_site": "/collections/bath-bombs-gift-sets/products/bath-bomb-gift-set-dolly-doll-collection/?mtm_campaign=ad_bb_959083301_0818_luoyingying_BB959083301LH001V&mtm_source=facebook&mtm_medium=ppc&fbclid=IwAR26sF3bRg9QHvnlf3bqu7hnbVoJes0n3bLefj59KD96BO0uhGEg_f-ktLE",
"landing_site_ref": null,
"location_id": null,
"name": "#20005",
"note": null,
"note_attributes": [
{
"name": "rmc_uid",
"value": "5194b2c1-4f8d-49e3-9201-0e8251270aad"
}
],
"number": 19005,
"order_number": 20005,
"order_status_url": "https://lagunamoon.com/25226514/orders/cb73537adea98afcf5cf9d1b5ba0a64b/authenticate?key=2e0b4f4e459...",
"original_total_duties_set": null,
"payment_gateway_names": [
"paypal"
],
"phone": null,
"presentment_currency": "USD",
"processed_at": "2021-11-19T00:11:14+08:00",
"processing_method": "express",
"reference": null,
"referring_site": "https://l.facebook.com/",
"source_identifier": null,
"source_name": "web",
"source_url": null,
"subtotal_price": "29.99",
"subtotal_price_set": {
"shop_money": {
"amount": "29.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "29.99",
"currency_code": "USD"
}
},
"tags": "",
"tax_lines": [],
"taxes_included": false,
"test": false,
"token": "cb73537adea98afcf5cf9d1b5ba0a64b",
"total_discounts": "0.00",
"total_discounts_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"total_line_items_price": "29.99",
"total_line_items_price_set": {
"shop_money": {
"amount": "29.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "29.99",
"currency_code": "USD"
}
},
"total_outstanding": "0.00",
"total_price": "37.98",
"total_price_set": {
"shop_money": {
"amount": "37.98",
"currency_code": "USD"
},
"presentment_money": {
"amount": "37.98",
"currency_code": "USD"
}
},
"total_price_usd": "37.98",
"total_shipping_price_set": {
"shop_money": {
"amount": "7.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "7.99",
"currency_code": "USD"
}
},
"total_tax": "0.00",
"total_tax_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"total_tip_received": "0.00",
"total_weight": 1263,
"updated_at": "2021-11-19T00:11:18+08:00",
"user_id": null,
"billing_address": {
"first_name": "Concepcion",
"address1": "73 VEGAS RD. 73 VEGAS RD.",
"phone": "15054009668",
"city": "Los Lunas",
"zip": "87031",
"province": "New Mexico",
"country": "United States",
"last_name": "Candelaria",
"address2": "",
"company": "",
"latitude": 34.8040931,
"longitude": -106.6915619,
"name": "Concepcion Candelaria",
"country_code": "US",
"province_code": "NM"
},
"customer": {
"id": 5447618134070,
"email": "concepcion.candelaria@yhaoo.com",
"accepts_marketing": true,
"created_at": "2021-11-19T00:02:00+08:00",
"updated_at": "2021-11-19T00:11:17+08:00",
"first_name": "Concepcion",
"last_name": "Candelaria",
"orders_count": 1,
"state": "disabled",
"total_spent": "37.98",
"last_order_id": 4063378636854,
"note": null,
"verified_email": true,
"multipass_identifier": null,
"tax_exempt": false,
"phone": null,
"tags": "",
"last_order_name": "#20005",
"currency": "USD",
"accepts_marketing_updated_at": "2021-11-19T00:02:00+08:00",
"marketing_opt_in_level": "single_opt_in",
"tax_exemptions": [],
"admin_graphql_api_id": "gid://shopify/Customer/5447618134070",
"default_address": {
"id": 6638742798390,
"customer_id": 5447618134070,
"first_name": "Concepcion",
"last_name": "Candelaria",
"company": "",
"address1": "73 VEGAS RD. 73 VEGAS RD.",
"address2": "",
"city": "Los Lunas",
"province": "New Mexico",
"country": "United States",
"zip": "87031",
"phone": "15054009668",
"name": "Concepcion Candelaria",
"province_code": "NM",
"country_code": "US",
"country_name": "United States",
"default": true
}
},
"discount_applications": [],
"fulfillments": [],
"line_items": [
{
"id": 10494935040054,
"admin_graphql_api_id": "gid://shopify/LineItem/10494935040054",
"fulfillable_quantity": 1,
"fulfillment_service": "manual",
"fulfillment_status": null,
"gift_card": false,
"grams": 1263,
"name": "Dolly Doll Surprise Toys Bath Bombs Collection",
"origin_location": {
"id": 475502182454,
"country_code": "US",
"province_code": "WA",
"name": "LAGUNAMOON",
"address1": "12345 Lake City Way NE #2187",
"address2": "",
"city": "Seattle",
"zip": "98125"
},
"price": "29.99",
"price_set": {
"shop_money": {
"amount": "29.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "29.99",
"currency_code": "USD"
}
},
"product_exists": true,
"product_id": 6599752319030,
"properties": [],
"quantity": 1,
"requires_shipping": true,
"sku": "959083301",
"taxable": true,
"title": "Dolly Doll Surprise Toys Bath Bombs Collection",
"total_discount": "0.00",
"total_discount_set": {
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
},
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"variant_id": 39533949714486,
"variant_inventory_management": "shopify",
"variant_title": "",
"vendor": "LAGUNAMOON",
"tax_lines": [],
"duties": [],
"discount_allocations": []
}
],
"refunds": [],
"shipping_address": {
"first_name": "Concepcion",
"address1": "73 VEGAS RD. 73 VEGAS RD.",
"phone": "15054009668",
"city": "Los Lunas",
"zip": "87031",
"province": "New Mexico",
"country": "United States",
"last_name": "Candelaria",
"address2": "",
"company": "",
"latitude": 34.8040931,
"longitude": -106.6915619,
"name": "Concepcion Candelaria",
"country_code": "US",
"province_code": "NM"
},
"shipping_lines": [
{
"id": 3470768111670,
"carrier_identifier": null,
"code": "USPS",
"delivery_category": null,
"discounted_price": "7.99",
"discounted_price_set": {
"shop_money": {
"amount": "7.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "7.99",
"currency_code": "USD"
}
},
"phone": null,
"price": "7.99",
"price_set": {
"shop_money": {
"amount": "7.99",
"currency_code": "USD"
},
"presentment_money": {
"amount": "7.99",
"currency_code": "USD"
}
},
"requested_fulfillment_service_id": null,
"source": "shopify",
"title": "USPS",
"tax_lines": [],
"discount_allocations": []
}
],
"TransactionID": "2GW48757P0010953D"
}

0 条回复0