GET /v1/transfers/review

Possible transfers that could not be matched automatically

These have more than one possible partner, so nothing was linked. They are not counted as transfers until resolved.

Auth. Send the token in the X-Ledger-Token header.

Responses

StatusMeaningBody
200Ambiguous transactions and their candidate partnersobject[]
429Too many requests from this client address. Wait the number of seconds in Retry-After, then try again.Error

Example response

[
  {
    "out_tx_id": 0,
    "candidate_in_tx_ids": [
      0
    ]
  }
]

Code samples

Set KEY to your own token first.

curl

curl \
  -H X-Ledger-Token:$KEY \
  "https://api.sasek.org/ledger/v1/transfers/review"

JavaScript

const res = await fetch("https://api.sasek.org/ledger/v1/transfers/review", {
  headers: { "X-Ledger-Token": KEY },
});
const data = await res.json();

Python

import json
import os
import urllib.request

request = urllib.request.Request(
    "https://api.sasek.org/ledger/v1/transfers/review",
    method="GET",
    headers={
        "X-Ledger-Token": os.environ["KEY"],
    },
)
with urllib.request.urlopen(request) as response:
    print(json.load(response))