Confirm a quote

Quote confirmation and payment.

URL

POST https://exchange.savitar.io/api/v1/quote/payment

Confirm and pay a quote.

Request Body

qid
string
Quote unique identifier.
type
enum
Payment type.
Possible values: card, crypto, bank_account
card.number
string
Card number.
only when type=card
card.cvc
string
Card CVC.
only when type=card
card.holder
string
Name of card holder.
only when type=card
card.expiration_month
string
Month expiration of the card.
only when type=card. Format: MM
card.expiration_year
string
Year expiration of the card.
only when type=card. Format: YY
bank_account.transfer_reference (Optional)
string
Unique transfer reference the user will need to add to the sepa transfer. If omitted, a new one will be generated on our side.
only when type=bank_account
delivery.type
enum
Delivery type.
Possible values: crypto, account
delivery.crypto.address
string
Coins address of delivery
only when type=crypto
redirect_url
string
URL where the user must be redirected when payment is completed.

Response Data

qid
string
Quote unique identifier to pass to further steps.
3ds_redirect (Optional)
string
URL where to redirect the user to pass a 3DS challenge.

Examples

Pay a quote with card

Request:

{
  "qid": "f5679338-f9bc-4455-8f22-a16a89331915",
  "type": "card",
  "card": {
    "number": "4970100012345670",
    "holder": "Satoshi Nakamoto",
    "cvc": "123",
    "expiration_month": "11",
    "expiration_year": "22"
  },
  "delivery": {
    "type": "crypto",
    "crypto": {
      "address": "367pVvSShqKzBZBA4eqHLwHB41g9NAphTd"
    }
  },
  "redirect_url": "https://walletapp.com/transaction"
}

Response:

{
  "status": "ok",
  "response": {
    "3ds_redirect": "https://exchange.savitar.io/api/v1/3ds/acs/108ab22cd8f5b7c37d8a1b2c",
    "qid": "f5679338-f9bc-4455-8f22-a16a89331915",
  }
}