curl --request GET \
--url https://api.cf.ovrsea.com/v1/invoicesimport requests
url = "https://api.cf.ovrsea.com/v1/invoices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cf.ovrsea.com/v1/invoices', 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.cf.ovrsea.com/v1/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.cf.ovrsea.com/v1/invoices"
req, _ := http.NewRequest("GET", url, nil)
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.cf.ovrsea.com/v1/invoices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cf.ovrsea.com/v1/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"amount_paid": {
"amount": 150357.99,
"currency": "USD"
},
"reference": "CDEF - 0342/7055 2022",
"number": "FAC2022-9567",
"ovrsea_shipment_id": "BB-BATD-5",
"type": "invoice",
"status": "available",
"reference_date": "2021-10-11",
"sent_date": "2021-09-20T10:02:09+01:00",
"due_date": "2021-10-11",
"link": "https://documents.ovrsea.com/invoices/FAC2022-9567.pdf?Expires=1700000000&Signature=...",
"lines": [
{
"category": "arrival_customs",
"description": "IMO Surcharge",
"amount": {
"amount": 150357.99,
"currency": "USD"
},
"price": {
"amount": 150357.99,
"currency": "USD"
},
"quantity": {
"value": 350.25,
"unit": "tc"
},
"unit_rate": {
"amount": 150357.99,
"currency": "USD"
},
"vatRate": 20
}
],
"payment_date": "2021-10-11",
"recipient": {
"name": "<string>"
},
"shipment_ids": [
"<string>"
],
"total_excluding_tax": {
"amount": 150357.99,
"currency": "USD"
},
"total_including_tax": {
"amount": 150357.99,
"currency": "USD"
},
"usd_to_eur_rate": 0.82
}
]{}Fetch all invoices
This endpoint returns all the invoices of the account.
curl --request GET \
--url https://api.cf.ovrsea.com/v1/invoicesimport requests
url = "https://api.cf.ovrsea.com/v1/invoices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cf.ovrsea.com/v1/invoices', 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.cf.ovrsea.com/v1/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.cf.ovrsea.com/v1/invoices"
req, _ := http.NewRequest("GET", url, nil)
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.cf.ovrsea.com/v1/invoices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cf.ovrsea.com/v1/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"amount_paid": {
"amount": 150357.99,
"currency": "USD"
},
"reference": "CDEF - 0342/7055 2022",
"number": "FAC2022-9567",
"ovrsea_shipment_id": "BB-BATD-5",
"type": "invoice",
"status": "available",
"reference_date": "2021-10-11",
"sent_date": "2021-09-20T10:02:09+01:00",
"due_date": "2021-10-11",
"link": "https://documents.ovrsea.com/invoices/FAC2022-9567.pdf?Expires=1700000000&Signature=...",
"lines": [
{
"category": "arrival_customs",
"description": "IMO Surcharge",
"amount": {
"amount": 150357.99,
"currency": "USD"
},
"price": {
"amount": 150357.99,
"currency": "USD"
},
"quantity": {
"value": 350.25,
"unit": "tc"
},
"unit_rate": {
"amount": 150357.99,
"currency": "USD"
},
"vatRate": 20
}
],
"payment_date": "2021-10-11",
"recipient": {
"name": "<string>"
},
"shipment_ids": [
"<string>"
],
"total_excluding_tax": {
"amount": 150357.99,
"currency": "USD"
},
"total_including_tax": {
"amount": 150357.99,
"currency": "USD"
},
"usd_to_eur_rate": 0.82
}
]{}Query Parameters
Response
Returns all invoices.
available: Issued and awaiting payment.
due: Past its due date and unpaid.
partially_paid: Partially paid with a remaining balance.
paid: Paid in full.
litigious: Disputed.
write_off: Written off as uncollectible.
new: Compatibility value; never returned to customers.
in_modification: Compatibility value; never returned to customers.
Further values may be added. Clients should handle an unknown value as an unrecognized invoice status.
available, due, in_modification, litigious, new, paid, partially_paid, write_off Preview: All public shipment references covered by the invoice that the caller can read (one for a single-shipment invoice, several for a grouped invoice). Canonical brand-neutral list introduced to progressively replace the historical single-shipment ovrsea_shipment_id field; both coexist temporarily for backwards compatibility.
