Skip to main content

Redeem vouchers

POST 

/voucher/redeem/

Spend one or multiple vouchers for the selected amount and asset. If some change is produced, a new voucher worth that amount is created.

Request

Body

required
    vouchers string[]required
    to_asset int32required
    voucher_amount float
    destination_type stringrequired

    Possible values: [crypto, sepa, swift, us]

    destination_crypto_address string

    required if destination_type is 'crypto'

    destination_bank_address string

    required if destination_type is 'sepa' or 'swift'

    destination_bank_name string

    required if destination_type is 'sepa' or 'swift'

    destination_bank_account_number string

    required if destination_type is 'swift' or 'us'

    destination_bank_routing_number string

    required if destination_type is 'us'

Responses

The order representing the redeemed vouchers and the eventual voucher created for the change.

Schema
    order object
    id string
    status string

    Possible values: [WAITING_FOR_DEPOSIT, DEPOSIT_RECEIVED, DEPOSIT_CONFIRMED, APPROVED, COMPLETED, CANCELED, EXPIRED, REJECTED, REFUNDED]

    email email
    created_at string
    expires_at string
    confirmed_at string
    approved_at string
    completed_at string
    from_amount float
    from_asset string
    to_asset string
    destination_type string

    Possible values: [crypto, sepa, swift, us]

    destination_crypto_address string
    destination_bank_address string
    destination_bank_name string
    destination_bank_account_number string
    trade object
    from_amount float
    from_asset string
    to_amount float
    to_asset string
    fee_amount float
    price float
    timestamp string
    voucher object
    id string
    code string
    value float
    currency string
    created_at string
    expires_at string
    redeemed boolean
Loading...