A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I am using GraphQL Admin API to setup Delivery Profile Location Group Zone. However I can only setup 'Flat rate' type of shipping cost calculation.
I need to use custom App to calculate rates:
I can confirm that this can be setup manually through Admin settings and is working as expected.
Can you please provide an example of GraphQL mutation for such case?
Thank you
Solved! Go to the solution
This is an accepted solution.
I found the solution to my problem with some additional digging.
Using mutation deliveryProfileUpdate.
Crucial thing is setting participant carrierServiceId with proper App DeliveryCarrierService GID!
Example:
"methodDefinitionsToCreate" => [
[
"active" => true,
"name" => ###Method Name###,
"participant" => [
"adaptToNewServices" => true,
"carrierServiceId" => "gid://shopify/DeliveryCarrierService/xxxxxxxxxx",
"participantServices" => [
"active" => true,
"name" => ###Participant Service Name###
]
]
]
]
This is an accepted solution.
I found the solution to my problem with some additional digging.
Using mutation deliveryProfileUpdate.
Crucial thing is setting participant carrierServiceId with proper App DeliveryCarrierService GID!
Example:
"methodDefinitionsToCreate" => [
[
"active" => true,
"name" => ###Method Name###,
"participant" => [
"adaptToNewServices" => true,
"carrierServiceId" => "gid://shopify/DeliveryCarrierService/xxxxxxxxxx",
"participantServices" => [
"active" => true,
"name" => ###Participant Service Name###
]
]
]
]