Skip to main content
POST
/
v1
/
evidence
/
onchain
Submit on-chain evidence
curl --request POST \
  --url http://localhost:3001/v1/evidence/onchain \
  --header 'Content-Type: application/json' \
  --header 'idempotency-key: <idempotency-key>' \
  --data '
{
  "chainFamily": "evm",
  "txHash": "<string>",
  "chainId": 123,
  "status": "confirmed",
  "amount": {
    "amount": "<string>",
    "currency": "<string>"
  },
  "payload": {},
  "paymentIntentId": "<string>",
  "provider": "<string>",
  "integrationKey": "<string>",
  "sourceRef": "<string>",
  "fromAddress": "<string>",
  "toAddress": "<string>",
  "tokenAddress": "<string>",
  "externalReference": "<string>",
  "routeGroupId": "<string>",
  "sequence": 123,
  "occurredAt": "2023-11-07T05:31:56Z",
  "references": [
    {
      "type": "<string>",
      "value": "<string>"
    }
  ],
  "metadata": {}
}
'
{
  "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
idempotency-key
string
required
Minimum string length: 1

Body

application/json
chainFamily
enum<string>
default:evm
required
Available options:
evm
txHash
string
required
Minimum string length: 1
chainId
integer
required
Required range: x <= 9007199254740991
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
provider
string
Minimum string length: 1
integrationKey
string
Minimum string length: 1
sourceRef
string
Minimum string length: 1
fromAddress
string
Minimum string length: 1
toAddress
string
Minimum string length: 1
tokenAddress
string
Minimum string length: 1
externalReference
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

accepted
enum<boolean>
required
Available options:
true
duplicate
boolean
required
flowLegIds
string[]
required
matchedCaseIds
string[]
required
rawRecordId
string
required
signatureValid
null | boolean
required
source
string
required
sourceRef
string
required