> ## Documentation Index
> Fetch the complete documentation index at: https://docs.compago.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prices in US dollars

> Price in USD and charge the card in MXN at the day's exchange rate

You can price a payment in US dollars. The card is always charged in Mexican pesos: Compago converts the dollar price at the exchange rate of the moment the customer pays, and the payment records the dollars, the rate and the pesos.

## How the rate is built

| Part | What it is |
| - | - |
| FIX | The official rate Banco de México publishes every business day around 12:00 (Mexico City). Weekends and holidays use the last one published |
| Markup | What your business adds to the FIX: pesos per dollar (for example `+$1.00`) or a percentage (for example `+3%`). Set it in the dashboard under **Configuraciones › Organización › General › Cobros en dólares** |
| Exchange rate | FIX + markup, rounded to four decimals. This is the only rate your customer sees |

The pesos are the dollar amount times the exchange rate, rounded half up to the centavo. A tip in dollars is converted with the sale: the total is converted once and the tip is what it adds over the sale, so sale and tip always add up to the centavo.

> [!NOTE]
>
> Your customer sees the price in dollars, the final exchange rate with its date and the total in pesos. They never see the FIX or your markup.

## Where you can price in dollars

| Where | How |
| - | - |
| Payment links | Fixed amount, open amount and subscription links take `USD` in the dashboard. A product link is in the currency of its products, which must all share one |
| One-time payments | `currency: "USD"` on [create](https://docs.compago.com/api-reference/one-time-payment/create.md) |
| Saved cards | `currency: "USD"` on [charge](https://docs.compago.com/api-reference/payment-method/charge.md) |
| Payment intents | `currency: "USD"` on [create](https://docs.compago.com/api-reference/payment-intent/create.md). The terminal shows the dollars and charges the pesos |
| Terminal | The cashier picks USD beside the amount, once **Aceptar dólares** is on in the terminal's settings |

A dollar price is paid by card only. SPEI is never offered on it: a one-time payment in USD must include `CARD` in `paymentMethods`, and `paymentMethodOptions.bankTransfer` is refused.

## When the rate is taken

* **Checkout** (payment links and one-time payments): the page quotes the rate when it opens, and the customer is charged exactly the pesos it showed, even if Banxico publishes a newer FIX while they pay. Only a page left open more than 30 minutes after a newer FIX shows the new total and asks the customer to confirm it. Nothing is charged in between.
* **Saved cards**: the current rate when you call charge.
* **Subscriptions**: each charge converts at that day's rate, so the pesos can change from one month to the next.
* **Terminal and payment intents**: the rate on screen when the cashier taps **Cobrar**, or when the intent reaches the terminal. That rate is charged even if a newer FIX is published while the card is read.

If Compago has had no rate for 72 hours, dollar prices cannot be charged and answer `409` with `EXCHANGE_RATE_UNAVAILABLE`. Peso prices are never affected.

## Charge a saved card in dollars

> [!NOTE]
>
> These examples call the production host. While you build, replace `https://api-harmony.compago.com` with `https://demo-api-harmony.compago.com` and use a key from the Demo dashboard. See [Environments](https://docs.compago.com/get-started/environments.md).

```bash theme={null}
curl -X POST https://api-harmony.compago.com/api/developer/v1/payment-method/{id}/payment \
  -H "x-api-key: $COMPAGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 100, "currency": "USD" }'
```

The response is in pesos, with the conversion beside it:

```json theme={null}
{
  "id": "11111111-2222-3333-4444-555555555555",
  "status": "CONFIRMED",
  "amount": 1961.92,
  "currency": "MXN",
  "conversion": {
    "originalAmount": 100,
    "originalCurrency": "USD",
    "exchangeRate": 19.6192,
    "exchangeRateDate": "2026-11-12"
  }
}
```

A hold (`holdFunds: true`) must be in MXN: a USD hold answers `400` with `HOLD_CURRENCY_NOT_SUPPORTED`.

## Reading a dollar payment

Every payment keeps `amount`, `tipAmount` and `currency` in the pesos the card was charged, so totals, payouts, refunds and reports add up as before. A payment priced in dollars also carries `conversion`:

```json theme={null}
"conversion": {
  "originalCurrency": "USD",
  "originalAmount": 100,
  "originalTipAmount": 15,
  "exchangeRate": 19.6192,
  "exchangeRateDate": "2026-11-12"
}
```

`conversion` is `null` on a peso payment. A refund returns pesos: the amount charged to the card, never a reconversion at a later rate.

## Errors

| Status | Code | Meaning |
| - | - | - |
| `409` | `EXCHANGE_RATE_UNAVAILABLE` | There is no current exchange rate to charge a dollar price at. Retry later or charge in MXN |
| `409` | `EXCHANGE_RATE_EXPIRED` | The rate the customer or the terminal saw is no longer valid. Quote again and confirm the new total |
| `400` | `HOLD_CURRENCY_NOT_SUPPORTED` | A hold was requested in USD. Holds are MXN only |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.