# Carded Rate API: Sandbox Testing source: https://developer.mastercard.com/cross-border-services/documentation/testing/carded-rate-api/index.md ## Sandbox Testing {#sandbox-testing} Sandbox Testing is unavailable for Carded Rate APIs. ## Sample Requests {#sample-requests} ### FX Rate Pull {#fx-rate-pull} No Request body ### FX Rate Push {#fx-rate-push} * XML * JSON ```XML BANK BEL_MCSXB1HS5fd single CMSP MXN INR 2020-04-02T15:07:00Z 2020-04-02T16:07:00Z 3ciq8g5gkkike1a5hkhi3hgvkd 3.239881 EMEA BANK BEL_MCSXB1HS5fd single CMSP MXN THB 2020-04-02T15:07:00Z 2020-04-02T16:07:00Z 3t1ia5kupk0ud1sl0yow12x9pq 1.395389 EMEA ``` ```JSON { "rates": [ { "type": "single", "use": "CMSP", "from_currency_code": "MXN", "to_currency_code": "INR", "valid_from": "2020-04-02T15:07:00Z", "valid_to": "2020-04-02T16:07:00Z", "tier_identifier_rate": "", "account_type": "BANK", "partner_id": "BEL_MCSXB1HS5fd", "tiers": [ { "from_amount": "", "rate_id": "3ciq8g5gkkike1a5hkhi3hgvkd", "ask_rate": "", "mid_rate": "", "bid_rate": "3.239881" } ], "card_segment_name": "EMEA" }, { "type": "single", "use": "CMSP", "from_currency_code": "MXN", "to_currency_code": "THB", "valid_from": "2020-04-02T15:07:00Z", "valid_to": "2020-04-02T16:07:00Z", "tier_identifier_rate": "", "account_type": "BANK", "partner_id": "BEL_MCSXB1HS5fd", "tiers": [ { "from_amount": "", "rate_id": "3t1ia5kupk0ud1sl0yow12x9pq", "ask_rate": "", "mid_rate": "", "bid_rate": "1.395389" } ], "card_segment_name": "EMEA" } ], "event_ref": "ref_u0lVpKKZ0Evx0UExr05VuD8frOFw", "event_type": "CARDFX_PUB" } ``` ## Sample Responses {#sample-responses} ### FX Rate Pull {#fx-rate-pull-1} * XML * JSON ```XML BANK BEL_MCSXB1HS5fd single CMSP MXN INR 2020-04-02T15:07:00Z 2020-04-02T16:07:00Z 3ciq8g5gkkike1a5hkhi3hgvkd 3.239881 EMEA ``` ```JSON { "rates": { "rate": [ { "type": "single", "use": "CMSP", "from_currency_code": "MXN", "to_currency_code": "INR", "valid_from": "2020-04-02T15:07:00Z", "valid_to": "2020-04-02T16:07:00Z", "tier_identifier_rate": "", "account_type": "BANK", "partner_id": "BEL_MCSXB1HS5fd", "tiers": { "tier": [ { "from_amount": "", "rate_id": "3ciq8g5gkkike1a5hkhi3hgvkd", "ask_rate": "", "mid_rate": "", "bid_rate": "3.239881" } ] }, "card_segment_name": "EMEA" }, { "type": "single", "use": "CMSP", "from_currency_code": "MXN", "to_currency_code": "THB", "valid_from": "2020-04-02T15:07:00Z", "valid_to": "2020-04-02T16:07:00Z", "tier_identifier_rate": "", "account_type": "BANK", "partner_id": "BEL_MCSXB1HS5fd", "tiers": { "tier": [ { "from_amount": "", "rate_id": "3t1ia5kupk0ud1sl0yow12x9pq", "ask_rate": "", "mid_rate": "", "bid_rate": "1.395389" } ], "card_segment_name": "EMEA" } } ], "event_ref": "ref_u0lVpKKZ0Evx0UExr05VuD8frOFw", "event_type": "CARDFX_PUB" } } ``` ### FX Rate Push {#fx-rate-push-1} No Response body ## Error Codes {#error-codes} Please refer to complete list of error codes [here](https://developer.mastercard.com/cross-border-services/documentation/code-and-formats/index.md). For information about the HTTP response codes that may be returned for your API requests, see [HTTP Response Codes](https://developer.mastercard.com/cross-border-services/documentation/code-and-formats/index.md). ## Push Notification Configuration Details {#push-notification-configuration-details} For more information on configuring a push notification, please see [here](https://developer.mastercard.com/cross-border-services/documentation/api-basics/index.md#push-notification-setup).