List settlements
https://api.cadmospay.com/machine/v1/gateway/settlementsYour settlements, oldest first, 100 a page; follow cursor=<next> until next is null. Send since or cursor, never both; neither starts from the beginning.
This is the catch-up for webhooks. To resume, ask since the time of your last sync minus a few minutes and drop the ids you already have: a settlement can be recorded slightly after one stamped later. It also lists payments to the links you made in the app (externalReference: null).
Authentication
Authorization: Bearer <accessToken>
The accessToken from POST /v1/external-auth/token, valid 15 minutes.
Parameters
sincestring · queryOptionalISO 8601 time with a
Z, inclusive.format date-timecursorstring · queryOptionalThe
nextof the previous page.pattern ^\d{13}\.\d{1,10}$
Responses
One page.
Response schema · SettlementPage
itemsarray of objectRequireditems at most 100items[].idstringRequiredThe payment's on-chain transfer id. Unique: drop one you already have.
pattern ^0x[0-9a-fA-F]{64}$items[].linkUuidstringRequiredIgnore a link you do not know: it was made in the app.
format uuiditems[].externalReferencestring or nullRequiredYour reference,
nullfor a link made in the app.items[].assetstringRequiredWhat arrived:
CUSDfor a cash payment.one of USDC, USDT, CUSDitems[].grossstringRequiredAn integer string of 6-decimal units:
"100000000"is 100.000000.pattern ^\d+$items[].gatewayFeestring or nullRequiredAn integer string of 6-decimal units:
"100000000"is 100.000000.pattern ^\d+$items[].appliedRateBpsinteger or nullRequireditems[].netCusdstringRequiredWhat your wallet was credited.
pattern ^\d+$items[].settledAtstring or nullRequiredformat date-timeitems[].settlementobjectRequireditems[].settlement.chainstringRequiredone of arbitrumitems[].settlement.txHashstring or nullRequiredThe transaction that credited your wallet.
items[].whishCashInstring or nullRequiredThe Whish cash-in behind a cash payment;
nullfor crypto.items[].destinationstringRequiredAlways your Cadmos wallet.
one of cadmos_walletnextstring or nullRequiredThe cursor of the next page, or
nullon the last page.pattern ^\d{13}\.\d{1,10}$