v1

latestOpenAPI 3.1.02026-07-26165182724.7 KB

Confirm transaction with OTP

post/wallets/transaction/confirm

Headers

api-keystring required

api-key is available on the dashboard

Authorizationstring required

Request body

userIdstring required

The Id of the user who is sending this transaction

challengeIdstring required

The challengeId that you received when initiating the transaction

verificationCodestring required

6 characters code. Default code for sandbox "123456".

ipstring required

IP address collected as the IP address from which the End User is making the withdrawal request. IMPORTANT - This will be a required parameter from the 15th of June 2023 and is optional until then.

verificationMethod'sms' | 'totp' | 'passkey'

SCA factor used at initiate time. Defaults to sms when omitted. verificationCode is required for sms and totp; origin + passkeyAssertion are required for passkey.

originstring

Browser-supplied origin from the WebAuthn ceremony (e.g. https://app.example.com). Required when verificationMethod is passkey. Must match an entry in the application's webAuthn.allowedOrigins.

Response

200

OR
OR
OR

Example response

{
  "id": "358f5e37-4e15-424e-9479-3037cf68989a",
  "accountId": "b1b6055babf12d7b18cbbe458248dfcb",
  "syncedOwnerId": "25fb7453-67e8-4f4a-b741-f7cab0eac57d",
  "sourceSyncedOwnerId": "25fb7453-67e8-4f4a-b741-f7cab0eac57d",
  "debit": "99957978999580000",
  "timestamp": "2024-07-02T13:14:06.715Z",
  "txType": "ON_CHAIN_WITHDRAWAL_INITIATED",
  "memo": "ON_CHAIN_WITHDRAWAL_INITIATED 0.09995797899958 MATIC_POLYGON 358f5e37-4e15-424e-9479-3037cf68989a",
  "currency": "MATIC_POLYGON",
  "exchangeRate": "1",
  "balanceBefore": {
    "amount": "6803773584905660377",
    "balance": "6803773584905660377"
  },
  "balanceAfter": {
    "amount": "6703815605906080377",
    "balance": "6703815605906080377"
  },
  "feeEstimate": {
    "totalFee": "42021000420000",
    "networkFee": "42021000420000",
    "ourFee": "42021000420000",
    "theirFee": "0",
    "feeCurrency": "MATIC_POLYGON",
    "gasLimit": "21000",
    "gasPrice": "2.002",
    "fixedFeeDetails": {
      "amount": "0",
      "exchangeRate": "0"
    },
    "percentageFeeDetails": {
      "amount": "0"
    }
  },
  "blockchainNetwork": "Polygon Testnet Amoy"
}