How to set a "transit time" on an app-driven location

fpierrat
Shopify Partner
5 0 0

Hi,

 

We developed a custom app using the REST API.

This app collects orders, creates fulfillmentOrders and fulfillments when the goods are physically shipped.

Our problem is the following: when configuring shipping flat rates in Shopify admin settings interface (Settings/Shipping and delivery), there's no possibility to add a transit time to the location bound to our app's fullfilmentService.

 

The only location to which it is possible to configure transit times is the "Shop location", located in France.

 

Is there a way (in Shopify or through API) to tell that our app-location is based in France?

Would that allow to add transit times to our shipping rates then?

Or is there another way to add transit times for shipping rates having an app-location for origin?

 

Thanks in advance for any help!

Replies 4 (4)

SBD_
Shopify Staff
1829 269 406

Hey @fpierrat 

 

I haven't used this feature yet but you should be able to create or update your FulfillmentService with the location_id of your French location. This should indicate that the fulfillment service is based in France, which might allow Transit Time to be added in the admin.

 

Let me know how it goes!

Scott | Developer Advocate @ Shopify 

fpierrat
Shopify Partner
5 0 0

Hi Scott,

Thanks for your interest.
This is something I already tried:

- at fulfillmentService creation, passing a location_id parameter topost /admin/api/2023-01/fulfillment_services.json didn't bring anything, a new ID was given in the returned fulfillmentService resource  (note: location_id is not documented parameter for this method).

- by updating an existing fulfillmentService via a PUT /admin/api/2023-07/fulfillment_services/{fulfillment_service_id}.json . I got a 200 response code but this location_id parameter had no effect  (note: location_id is no documented parameter for this method either).

 

Any other idea to address my main problem, being: set transit times for shippings on an rest-api-app-driven location?

Thanks in advance.

 

[EDIT]

Furthermore, a call to GET /admin/api/2023-07/locations.json brougth following response (id manually changed for anonymity).

The country actually IS France, so this seems not to be the problem. What else could be changed so we can add Transit Times to shipping rates bound to this location/fulfillmentService?

 

{
"id": 12312312312,
"name": "dummy location",
"address1": null,
"address2": null,
"city": null,
"zip": null,
"province": null,
"country": "FR",
"phone": null,
"created_at": "2023-04-24T15:29:04+02:00",
"updated_at": "2023-04-27T16:30:48+02:00",
"country_code": "FR",
"country_name": "France",
"province_code": null,
"legacy": true,
"active": true,
"admin_graphql_api_id": "gid://shopify/Location/12312312312",
"localized_country_name": "France",
"localized_province_name": null
},

fpierrat
Shopify Partner
5 0 0

His Scott

Thanks for your answer.

I already tried this both

- at creation time

 

post /admin/api/2023-10/fulfillment_services.json

 

- and as an update

 

put /admin/api/2023-10/fulfillment_services/{fulfillment_service_id}.json

 

 

Neither worked, I got a 201 code at creation, a 200 code at update, but nothing changed.

 

Note that location_id is no documented parameter, neither for the POST nor for the PUT method.

 

Furthermore, a call to 

 

get /admin/api/2023-10/locations.json

 

brought following response (id changed for anonymity).

It shows that the app-driven-location (legacy=true) is already located in France, so this is not the cause of not being able to set transit times to shipping rates bound to this api-rest-app-driven-location...

 

Thankfs in advance for further advices.

 

		{
			"id": 12312312312,
			"name": "test-bind-existing-loc",
			"address1": null,
			"address2": null,
			"city": null,
			"zip": null,
			"province": null,
			"country": "FR",
			"phone": null,
			"created_at": "2023-09-07T10:08:17+02:00",
			"updated_at": "2023-09-07T10:08:17+02:00",
			"country_code": "FR",
			"country_name": "France",
			"province_code": null,
			"legacy": true,
			"active": true,
			"admin_graphql_api_id": "gid://shopify/Location/12312312312",
			"localized_country_name": "France",
			"localized_province_name": null
		}

 

fpierrat
Shopify Partner
5 0 0

 

His Scott

Thanks for your answer.

I already tried this both

- at creation time


post /admin/api/2023-10/fulfillment_services.json


- and as an update


put /admin/api/2023-10/fulfillment_services/{fulfillment_service_id}.json

 

Neither worked, I got a 201 code at creation, a 200 code at update, but nothing changed.


Note that location_id is no documented parameter, neither for the POST nor for the PUT method.


Furthermore, a call to


get /admin/api/2023-10/locations.json


brought following response (id changed for anonymity).

It shows that the app-driven-location (legacy=true) is already located in France, so this is not the cause of not being able to set transit times to shipping rates bound to this api-rest-app-driven-location...


Thankfs in advance for further advices.


{
"id": 12312312312,
"name": "test-bind-existing-loc",
"address1": null,
"address2": null,
"city": null,
"zip": null,
"province": null,
"country": "FR",
"phone": null,
"created_at": "2023-09-07T10:08:17+02:00",
"updated_at": "2023-09-07T10:08:17+02:00",
"country_code": "FR",
"country_name": "France",
"province_code": null,
"legacy": true,
"active": true,
"admin_graphql_api_id": "gid://shopify/Location/12312312312",
"localized_country_name": "France",
"localized_province_name": null
}