RespireSoft InvoicingAPI docsReferenceWebhooks

Checkout links

A reusable pay page at /l/<slug>.

Create checkout link

POST /v1/checkout_links

Key scope checkout:write. Send an Idempotency-Key header

FieldTypeMeaning
slugstring
titlestring
amountintegerMinor units.
currencystring
curl
curl -X POST "https://api.invoicing.respiresoft.com/v1/checkout_links" \
  -H "Authorization: Bearer $RESPIRESOFT_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"title":"Donate","currency":"EUR"}'
Node
const res = await fetch("https://api.invoicing.respiresoft.com/v1/checkout_links", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.RESPIRESOFT_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "title": "Donate",
    "currency": "EUR"
  }),
})
const data = await res.json()
if (!res.ok) throw new Error(data.detail) // RFC 9457 problem document
PHP
$ch = curl_init("https://api.invoicing.respiresoft.com/v1/checkout_links");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("RESPIRESOFT_KEY"),
        "Idempotency-Key: " . bin2hex(random_bytes(16)),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => json_encode([
        "title" => "Donate",
        "currency" => "EUR",
    ]),
]);
$data = json_decode(curl_exec($ch), true);
Python
import os, uuid, requests

res = requests.request("POST", "https://api.invoicing.respiresoft.com/v1/checkout_links",
    headers={
        "Authorization": "Bearer " + os.environ["RESPIRESOFT_KEY"],
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
      "title": "Donate",
      "currency": "EUR"
    },
)
data = res.json()