Send a payment reminder
curl --request POST \
--url https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder \
--header 'Authorization: Bearer <token>'import requests
url = "https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder', 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://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder"
req, _ := http.NewRequest("POST", 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.post("https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"type": "invoices",
"attributes": {
"number": "<string>",
"formatted_number": "<string>",
"currency": "<string>",
"is_cancellation": true,
"is_credit": true,
"has_payment": true,
"show_transfer_note": true,
"vat_number": "<string>",
"notes": "<string>",
"recipient": "<string>",
"invoicing_party": "<string>",
"total": 123,
"net_amount": 123,
"tax_amount": 123,
"status": "draft",
"is_processing": true,
"access_token": "<string>",
"issued_at": "<string>",
"due_date": "<string>",
"created_at": "<string>"
},
"links": {
"self": "<string>"
},
"relationships": {
"order": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"items": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"payments": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"organization": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
}
}
}
}Orders & Billing
Send a payment reminder
Send the customer the payment reminder mail for an open invoice now, independent of the organization’s automatic payment reminder setting.
At most once per invoice in 24 hours. Refused for a settled invoice, while a payment is pending or succeeded but not yet booked (for example a SEPA debit), and when the customer has no real email address. Rate limit: 60 requests per hour per user, shared with charging invoices.
POST
/
api
/
v1
/
invoices
/
{invoice_id}
/
send-payment-reminder
Send a payment reminder
curl --request POST \
--url https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder \
--header 'Authorization: Bearer <token>'import requests
url = "https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder', 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://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder"
req, _ := http.NewRequest("POST", 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.post("https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/invoices/{invoice_id}/send-payment-reminder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"type": "invoices",
"attributes": {
"number": "<string>",
"formatted_number": "<string>",
"currency": "<string>",
"is_cancellation": true,
"is_credit": true,
"has_payment": true,
"show_transfer_note": true,
"vat_number": "<string>",
"notes": "<string>",
"recipient": "<string>",
"invoicing_party": "<string>",
"total": 123,
"net_amount": 123,
"tax_amount": 123,
"status": "draft",
"is_processing": true,
"access_token": "<string>",
"issued_at": "<string>",
"due_date": "<string>",
"created_at": "<string>"
},
"links": {
"self": "<string>"
},
"relationships": {
"order": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"items": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"payments": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"organization": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
}
}
}
}