This method will auto-generate an ID and create a new shipping configuration. If an ID is specified for the shipping configuration, an error will be thrown.
The shipping configuration that you would like to be saved.
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will look up a shipping configuration by the specified ID and return it back.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/shippingConfigurations/:tenantId?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing shipping configuration with the specified ID.
The updated shipping configuration that will be saved.
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing shipping configuration with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "default_shipping_product_id": "string",
- "default_ship_from_name": "string",
- "default_ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "zones": [
- {
- "id": "string",
- "enabled": true,
- "name": "string",
- "type": "postal code",
- "postal_code_ranges": [
- {
- "start": "string",
- "end": "string"
}
], - "states": [
- {
- "state": "string"
}
], - "countries": [
- {
- "country": "string"
}
], - "shipping_product_id": "string",
- "pricing_strategies": {
- "free": {
- "id": "string",
- "display_name": "string",
- "display_order": 0,
- "enabled": true,
- "shipping_product_id": "string",
- "minimum_order_amount": 0,
- "maximum_order_amount": 0,
- "do_not_show_in_portal": true
}, - "flat_rate": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "shipping_rate": 0,
- "type": "per item",
- "shipping_product_id": "string"
}
]
}, - "ship_by": {
- "enabled": true,
- "shipping_product_id": "string",
- "shipping_methods": [
- {
- "id": "string",
- "display_order": 0,
- "display_name": "string",
- "charge_shipping_by": "order total",
- "default_shipping_cost": 0,
- "type": "percent of order total",
- "shipping_product_id": "string",
- "ranges": [
- { }
]
}
]
}, - "pick_up_in_store": {
- "id": "string",
- "display_name": "string",
- "shipping_product_id": "string",
- "cost": 0,
- "display_order": 0,
- "enabled": true,
- "do_not_show_in_portal": true
}, - "ups": {
- "enabled": true,
- "ups_account_id": "string",
- "override_default_ship_from_address": true,
- "ship_from_address": {
- "line1": "string",
- "line2": "string",
- "line3": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "county": "string",
- "country": "string",
- "country_name": "string",
- "latitude": 0,
- "longitude": 0,
- "time_zone_id": "string"
}, - "shipping_product_id": "string",
- "markup_type": "none",
- "markup_amount": 0,
- "do_not_show_in_portal": true,
- "display_order": 0,
- "limit_shipping_options": true,
- "shipping_options": [
- "string"
]
}
}
}
], - "notes": "string",
- "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will delete a shipping configuration with the specified ID.
curl -i -X DELETE \ https://commerce.api.756794052567.rhythmsoftware.com/shippingConfigurations/:tenantId \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"