curl --request POST \
--url https://development.knotapi.com/transactions/sync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"merchant_id": 45,
"external_user_id": "abc",
"cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}
'Sync Transactions
Sync a user’s transactions for a merchant account using cursor-based pagination.
curl --request POST \
--url https://development.knotapi.com/transactions/sync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"merchant_id": 45,
"external_user_id": "abc",
"cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}
'Documentation Index
Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Body
The input parameters required for syncing transactions.
Unique identifier for the merchant.
45
Your unique identifier for the user.
"abc"
Cursor token pointing to the last transaction retrieved. The /transactions/sync endpoint uses cursor-based pagination to track which transactions have already been seen, minimizing data redundancy.
On the first call, the endpoint returns all transactions paginated. In subsequent calls, only new transactions are provided using the next cursor.
"eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0"
Maximum number of transactions to retrieve (min: 1, max: 100).
1 <= x <= 100100
Was this page helpful?