### Go SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using Go. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2025-07/inventory" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/api/inventory/get-all-inventories.md Example of how to get all inventory items using Go. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2026-01/inventory" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/get-subscriptions.md Example of how to get webhook subscriptions using Go. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2025-07/webhook" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Swift SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using Swift. ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.shipbob.com/2025-07/inventory")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` -------------------------------- ### PHP SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using PHP. ```php request('GET', 'https://api.shipbob.com/2025-07/inventory', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ?> ``` -------------------------------- ### Ruby SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using Ruby. ```ruby require 'uri' require 'net/http' url = URI("https://api.shipbob.com/2025-07/inventory") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### GET Channel Response Example Source: https://developer.shipbob.com/2025-07/sandbox/setup.md This is an example response from the GET Channels endpoint, showing the structure of channel data and the scopes associated with each channel. ```json GET Channel 2.0/channel { "id": 100102, "name": "Privileged Access Token Wednesday, September 20, 2025", "application_name": "SMA", "scopes": [ "fulfillments_write", "webhooks_read", "returns_read", "orders_read", "inventory_write", "inventory_read", "returns_write", "products_read", "webhooks_write", "receiving_write", "receiving_read", "channels_read", "products_write", "locations_read", "orders_write", "fulfillments_read", "locations_write" ] }, { "id": 100101, "name": "ShipBob Default", "application_name": "ShipBob", "scopes": [ "webhooks_read", "returns_read", "orders_read", "inventory_read", "products_read", "receiving_read", "channels_read", "locations_read", "fulfillments_read" ] } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using Go. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2025-07/webhook" payload := strings.NewReader("{ \"topics\": [ \"order.shipped\" ], \"url\": \"https://mywebsite.com/shipbob/handler\", \"description\": \"string\", \"secret\": \"string\"}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### GET Channel 2026-01/channel Source: https://developer.shipbob.com/quickstart.md Example response for the GET Channels endpoint, showing channel details and scopes. ```javascript GET https://api.shipbob.com/2026-01/channel If you are using a ShipBob sandbox account, make sure to update your endpoint to `https://sandbox-api.shipbob.com/2026-01/channel` The channel ID to use when creating products, orders and returns would be `100102` since this is the channel that has scopes with `_write` access. { "items": [ { "id": 100102, "name": "Privileged Access Token Wednesday, September 20, 2025", "application_name": "API", "scopes": [ "fulfillments_write", "webhooks_read", "returns_read", "orders_read", "inventory_write", "inventory_read", "returns_write", "products_read", "webhooks_write", "receiving_write", "receiving_read", "channels_read", "products_write", "locations_read", "orders_write", "fulfillments_read", "locations_write" ] }, { "id": 100101, "name": "ShipBob Default", "application_name": "ShipBob", "scopes": [ "webhooks_read", "returns_read", "orders_read", "inventory_read", "products_read", "receiving_read", "channels_read", "locations_read", "fulfillments_read" ] } ] } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using Go. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2026-01/return" payload := strings.NewReader("{ \n \"fulfillment_center\": { \n \"id\": 0,\n \"name\": \"string\"\n },\n \"inventory\": [ \n {\n \"id\": 0,\n \"quantity\": 0,\n \"requested_action\": \"Default\",\n \"lot_date\": \"2019-08-24T14:15:22Z\",\n \"lot_number\": \"string\"\n }\n ],\n \"reference_id\": \"string\",\n \"original_shipment_id\": 0,\n \"tracking_number\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("shipbob_channel_id", "shipbob_channel_id") req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/api/products/get-product.md Example of how to get product information using Go. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2026-01/product/productId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### GET Channels API Endpoint Source: https://developer.shipbob.com/2025-07/sandbox/setup.md This is an example of how to make a GET request to the Channels endpoint to retrieve channel information, including the channel ID. ```http GET https://sandbox-api.shipbob.com/2026-01/channel ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/2025-07/api/products/gets-multiple-product-variants Example of how to get multiple product variants using Go. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2025-07/product/productId/variants" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Get Transaction Fees - Sample Response Source: https://developer.shipbob.com/2025-07/guides/billing.md Example JSON response for the 'Get Transaction Fees' endpoint, listing different fee types and their descriptions. ```json { "items": [ { "fee_type": "Shipping", "description": "Cost associated with shipping a package" }, { "fee_type": "WMS - Fuel Surcharge", "description": "Fuel surcharge applied to shipping" }, { "fee_type": "Delivery Area Surcharge", "description": "Additional fee for deliveries to specific areas" }, { "fee_type": "CreditCardProcessingFee", "description": "Fee for processing credit card payments" }, { "fee_type": "AdditionalFee", "description": "Miscellaneous additional fees" } ] } ``` -------------------------------- ### Ruby SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using Ruby. ```ruby require 'uri' require 'net/http' url = URI("https://api.shipbob.com/2026-01/return") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["shipbob_channel_id"] = 'shipbob_channel_id' request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"fulfillment_center\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"inventory\": [\n {\n \"id\": 0,\n \"quantity\": 0,\n \"requested_action\": \"Default\",\n \"lot_date\": \"2019-08-24T14:15:22Z\",\n \"lot_number\": \"string\"\n }\n ],\n \"reference_id\": \"string\",\n \"original_shipment_id\": 0,\n \"tracking_number\": \"string\"\n}" response = http.request(request) puts response.read_body ``` -------------------------------- ### Get Transactions by Invoice ID - Sample Response Source: https://developer.shipbob.com/2025-07/guides/billing.md Example JSON response for the 'Get Transactions by Invoice ID' endpoint, showing transaction details. ```json { "items": [ { "transaction_id": "01K7FHRK39R603254DSCD0YXR2", "amount": 6.93, "currency_code": "USD", "charge_date": "2025-10-13", "invoiced_status": true, "invoice_date": "2025-10-14", "transaction_fee": "Shipping", "invoice_id": 8404298, "invoice_type": "Shipping", "reference_id": "305406896", "reference_type": "Shipment", "transaction_type": "Charge", "fulfillment_center": "ShipBob Test FC (Innovation Center)", "taxes": [], "additional_details": { "TrackingId": "9261290318421111944909", "Comment": "" } } ] } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/api/products/get-products.md Example of how to retrieve products using the Go SDK. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2026-01/product" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### Get Transaction Fees - Sample Request Source: https://developer.shipbob.com/2025-07/guides/billing.md Example cURL command to retrieve a list of available transaction fee types. ```bash curl -X GET "https://api.shipbob.com/2026-01/transaction-fees" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" ``` -------------------------------- ### Python SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using Python. ```python import requests url = "https://api.shipbob.com/2026-01/return" payload = { "fulfillment_center": { "id": 0, "name": "string" }, "inventory": [ { "id": 0, "quantity": 0, "requested_action": "Default", "lot_date": "2019-08-24T14:15:22Z", "lot_number": "string" } ], "reference_id": "string", "original_shipment_id": 0, "tracking_number": "string" } headers = { "shipbob_channel_id": "shipbob_channel_id", "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` -------------------------------- ### Get Transactions by Invoice ID - Sample Request Source: https://developer.shipbob.com/2025-07/guides/billing.md Example cURL command to retrieve transactions associated with a specific invoice ID, including pagination parameters. ```bash curl -X GET "https://api.shipbob.com/2026-01/invoices/8404298/transactions?Page=1&PageSize=50" \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" ``` -------------------------------- ### PHP SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using PHP. ```php request('POST', 'https://api.shipbob.com/2026-01/return', [ 'body' => '{\n "fulfillment_center": {\n "id": 0,\n "name": "string"\n },\n "inventory": [\n {\n "id": 0,\n "quantity": 0,\n "requested_action": "Default",\n "lot_date": "2019-08-24T14:15:22Z",\n "lot_number": "string"\n }\n ],\n "reference_id": "string",\n "original_shipment_id": 0,\n "tracking_number": "string"\n}', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', 'shipbob_channel_id' => 'shipbob_channel_id', ], ]); echo $response->getBody(); ``` -------------------------------- ### cURL Example Source: https://developer.shipbob.com/api/channels/get-channels?explorer=true Example of how to make a GET request to the Get Channels API endpoint using cURL. ```shell $ curl https://api.shipbob.com/2026-01/channel \ -H "Authorization: Bearer " ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2025-07/inventory"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` -------------------------------- ### Java SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using Java. ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.shipbob.com/2026-01/return") .header("shipbob_channel_id", "shipbob_channel_id") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"fulfillment_center\": {\n \"id\": 0,\n \"name\": \"string\"\n },\n \"inventory\": [\n {\n \"id\": 0,\n \"quantity\": 0,\n \"requested_action\": \"Default\",\n \"lot_date\": \"2019-08-24T14:15:22Z\",\n \"lot_number\": \"string\"\n }\n ],\n \"reference_id\": \"string\",\n \"original_shipment_id\": 0,\n \"tracking_number\": \"string\"\n}") .asString(); ``` -------------------------------- ### Java SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using Java. ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.shipbob.com/2025-07/inventory") .header("Authorization", "Bearer ") .asString(); ``` -------------------------------- ### Ruby SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using Ruby. ```ruby require 'uri' require 'net/http' url = URI("https://api.shipbob.com/2025-07/webhook") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"topics\": [\n \"order.shipped\"\n ],\n \"url\": \"https://mywebsite.com/shipbob/handler\",\n \"description\": \"string\",\n \"secret\": \"string\"\n}" response = http.request(request) puts response.read_body ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/api/products/get-products.md Example of how to retrieve products using the C# SDK. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2026-01/product"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` -------------------------------- ### JavaScript SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using JavaScript. ```javascript const url = 'https://api.shipbob.com/2025-07/inventory'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` -------------------------------- ### Go SDK Example Source: https://developer.shipbob.com/2025-07/api/products/retrieves-list-of-products-based-on-filters-provided.md Example of how to retrieve a list of products using the Go SDK. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.shipbob.com/2025-07/product" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` -------------------------------- ### JavaScript SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using JavaScript. ```javascript const url = 'https://api.shipbob.com/2026-01/return'; const options = { method: 'POST', headers: { shipbob_channel_id: 'shipbob_channel_id', Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: '{"fulfillment_center":{"id":0,"name":"string"},"inventory":[{"id":0,"quantity":0,"requested_action":"Default","lot_date":"2019-08-24T14:15:22Z","lot_number":"string"}],"reference_id":"string","original_shipment_id":0,"tracking_number":"string"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` -------------------------------- ### Python SDK Example Source: https://developer.shipbob.com/2025-07/api/inventory/get-all-inventories.md Example of how to get all inventories using Python. ```python import requests url = "https://api.shipbob.com/2025-07/inventory" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/api/returns/create-return-order.md Example of how to create a return order using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2026-01/return"); var request = new RestRequest(Method.POST); ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/api/locations/get-locations.md Example of how to get locations using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2026-01/location"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` -------------------------------- ### PHP SDK Example Source: https://developer.shipbob.com/api/locations/get-locations.md Example of how to get locations using PHP. ```php request('GET', 'https://api.shipbob.com/2026-01/location', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ?> ``` -------------------------------- ### Swift SDK Example Source: https://developer.shipbob.com/api/products/get-product.md Example of how to get product information using Swift. ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.shipbob.com/2026-01/product/productId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` -------------------------------- ### Python SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using Python. ```python import requests url = "https://api.shipbob.com/2025-07/webhook" payload = { "topics": ["order.shipped"], "url": "https://mywebsite.com/shipbob/handler", "description": "string", "secret": "string" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` -------------------------------- ### Java SDK Example Source: https://developer.shipbob.com/api/locations/get-locations.md Example of how to get locations using Java. ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.shipbob.com/2026-01/location") .header("Authorization", "Bearer ") .asString(); ``` -------------------------------- ### Swift SDK Example Source: https://developer.shipbob.com/api/products/get-products.md Example of how to retrieve products using the Swift SDK. ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.shipbob.com/2026-01/product")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` -------------------------------- ### JavaScript SDK Example Source: https://developer.shipbob.com/api/locations/get-locations.md Example of how to get locations using JavaScript. ```javascript const url = 'https://api.shipbob.com/2026-01/location'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` -------------------------------- ### Swift SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using Swift. ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "topics": ["order.shipped"], "url": "https://mywebsite.com/shipbob/handler", "description": "string", "secret": "string" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.shipbob.com/2025-07/webhook")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` -------------------------------- ### Python SDK Example Source: https://developer.shipbob.com/api/locations/get-locations.md Example of how to get locations using Python. ```python import requests url = "https://api.shipbob.com/2026-01/location" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/api/inventory/get-all-inventories.md Example of how to get all inventory items using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2026-01/inventory"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` -------------------------------- ### Java SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using Java. ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.shipbob.com/2025-07/webhook") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"topics\": [\n \"order.shipped\"\n ],\n \"url\": \"https://mywebsite.com/shipbob/handler\",\n \"description\": \"string\",\n \"secret\": \"string\"\n}") .asString(); ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/api/products/get-product.md Example of how to get product information using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2026-01/product/productId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` -------------------------------- ### Java SDK Example Source: https://developer.shipbob.com/api/inventory/get-all-inventories.md Example of how to get all inventory items using Java. ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.shipbob.com/2026-01/inventory") .header("Authorization", "Bearer ") .asString(); ``` -------------------------------- ### Ruby SDK Example Source: https://developer.shipbob.com/api/inventory/get-all-inventories.md Example of how to get all inventory items using Ruby. ```ruby require 'uri' require 'net/http' url = URI("https://api.shipbob.com/2026-01/inventory") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### Ruby SDK Example Source: https://developer.shipbob.com/api/products/get-product.md Example of how to get product information using Ruby. ```ruby require 'uri' require 'net/http' url = URI("https://api.shipbob.com/2026-01/product/productId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### C# SDK Example Source: https://developer.shipbob.com/2025-07/api/webhooks/create-subscription.md Example of how to create a webhook subscription using C#. ```csharp using RestSharp; var client = new RestClient("https://api.shipbob.com/2025-07/webhook"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"topics\": [\n \"order.shipped\"\n ],\n \"url\": \"https://mywebsite.com/shipbob/handler\",\n \"description\": \"string\",\n \"secret\": \"string\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ```