Description
Modify one or multiple shipping providers.
Permission bit: "shipping_providers.modify"
Topic: Shipping Providers
Arguments
data: [ShippingProviderModify!]!
Main argument for mutations.
List of shipping provider ids. See also: Unique Identifiers
Example: ["sp_EQzGqWoY"]
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
auspost_options: AuspostOptionsCreate
canadapost_options: CanadapostOptionsCreate
Currency code for shipping provider to use
Example: "USD"
delivery_date_guaranteed: Boolean
Whether delivery date is guaranteed or not (fixed providers)
Example: true
Maximum days it would take to deliver a package (fixed providers)
Example: 5
Valid when: delivery_days_max is a non-negative integer
Minimum days it would take to deliver a package (fixed providers)
Example: 2
Valid when: delivery_days_min is a non-negative integer
Description text visible to the customer
Translatable
Example: "TODO"
Valid when: description's length doesn't exceed 4096 characters
fedex_options: FedexOptionsCreate
The maximum amount of time the inventory location will take to fulfill the order using this shipping provider
Example: 5
Valid when: lead_time_hours_max is a non-negative integer
The minimum amount of time the inventory location will take to fulfill the order using this shipping provider
Example: 2
Valid when: lead_time_hours_min is a non-negative integer
Name of the shipping provider
Translatable
Example: "Fixed 20$"
Valid when: name is not empty
Valid when: name's length doesn't exceed 250 characters
Shipping rate for fixed providers
Example: 2000
Valid when: rate is a non-negative integer
For non-fixed shipping provider types, fixed amount to add on top of the rate
Example: 500
Valid when: surcharge_fixed is a non-negative integer
For non-fixed shipping provider types, percentage to add on top of the rate
Example: 1.0
Valid when: surcharge_percentage is valid percentage, i.e.: 0 ≤ surcharge_percentage ≤ 100
Whether shipping provider test mode is enabled
Example: false
Is it allowed to use this shipping provider for tracking requests?
Example: true
type: ShippingProviderType
Type of the shipping provider
ups_options: UPSOptionsCreate
usps_options: USPSOptionsCreate
whitelist: [ShippingProviderWhitelistCreate!]
Shipping rate whilelist for non-fixed providers
Result
Preview (typescript)
Loading module