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
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###
]
]
]
]