Quotes#Execute

Submits the Quote to begin processing to fiat

Example request

curl https://{{base_url}}/users/USER_ID/quotes/QUOTE_ID/execute
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-type: application/json" \
-d '{
      "quote": {
         "crypto_transfer": {
            "tx_id": "0x65be7196da49cd3f5c3f6a0ff0f1583910a6b6c9a8a28946adfa1084dd76d657",
            "blockchain": "polygon",
            "network": "mainnet"
          }
      }
    }
}'

Endpoint Information

Execute a quote

POST https://{{base_url}}/users/:user_id/quotes/:quote_id/execute

Send a Quote for processing

Path Parameters

Request Body

{ 
  "quote":
    {
      "id": "1e99d470-dcc2-46f4-970c-bc35a9e13b84",
      "user_id": "a25a4274-8f50-4579-b476-8f35b297d4ad"
      "deposit_token": "usdc",
      "deposit_token_chain": "ethereum",
      "deposit_token_amount": 1047,
      "fiat_amount": 1000,
      "fiat_currency": "eur",
      "expiry": 1_366_762_500,
      "fees": 10.0,
      "rate": 0.92820,
      "executed": true
    },
    "deposit_address": {
      "adddress": "0x709c56AfDAdBDCAB4f7a6aAe99644C91C3eF67eF",
      "blockchain": "ethereum"
    },
    "crypto_transfer": {
      "tx_id": "0x65be7196da49cd3f5c3f6a0ff0f1583910a6b6c9a8a28946adfa1084dd76d657",
      "blockchain": "polygon",
      "network": "mainnet"
    },
    "offramps": [
      {
         "id": "074cb3e4-1f56-4916-8024-ecbf6f805b90",
         "user_id": "a25a4274-8f50-4579-b476-8f35b297d4ad",
         "payment_detail_id": "fa898aec-519c-46be-9b4c-e76ef4ff99d9",
         "quote_id": "1e99d470-dcc2-46f4-970c-bc35a9e13b84",
         "status": "initiated",
         "status_message": null,
         "destination_amount": 19000,
         "destination_currency": "eur",
         "reference": "Payment for Services #1010",
         "supporting_document": {
            "submitted_url": "https://web3accounting.com/invoices/in_378949x.pdf",
            "status": "not_checked"
         }
      },
      {
         "id": "074cb3e4-1f56-4916-8024-ecbf6f805b90",
         "user_id": "a25a4274-8f50-4579-b476-8f35b297d4ad",
         "payment_detail_id": "576b17c9-db11-4593-a362-52605408a1b5",
         "quote_id": "1e99d470-dcc2-46f4-970c-bc35a9e13b84",
         "status": "initiated",
         "status_message": null,
         "destination_amount": 1000,
         "destination_currency": "eur",
         "reference": "Payment for Services #1011",
         "supporting_document": null
      }
   ]
}

Last updated