Mutation
mutation SetScxSellerShippingRuleMappings($request: SetScxSellerShippingRuleMappingsCommandRequestInput!) {
SetScxSellerShippingRuleMappings(request: $request) {
mappings {
shippingMethodId
salesChannelId
shippingRuleId
carrierId
customCarrierId
}
}
}Variables
{
"request": {
"salesChannelId": "string",
"mappings": [
{
"shippingMethodId": "id"
}
]
}
}Response
{
"data": {
"SetScxSellerShippingRuleMappings": {
"mappings": [
{
"shippingMethodId": "id",
"salesChannelId": "string",
"shippingRuleId": "id",
"carrierId": "string",
"customCarrierId": "string"
}
]
}
}
}Mutations
SetScxSellerShippingRuleMappings
Declaratively replaces the complete set of shipping-rule mappings of a SCX seller/account. The request describes the full desired state - provided mappings are upserted and every mapping not contained in the request is removed (declarative replace, ADR-57).
MUTATION
SetScxSellerShippingRuleMappings(request: SetScxSellerShippingRuleMappingsCommandRequestInput!): SetScxSellerShippingRuleMappingsCommandResponse!Arguments
request
mappings
The persisted shipping-rule mappings including their carrier id (server-resolved for a real shipping rule, or the stored custom carrier code for an own-carrier mapping).
Mutation
mutation SetScxSellerShippingRuleMappings($request: SetScxSellerShippingRuleMappingsCommandRequestInput!) {
SetScxSellerShippingRuleMappings(request: $request) {
mappings {
shippingMethodId
salesChannelId
shippingRuleId
carrierId
customCarrierId
}
}
}Variables
{
"request": {
"salesChannelId": "string",
"mappings": [
{
"shippingMethodId": "id"
}
]
}
}Response
{
"data": {
"SetScxSellerShippingRuleMappings": {
"mappings": [
{
"shippingMethodId": "id",
"salesChannelId": "string",
"shippingRuleId": "id",
"carrierId": "string",
"customCarrierId": "string"
}
]
}
}
}Was this page helpful?