curl --request GET \
--url https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods', 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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods",
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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods"
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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods")
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{
"status_code": 200,
"data": [
{
"key": "usps_ground_advantage",
"label": "USPS Ground Advantage",
"fee": 6.95,
"fee_percentage": 0,
"carrier_cost": 5.2,
"markup_fee": 1.75,
"estimated_days": "2-5",
"requires_document": true,
"attachment_fee_per_page": 0.25,
"attachment_fee": 0.75
},
{
"key": "usps_priority",
"label": "USPS Priority Mail",
"fee": 11.4,
"fee_percentage": 0,
"carrier_cost": 9.15,
"markup_fee": 2.25,
"estimated_days": "1-3",
"requires_document": true,
"attachment_fee_per_page": 0.25,
"attachment_fee": 0.75
}
],
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}List Document Mailing Services
The carrier services available for a document you supply: we print the PDF, attach a label and hand it to USPS or FedEx. No wallet is debited — only the mailing fee is billed, on your monthly invoice.
Rating needs the destination, so zip is required. fee is what you will be billed; carrier_cost and markup_fee are what it is made of. Send the document as document when you create it.
curl --request GET \
--url https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods', 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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods",
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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods"
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://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/payments/document-mailing/methods")
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{
"status_code": 200,
"data": [
{
"key": "usps_ground_advantage",
"label": "USPS Ground Advantage",
"fee": 6.95,
"fee_percentage": 0,
"carrier_cost": 5.2,
"markup_fee": 1.75,
"estimated_days": "2-5",
"requires_document": true,
"attachment_fee_per_page": 0.25,
"attachment_fee": 0.75
},
{
"key": "usps_priority",
"label": "USPS Priority Mail",
"fee": 11.4,
"fee_percentage": 0,
"carrier_cost": 9.15,
"markup_fee": 2.25,
"estimated_days": "1-3",
"requires_document": true,
"attachment_fee_per_page": 0.25,
"attachment_fee": 0.75
}
],
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
Recipient ZIP code — services are rated against it.
20Recipient country.
2Total attachment pages you plan to send. Rates the heavier envelope so the quote matches what you will be billed. An estimate — the rate at create time is authoritative. Capped at the same 50-page limit create enforces.
0 <= x <= 50Pages in the document itself. Every shipment has one, so this defaults to 1. Billed per page just like attachments — an estimate for the quote, not a create-time limit.
1 <= x <= 50Response
The mailing services offered to you, priced for this destination.

