Skip to main content

Get Available Shipping Channels for Shipments

Retrieves a list of active shipping channels available for creating shipments for the authenticated user.

Endpoint

GET /v1/shipments/shipping-channels

Authentication

API key required. Include it in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Response

200 OK

{
"data": [
{
"id": "ch_123456",
"name": "DHL Express",
"provider": "dhl",
"status": "active"
},
{
"id": "ch_234567",
"name": "DPD Standard",
"provider": "dpd",
"status": "active"
}
]
}

Error Responses

Status CodeDescription
401Unauthorized - Invalid or missing API key
429Too Many Requests - Rate limit exceeded
500Server Error - Something went wrong on our end

Example Request

cURL

curl -X GET \
https://api.shipping-channels.com/v1/shipments/shipping-channels \
-H "Authorization: Bearer YOUR_API_KEY"

PHP

<?php
$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.shipping-channels.com/v1/shipments/shipping-channels', [
'headers' => [
'Authorization' => 'Bearer YOUR_API_KEY',
'Accept' => 'application/json',
],
]);

$data = json_decode($response->getBody(), true);

JavaScript

fetch('https://api.shipping-channels.com/v1/shipments/shipping-channels', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));