All URIs are relative to https://api-sandbox.rebilly.com/organizations/{organizationId}
Method | HTTP request | Description |
---|---|---|
delete_shipping_zone | DELETE /shipping-zones/{id} | Delete a shipping zone |
get_shipping_zone | GET /shipping-zones/{id} | Retrieve a shipping zone |
get_shipping_zone_collection | GET /shipping-zones | Retrieve a list of shipping zones |
post_shipping_zone | POST /shipping-zones | Create a Shipping Zone |
put_shipping_zone | PUT /shipping-zones/{id} | Create a shipping zone with predefined ID |
delete_shipping_zone(id, opts)
Delete a shipping zone
Delete a shipping zone with predefined identifier string.
# load the gem
require 'rebilly_sdk'
# setup authorization
RebillySdk.configure do |config|
# Configure API key authorization: SecretApiKey
config.api_key['REB-APIKEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['REB-APIKEY'] = 'Bearer'
end
api_instance = RebillySdk::ShippingZonesApi.new
id = 'id_example' # String | The resource identifier string.
opts = {
organization_id: RebillySdk::ResourceId.new # ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
}
begin
#Delete a shipping zone
api_instance.delete_shipping_zone(id, opts)
rescue RebillySdk::ApiError => e
puts "Exception when calling ShippingZonesApi->delete_shipping_zone: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | The resource identifier string. | |
organization_id | ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead. | [optional] |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
ShippingZone get_shipping_zone(id, opts)
Retrieve a shipping zone
Retrieve a shipping zone with specified identifier string.
# load the gem
require 'rebilly_sdk'
# setup authorization
RebillySdk.configure do |config|
# Configure API key authorization: SecretApiKey
config.api_key['REB-APIKEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['REB-APIKEY'] = 'Bearer'
end
api_instance = RebillySdk::ShippingZonesApi.new
id = 'id_example' # String | The resource identifier string.
opts = {
organization_id: RebillySdk::ResourceId.new # ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
}
begin
#Retrieve a shipping zone
result = api_instance.get_shipping_zone(id, opts)
p result
rescue RebillySdk::ApiError => e
puts "Exception when calling ShippingZonesApi->get_shipping_zone: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | The resource identifier string. | |
organization_id | ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Array<ShippingZone> get_shipping_zone_collection(opts)
Retrieve a list of shipping zones
Retrieve a list of shipping zones.
# load the gem
require 'rebilly_sdk'
# setup authorization
RebillySdk.configure do |config|
# Configure API key authorization: SecretApiKey
config.api_key['REB-APIKEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['REB-APIKEY'] = 'Bearer'
end
api_instance = RebillySdk::ShippingZonesApi.new
opts = {
organization_id: RebillySdk::ResourceId.new, # ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
limit: 56, # Integer | The collection items limit.
offset: 56, # Integer | The collection items offset.
filter: 'filter_example', # String | The collection items filter requires a special format. Use \",\" for multiple allowed values. Use \";\" for multiple fields. See the [filter guide](https://api-reference.rebilly.com/#section/Using-filter-with-collections) for more options and examples about this format.
sort: ['sort_example'], # Array<String> | The collection items sort field and order (prefix with \"-\" for descending sort).
q: 'q_example' # String | The partial search of the text fields.
}
begin
#Retrieve a list of shipping zones
result = api_instance.get_shipping_zone_collection(opts)
p result
rescue RebillySdk::ApiError => e
puts "Exception when calling ShippingZonesApi->get_shipping_zone_collection: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
organization_id | ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead. | [optional] |
limit | Integer | The collection items limit. | [optional] |
offset | Integer | The collection items offset. | [optional] |
filter | String | The collection items filter requires a special format. Use "," for multiple allowed values. Use ";" for multiple fields. See the filter guide for more options and examples about this format. | [optional] |
sort | Array<String> | The collection items sort field and order (prefix with "-" for descending sort). | [optional] |
q | String | The partial search of the text fields. | [optional] |
- Content-Type: Not defined
- Accept: application/json
ShippingZone post_shipping_zone(body, opts)
Create a Shipping Zone
Create a Shipping Zone.
# load the gem
require 'rebilly_sdk'
# setup authorization
RebillySdk.configure do |config|
# Configure API key authorization: SecretApiKey
config.api_key['REB-APIKEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['REB-APIKEY'] = 'Bearer'
end
api_instance = RebillySdk::ShippingZonesApi.new
body = RebillySdk::ShippingZone.new # ShippingZone | Shipping Zone resource.
opts = {
organization_id: RebillySdk::ResourceId.new # ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
}
begin
#Create a Shipping Zone
result = api_instance.post_shipping_zone(body, opts)
p result
rescue RebillySdk::ApiError => e
puts "Exception when calling ShippingZonesApi->post_shipping_zone: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | ShippingZone | Shipping Zone resource. | |
organization_id | ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead. | [optional] |
- Content-Type: application/json
- Accept: application/json
ShippingZone put_shipping_zone(bodyid, opts)
Create a shipping zone with predefined ID
Create a shipping zone with predefined identifier string.
# load the gem
require 'rebilly_sdk'
# setup authorization
RebillySdk.configure do |config|
# Configure API key authorization: SecretApiKey
config.api_key['REB-APIKEY'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['REB-APIKEY'] = 'Bearer'
end
api_instance = RebillySdk::ShippingZonesApi.new
body = RebillySdk::ShippingZone.new # ShippingZone | Shipping zone resource.
id = 'id_example' # String | The resource identifier string.
opts = {
organization_id: RebillySdk::ResourceId.new # ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
}
begin
#Create a shipping zone with predefined ID
result = api_instance.put_shipping_zone(bodyid, opts)
p result
rescue RebillySdk::ApiError => e
puts "Exception when calling ShippingZonesApi->put_shipping_zone: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | ShippingZone | Shipping zone resource. | |
id | String | The resource identifier string. | |
organization_id | ResourceId | Organization identifier in scope of which need to perform request (if not specified, the default organization will be used). It is deprecated. Use servers with `/organizations/{organizationId}` base path instead. | [optional] |
- Content-Type: application/json
- Accept: application/json