/b2b/oor/sell/card

Off-ramp transaction with card attributes

Body
required
application/json

Request body

  • trx_token
    Type: string
    required

    Sell token returned by /b2b/oor/sell-rates endpoint.

  • address
    Type: string

    Address for returning cryptocurrency in case of an error in the transaction.

  • card_expiration_month
    Type: string

    Card expiration month

    Example: 11

    Required if card_id not filled

  • card_expiration_year
    Type: string

    Card expiration year

    Example: 2026

    Required if card_id not filled

  • card_holder_name
    Type: string

    Cardholder name

    Example: John Doe

    Required if card_id not filled

  • card_id
    Type: string

    Card ID

    Example: 018ab9cc29a8a2543

    Required if card data not filled

  • card_number
    Type: string

    Card number

    Example: 4111111111111111

    Required if card_id not filled

  • merchant_transaction_id
    Type: string

    Unique custom ID to check transaction status. If empty, it will be generated

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/b2b/oor/sell/card
curl https://sandbox-api.mrcr.io/v1.6/b2b/oor/sell/card \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'B2B-Bearer-Token: YOUR_SECRET_TOKEN' \
  --data '{
  "card_id": "018ab9cc29a8a2543",
  "card_number": "4111111111111111",
  "card_holder_name": "John Doe",
  "card_expiration_month": "11",
  "card_expiration_year": "2026",
  "trx_token": "<from sell-rates request>",
  "address": "0x8521F79D47fe9A7D7Ec794577336F3dc1eecF782",
  "merchant_transaction_id": "87654321"
}'
{
  "status": 200,
  "data": {
    "status": "pending",
    "address": "0x8521F79D47fe9A7D7Ec794577336F3dc1eecF782",
    "merchant_transaction_id": "08e578d2674026086"
  }
}