#Unable to get address data. only IDs

3 messages · Page 1 of 1 (latest)

bronze sinew
#

currently implementing an custom fulfillment plugin. Unable to get address data. only IDs of billing and shipping from orderService. what to do to get the the shipping address.

const order = await orderService.retrieve(id)
const bill_address_id = order.billing_address
const ship_address_id = order.billing_address

both these values are undefined.

steep sail
#
orderService.retrieve(id, {
        relations: ['shipping_address']
});
bronze sinew
#

@steep sail any idea how to fetch sales_location address from the loaction id?
location_id: 'sloc_01HP9TJQW9Q7EJC9FBB578MGMA',