Skip to content
Guides/Track payments

Recover missed payments

If your server was offline, read the list of settlements to find payments your webhook handler missed.

Read payments credited to your wallet

The settlements list gives you the same payment records Cadmos sends by webhook. Start with no query parameters to read from the beginning. Each page holds up to 100 payments, oldest first.

curl --fail-with-body 'https://api.cadmospay.com/machine/v1/gateway/settlements' \
  -H "Authorization: Bearer ${CADMOS_ACCESS_TOKEN:?Set CADMOS_ACCESS_TOKEN}"

Save each payment once

Match linkUuid to the link stored with your order. Use the settlement id to skip any payment you already recorded. Links created in the app can appear here with externalReference: null.

When next has a value, pass it as cursor to get the next page. Stop when next is null.

Show the next-page request
curl --fail-with-body 'https://api.cadmospay.com/machine/v1/gateway/settlements' \
  -H "Authorization: Bearer ${CADMOS_ACCESS_TOKEN:?Set CADMOS_ACCESS_TOKEN}" \
  --get \
  --data-urlencode "cursor=${CURSOR:?Set CURSOR}"

Resume a later sync

Set since to a UTC timestamp a few minutes before your previous sync, ending in Z. This overlap picks up late records. Use only cursor on subsequent pages.

Next in guidesTest a checkout

We use necessary cookies to run this site. With your permission, we also use analytics and advertising technologies to measure visits and downloads.