Skip to main content

Documentación

Retrieve Card Eligibility Details

Retrieve information about a beneficiary’s card to determine whether it is eligible for card payouts (Original Credit Transactions (OCT)), and card payments (Account Funding Transactions (AFT)). Available for Visa and Mastercard cards.

See also Elegibilidad de la tarjeta para los pagos con tarjeta.

    • card_number

    • The number of the card. In the sandbox, use the number 4895034400003371 to simulate this method with a Visa card. Required when card_id is not used.

    • card_id

    • ID of the card, a string starting with card_. Required when card_number is not used.

    • transaction_type

    • The type of transaction. One of the following:

      • all - OCT and AFT transactions.

      • oct - Original Credit Transactions (OCT).

      • aft - Account Funding Transaction (AFT).

  • /v1/cards/eligibility

  • Retrieve Card Eligibility - Visa

  • curl -X post 'https://sandboxapi.rapyd.net/v1/cards/eligibility' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
       "card_number": "4895034400003371",
       "transaction_type": "all"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "191c6f89-b2b0-4ce3-90ec-984f329ffabf"
        },
        "data": {
            "scheme": "VISA",
            "card_type": "Consumer",
            "billing_currency": "USD",
            "issuer": "Visa Test Bank",
            "issuer_country": "US",
            "product_type": "Credit",
            "oct": {
                "money_transfer_domestic": "standard",
                "money_transfer_international": "standard",
                "non_money_transfer_domestic": "standard",
                "non_money_transfer_international": "standard",
                "online_gambling_domestic": "not_supported",
                "online_gambling_international": "not_supported"
            },
            "aft": {
                "domestic": true,
                "international": false
            }
        }
    }
  • Retrieve Card Eligibility - Mastercard

  • curl -X post 'https://sandboxapi.rapyd.net/v1/cards/eligibility' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
       "card_number": "5452293894730822",
       "transaction_type": "all"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "3264890d-7588-4593-8bdb-2240d85e0d3f"
        },
        "data": {
            "scheme": "MASTERCARD",
            "card_type": "Consumer",
            "product_type": "Credit",
            "billing_currency": "HKD",
            "issuer": "BANK OF EAST ASIA, LIMITED, THE",
            "issuer_country": "HK",
            "oct": {
                "money_transfer_domestic": "fast_funds",
                "money_transfer_international": "fast_funds",
                "non_money_transfer_domestic": "fast_funds",
                "non_money_transfer_international": "fast_funds",
                "online_gambling_domestic": "fast_funds",
                "online_gambling_international": "fast_funds"
            },
            "aft": {
                "domestic": true,
                "international": true
            }
        }
    }
  • Retrieve Card Eligibility - Card ID

  • curl -X post 'https://sandboxapi.rapyd.net/v1/cards/eligibility' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
       "card_id": "card_a5429bdb6c529008ed5b409e5929b606",
       "transaction_type": "all"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "f9c23239-2b9c-4d91-85f7-18ba896f413a"
        },
        "data": {
            "scheme": "MASTERCARD",
            "card_type": "Business",
            "product_type": "Credit",
            "billing_currency": "USD",
            "issuer": "FISERV SOLUTIONS, LLC",
            "issuer_country": "US",
            "oct": {
                "money_transfer_domestic": "fast_funds",
                "money_transfer_international": "not_supported",
                "non_money_transfer_domestic": "fast_funds",
                "non_money_transfer_international": "not_supported",
                "online_gambling_domestic": "fast_funds",
                "online_gambling_international": "not_supported"
            },
            "aft": {
                "domestic": true,
                "international": false
            }
        }
    }