curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"carrier": {
"code": "postnord",
"name": "PostNord",
"logo_url": "<string>",
"icon_url": "<string>"
},
"code": "12345",
"name": "Netto Nørrebrogade",
"type": "post_office",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"opening_hours": {
"regular_opening_hours": [
{
"weekday": "monday",
"periods": [
{
"opening_time": "08:00",
"closing_time": "18:00"
}
]
}
],
"special_opening_hours": [
{
"is_closed": true,
"start_date": "2024-12-24",
"end_date": "2024-12-26",
"open_time": "10:00",
"close_time": "14:00"
}
]
},
"distance": 123,
"distance_unit": "m"
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}Get service point by carrier reference
Returns a single service point identified by the carrier’s own reference: carrier code, country code, and agent number.
curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/service-points/{carrier}/{country}/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"carrier": {
"code": "postnord",
"name": "PostNord",
"logo_url": "<string>",
"icon_url": "<string>"
},
"code": "12345",
"name": "Netto Nørrebrogade",
"type": "post_office",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"opening_hours": {
"regular_opening_hours": [
{
"weekday": "monday",
"periods": [
{
"opening_time": "08:00",
"closing_time": "18:00"
}
]
}
],
"special_opening_hours": [
{
"is_closed": true,
"start_date": "2024-12-24",
"end_date": "2024-12-26",
"open_time": "10:00",
"close_time": "14:00"
}
]
},
"distance": 123,
"distance_unit": "m"
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Preferred language(s) for translatable content using BCP 47 language tags. Supports quality values (q-factors) for priority ordering. The API negotiates the best available language based on this header, the team's configured language, and available translations. If omitted, the team's default language is used.
"da-DK, da;q=0.9, en;q=0.8"
Any value passed in this request will be returned in the same header. This can be used to correlate requests between client and server.
1 - 128^[A-Za-z0-9._-]{1,128}$Path Parameters
Team identifier. All resources are scoped to this team.
1"ad9546c1-393e-49a5-9a72-5cc146c9bec5"
Carrier code (e.g., postnord, gls, bring)
"postnord"
ISO 3166-1 alpha-2 country code
2"DK"
Carrier's service point code/number/id
"12345"
Response
Service point retrieved successfully
Show child attributes
Show child attributes
Was this page helpful?