# Recommendation code testing Card schemes provide you with additional information on how and when you should retry a transaction through [recommendation codes](https://www.checkout.com/docs/developer-resources/testing/codes/recommendation-codes.md). You can simulate recommendation code responses to test your integration is working as expected. To test the various outcomes, set up a new payment request and: 1. Set the `source.number` field to any of the following numbers, depending on which card scheme you are testing: - Use `4659105569051157` for Visa - Use `5105105105105100` for Mastercard 2. Set the `source.cvv` field to `100`. 3. Set the `amount` field to one of the values from the following table, depending on the outcome you want to test for. | Recommendation code outcome | Recommendation reason | amount value | | --- | --- | --- | | `01` | - expired card
- updated information available
- authentication may improve likelihood of an approval | `8105` | | `02` | - over credit limit
- insufficient funds
- credit risk decline
- issuer velocity rule decline
- blocked card | `8205` | | `03` | - account closed
- suspected fraud
- recurring agreement canceled | `8305` | ### Request example ```json { "source": { "type": "card", "number": "4659105569051157", "cvv": "100", "expiry_month": 1, "expiry_year": 2025 }, "currency": "EUR", "amount": 8105, "processing_channel_id": "pc_dkgoofpvuwuerekvd4ssr6jwom" } ``` ### Response example Regardless of the `amount` value used, the response will contain a `response_code` indicating a soft decline (`20xxx`). See [soft decline codes](https://www.checkout.com/docs/developer-resources/codes/api-response-codes.md#20xxx_Soft_declines). ```json { "id": "pay_ifj764it4t3epgsnbgnmjqhkne", "action_id": "act_gy64ocao67ferkltfbrgq2qr24", "amount": 8105, "currency": "EUR", "approved": false, "status": "Declined", "auth_code": "961080", "response_code": "20020", "response_summary": "Invalid Response", "risk": { "flagged": false, "score": 0.0 }, "source": { "id": "src_qoqpjcdwmuqezpopxrhnoncgoa", "type": "card", "expiry_month": 1, "expiry_year": 2025, "scheme": "Visa", "last4": "1157", "fingerprint": "B0392514A7C52F5CEE996BEB05431245ADAF4B31917E5C7577E213E264EF60A9", "bin": "424242", "card_type": "CREDIT", "card_category": "CONSUMER", "issuer_country": "GB", "product_id": "F", "product_type": "Visa Classic", "avs_check": "G", "cvv_check": "Y", "payment_account_reference": "V001161191215476252" }, "processed_on": "2023-08-09T09:51:24.5437329Z", "scheme_id": "885866251672298", "processing": { "acquirer_transaction_id": "806400184135498107867", "retrieval_reference_number": "191666272529", "recommendation_code": "01", "merchant_category_code": "0742", "scheme_merchant_id": "50777", "aft": false }, "_links": { "self": { "href": "https://{prefix}.api.sandbox.checkout.com/payments/pay_ifj764it4t3epgsnbgnmjqhkne" }, "actions": { "href": "https://{prefix}.api.sandbox.checkout.com/payments/pay_ifj764it4t3epgsnbgnmjqhkne/actions" } } } ```