{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/mastercard/main/json-schema/mastercard-conversion-rate-wrapper-schema.json", "title": "ConversionRateWrapper", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/mastercard-conversions-api-openapi.yml#/components/schemas/ConversionRateWrapper", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the service being requested." }, "description": { "type": "string", "description": "The description of the API being called." }, "date": { "type": "string", "description": "The date and time the API is being called in GMT." }, "type": { "type": "string", "description": "The type of response being returned by the API." }, "data": { "$ref": "#/$defs/Conversion" } }, "$defs": { "Conversion": { "type": "object", "properties": { "conversionRate": { "type": "number", "format": "number", "description": "Rate applied to the transaction to convert from Transaction Currency to Cardholder Billing Currency." }, "crdhldBillAmt": { "type": "number", "format": "number", "description": "Amount in the cardholder billing currency." }, "fxDate": { "type": "string", "description": "Date of the requested FX rates." }, "transCurr": { "type": "string", "description": "Currency of the transaction." }, "crdhldBillCurr": { "type": "string", "description": "Cardholder billing currency." }, "transAmt": { "type": "number", "format": "number", "description": "Amount in the transaction currency." }, "bankFee": { "type": "number", "format": "number", "description": "Additional fees imposed by the bank." }, "errorCode": { "type": "string", "description": "The error code associated with the error being returned." }, "errorMessage": { "type": "string", "description": "The reason for the error." } } } } }