Skip to main content
POST
/
v1
/
onchain-integrations
/
{onchainIntegrationId}
/
ingest
Ingest on-chain transfer evidence
curl --request POST \
  --url http://localhost:3001/v1/onchain-integrations/{onchainIntegrationId}/ingest \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "poll",
  "status": "confirmed",
  "amount": {
    "amount": "<string>",
    "currency": "<string>"
  },
  "payload": {},
  "paymentIntentId": "<string>",
  "sourceRef": "<string>",
  "externalReference": "<string>",
  "txHash": "<string>",
  "chainId": 123,
  "fromAddress": "<string>",
  "toAddress": "<string>",
  "tokenAddress": "<string>",
  "routeGroupId": "<string>",
  "sequence": 123,
  "occurredAt": "2023-11-07T05:31:56Z",
  "references": [
    {
      "type": "<string>",
      "value": "<string>"
    }
  ],
  "metadata": {}
}
'
{
  "networkFamily": "<string>",
  "networkId": "<string>",
  "evidence": {
    "accepted": true,
    "duplicate": true,
    "flowLegIds": [
      "<string>"
    ],
    "matchedCaseIds": [
      "<string>"
    ],
    "rawRecordId": "<string>",
    "signatureValid": true,
    "source": "<string>",
    "sourceRef": "<string>"
  }
}

Headers

authorization
string
Minimum string length: 1
x-organization-id
string
Minimum string length: 1

Path Parameters

onchainIntegrationId
string
required
Minimum string length: 1

Body

application/json
source
enum<string>
default:poll
required
Available options:
poll,
push
status
enum<string>
default:confirmed
required
Available options:
pending,
confirmed,
failed,
reversed,
missing
amount
object
required
payload
object
required
paymentIntentId
string
Minimum string length: 1
sourceRef
string
Minimum string length: 1
externalReference
string
Minimum string length: 1
txHash
string
Minimum string length: 1
chainId
integer
Required range: x <= 9007199254740991
fromAddress
string
Minimum string length: 1
toAddress
string
Minimum string length: 1
tokenAddress
string
Minimum string length: 1
routeGroupId
string
Minimum string length: 1
reconciliationScope
enum<string>
Available options:
required,
optional,
ignored
sequence
integer
Required range: x <= 9007199254740991
occurredAt
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
references
object[]
metadata
object

Response

Default Response

networkFamily
string
required
networkId
string
required
source
enum<string>
required
Available options:
poll,
push
evidence
EvidenceAcceptanceResponse ยท object
required