All URIs are relative to https://api.shipengine.com
Method | HTTP request | Description |
---|---|---|
v1_shipments_by_shipment_id_get | GET /v1/shipments/{shipment_id} | shipments.get_by_id |
v1_shipments_by_shipment_id_put | PUT /v1/shipments/{shipment_id} | shipments.update_shipment |
v1_shipments_cancel_by_shipment_id_put | PUT /v1/shipments/{shipment_id}/cancel | shipments.cancel |
v1_shipments_errors_by_shipment_id_get | GET /v1/shipments/{shipment_id}/errors | shipments.find_errors |
v1_shipments_external_shipment_id_by_external_shipment_id_get | GET /v1/shipments/external_shipment_id/{external_shipment_id} | shipments.get_by_external_id |
v1_shipments_get | GET /v1/shipments | shipments.find |
v1_shipments_post | POST /v1/shipments | shipments.create_shipments |
v1_shipments_rates_by_shipment_id_get | GET /v1/shipments/{shipment_id}/rates | shipments.get_rates_for_shipment |
v1_shipments_tags_by_shipment_id_and_tag_delete | DELETE /v1/shipments/{shipment_id}/tags/{tag} | shipments.remove_tag |
v1_shipments_tags_by_shipment_id_and_tag_post | POST /v1/shipments/{shipment_id}/tags/{tag} | shipments.add_tag |
Shipment v1_shipments_by_shipment_id_get(shipment_id)
shipments.get_by_id
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
begin
#shipments.get_by_id
result = api_instance.v1_shipments_by_shipment_id_get(shipment_id)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_by_shipment_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String |
- Content-Type: application/json
- Accept: application/json
CreateShipmentResponseBody v1_shipments_by_shipment_id_put(shipment_id, body)
shipments.update_shipment
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
body = ShipEngineApi::AddressValidatingShipment.new # AddressValidatingShipment |
begin
#shipments.update_shipment
result = api_instance.v1_shipments_by_shipment_id_put(shipment_id, body)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_by_shipment_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String | ||
body | AddressValidatingShipment |
- Content-Type: application/json
- Accept: application/json
v1_shipments_cancel_by_shipment_id_put(shipment_id)
shipments.cancel
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
begin
#shipments.cancel
api_instance.v1_shipments_cancel_by_shipment_id_put(shipment_id)
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_cancel_by_shipment_id_put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
ShipmentErrorsResponseBody v1_shipments_errors_by_shipment_id_get(shipment_id, opts)
shipments.find_errors
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
opts = {
page: 56, # Integer |
pagesize: 56 # Integer |
}
begin
#shipments.find_errors
result = api_instance.v1_shipments_errors_by_shipment_id_get(shipment_id, opts)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_errors_by_shipment_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String | ||
page | Integer | [optional] | |
pagesize | Integer | [optional] |
- Content-Type: application/json
- Accept: application/json
Shipment v1_shipments_external_shipment_id_by_external_shipment_id_get(external_shipment_id)
shipments.get_by_external_id
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
external_shipment_id = 'external_shipment_id_example' # String |
begin
#shipments.get_by_external_id
result = api_instance.v1_shipments_external_shipment_id_by_external_shipment_id_get(external_shipment_id)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_external_shipment_id_by_external_shipment_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
external_shipment_id | String |
- Content-Type: application/json
- Accept: application/json
ListShipmentResponseBody v1_shipments_get(opts)
shipments.find
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
opts = {
batch_id: 'batch_id_example', # String |
tag: 'tag_example', # String |
shipment_status: 'shipment_status_example', # String |
modified_at_start: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
modified_at_end: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
created_at_start: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
created_at_end: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime |
page: 56, # Integer |
page_size: 56, # Integer |
sort_dir: 'sort_dir_example', # String |
sort_by: 'sort_by_example' # String |
}
begin
#shipments.find
result = api_instance.v1_shipments_get(opts)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
batch_id | String | [optional] | |
tag | String | [optional] | |
shipment_status | String | [optional] | |
modified_at_start | DateTime | [optional] | |
modified_at_end | DateTime | [optional] | |
created_at_start | DateTime | [optional] | |
created_at_end | DateTime | [optional] | |
page | Integer | [optional] | |
page_size | Integer | [optional] | |
sort_dir | String | [optional] | |
sort_by | String | [optional] |
- Content-Type: application/json
- Accept: application/json
CreateShipmentsResponseBody v1_shipments_post(body)
shipments.create_shipments
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
body = ShipEngineApi::CreateShipmentsRequestBody.new # CreateShipmentsRequestBody |
begin
#shipments.create_shipments
result = api_instance.v1_shipments_post(body)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | CreateShipmentsRequestBody |
- Content-Type: application/json
- Accept: application/json
RateResponseBody v1_shipments_rates_by_shipment_id_get(shipment_id, opts)
shipments.get_rates_for_shipment
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
opts = {
created_at_start: DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime |
}
begin
#shipments.get_rates_for_shipment
result = api_instance.v1_shipments_rates_by_shipment_id_get(shipment_id, opts)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_rates_by_shipment_id_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String | ||
created_at_start | DateTime | [optional] |
- Content-Type: application/json
- Accept: application/json
v1_shipments_tags_by_shipment_id_and_tag_delete(shipment_id, tag)
shipments.remove_tag
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
tag = 'tag_example' # String |
begin
#shipments.remove_tag
api_instance.v1_shipments_tags_by_shipment_id_and_tag_delete(shipment_id, tag)
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_tags_by_shipment_id_and_tag_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String | ||
tag | String |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
ShipmentAddTagResponseBody v1_shipments_tags_by_shipment_id_and_tag_post(shipment_id, tag)
shipments.add_tag
# load the gem
require 'shipengine_api'
# setup authorization
ShipEngineApi.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = '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['api-key'] = 'Bearer'
end
api_instance = ShipEngineApi::ShipmentsApi.new
shipment_id = 'shipment_id_example' # String |
tag = 'tag_example' # String |
begin
#shipments.add_tag
result = api_instance.v1_shipments_tags_by_shipment_id_and_tag_post(shipment_id, tag)
p result
rescue ShipEngineApi::ApiError => e
puts "Exception when calling ShipmentsApi->v1_shipments_tags_by_shipment_id_and_tag_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
shipment_id | String | ||
tag | String |
- Content-Type: application/json
- Accept: application/json