Updates an existing shipping method on an account.
The unique ID of the account.
The unique ID of the shipping method.
A valid API key with a scope of AccountLists
The name of the shipping method. If supplied, it is subject to the same validation as create (maximum 32 characters, cannot be empty). If omitted, the currently stored name is left unchanged.
Indicates if the shipping method is active or inactive. If omitted, the currently stored value is left unchanged.
All fields are optional on update. Omitting a field entirely leaves that field's currently stored value unchanged — it is not reset to a default. In the example above, only active is supplied, so the shipping method's name is left exactly as it was before the update.
If a field is supplied, it is validated the same way it is on Create. Supplying an empty shippingMethod value is different from omitting it and will fail validation, since shippingMethod cannot be empty.
A shipping method's name must remain unique within an account. If shippingMethod is supplied and it matches the name of another shipping method on the same account, the request will fail with a 409 Conflict.
None
The shipping method was updated. The updated shipping method is returned.
The shipping method was not updated. This occurs if shippingMethod is supplied but is empty or exceeds 32 characters.
The API key is missing, invalid, disabled, or does not have the correct scope.
The API key does not belong to this account, the account does not have the API-keys feature, or the key does not have the required scope.
No shipping method was found with that id for this account.
A shipping method with that name already exists for this account.
The unique ID of the shipping method.
The name of the shipping method.
Indicates if the shipping method is active or inactive.