HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Discussions

Discussions

Ask a Question
Back to All

Delivery address

Hi,

What will be shown in order["delivery_address"] if the customer choose to pick up the order in say 7-11 (when the order["order_delivery"] equals "store_pickup")?

I am not sure now because our store doesn't handle store pick up, please answer me.

My first guess: the address should be the address of the 7-11?

Admin(edited)

Hi

For example, if customer has an order like this

You will get the data like below example. And the "delivery_address" will be null but the "store_address" will the address of 7-11.

"order_delivery": { "id": "62fc7a6335e3f9001cf8e000", "delivery_option_id": "61a592b3b186d700262bc000", "platform": "tw_711_b2c_nopay", "status": "collected", "delivery_status": "collected", "name_translations": { "en": "7-11 Pickup only (B2C)", "zh-hant": "7-11 取貨不付款" }, "total": { "cents": 0, "currency_symbol": "NT$", "currency_iso": "TWD", "label": "", "dollars": 0.0 }, "shipped_at": "2022-08-18T22:57:07.575+00:00", "arrived_at": "2022-08-19T00:00:00.000+00:00", "collected_at": "2022-08-19T00:00:00.000+00:00", "returned_at": null, "updated_at": "2022-08-20T02:21:42.418+00:00", "remark": null, "request_accepted_at": "2022-08-17T12:32:37.977+00:00", "request_authorized_at": "2022-08-17T06:29:46.041+00:00", "request_submitted_at": "2022-08-17T07:10:17.543+00:00", "requested_fmt_at": null, "require_expired_upload": false, "require_storeclosed_upload": false, "return_order_id": null, "store_closed_at": null, "storeclosed_upload_at": null, "exp_type": null, "delivery_type": "pickup", "requires_customer_address": false }, "delivery_address": { "country_code": "TW", "country": "台灣", "city": null, "state": null, "postcode": null, "address_1": null, "address_2": null, "key": null, "layer1": null, "layer2": null, "layer3": null, "district": null, "logistic_codes": [], "recipient_name": "陳xx", "recipient_phone": "0950123456", "recipient_phone_country_code": null, "remarks": null }, "delivery_data": { "hk_sfplus_home_region": null, "location_code": "239695", "location_name": "達人門市", "location_short_name": null, "name_translations": null, "store_address": "台北市內湖區內湖路二段249號251號", "url": null, "tracking_number": "77437396000", "scheduled_delivery_date": null, "time_slot_key": "", "time_slot_translations": null, "instore_pickup": false, "target_channel_id": null, "store_address_detail": {} },

Hi,

so we will not know which convenience store is in delivery_data?

In your example, we don't know the "達人門市" belongs to 7-11.