---
updatedAt: 2026-06-20T07:34:07.000Z
agentTools:
  projectIndex: https://docs.wirexapp.com/llms.txt
---

# Get order fees

Retrieves estimation of fees that should be paid for the card order</br> > **Note:** This method is applicable only if your account manager has advised you to incorporate card fee handling as part of your integration process.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "response.CardFeesOrderResponse": {
        "properties": {
          "currency": {
            "description": "Fiat currency in which the fees are processed",
            "example": "USD",
            "type": "string"
          },
          "decimals": {
            "description": "Number of fractional digits order_fee_precise is scaled by",
            "example": 18,
            "type": "integer"
          },
          "estimated_payment_amounts": {
            "description": "Estimations for payment amounts in all tokens supported by the platform",
            "items": {
              "$ref": "#/components/schemas/response.EstimatedAmountResponse"
            },
            "type": "array"
          },
          "order_fee": {
            "description": "Total amount of fees that should be paid for the card order",
            "example": 100.06,
            "type": "number"
          },
          "order_fee_precise": {
            "description": "The same fee in base units of the fee currency, as a decimal string scaled by decimals",
            "example": "100060000000000000000",
            "type": "string"
          }
        },
        "required": [
          "currency",
          "decimals",
          "order_fee",
          "order_fee_precise"
        ],
        "type": "object"
      },
      "response.ErrorCategory": {
        "properties": {
          "category": {
            "type": "string"
          },
          "grpc_status_code": {
            "type": "integer"
          },
          "http_status_code": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "response.ErrorDetails": {
        "properties": {
          "details": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "response.ErrorResponse": {
        "properties": {
          "error_category": {
            "$ref": "#/components/schemas/response.ErrorCategory"
          },
          "error_description": {
            "type": "string"
          },
          "error_details": {
            "items": {
              "$ref": "#/components/schemas/response.ErrorDetails"
            },
            "type": "array"
          },
          "error_reason": {
            "example": "ErrorInvalidField",
            "type": "string"
          }
        },
        "type": "object"
      },
      "response.EstimatedAmountResponse": {
        "properties": {
          "amount": {
            "description": "Amount that would be transferred in token currency scaled to the precision of the token",
            "example": 109.41123037,
            "type": "number"
          },
          "fee_amount": {
            "description": "Fee amount charged for this estimate, scaled to the precision of the token. Empty when the upstream estimator does not report a per-token fee.",
            "example": 0.5,
            "type": "number"
          },
          "fee_precise_amount": {
            "description": "Fee amount charged for this estimate, in the smallest unit of the token. Empty when the upstream estimator does not report a per-token fee.",
            "example": "500000000000000000",
            "type": "string"
          },
          "precise_amount": {
            "description": "Amount that would be transferred in token currency in the smallest unit of the token",
            "example": "109411230370000000000",
            "type": "string"
          },
          "rate": {
            "description": "Rate of the token to the account currency",
            "example": 1.09345623,
            "type": "number"
          },
          "rate_decimals": {
            "description": "Number of fractional digits rate_precise is scaled by. Absent whenever rate_precise is absent",
            "example": 18,
            "type": "integer"
          },
          "rate_precise": {
            "description": "Rate in base units, as a decimal string scaled by rate_decimals. Empty when the upstream estimator reports the rate as a float only",
            "example": "1093456230000000000",
            "type": "string"
          },
          "token_address": {
            "description": "Address of the token that the amount is in",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "type": "string"
          },
          "token_symbol": {
            "description": "Symbol of the token that the amount is in",
            "example": "USDC",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "precise_amount",
          "rate",
          "token_address",
          "token_symbol"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "ChainId": {
        "description": "EIP-155 id of the chain that the request should be executed for (e.g. 1001996)",
        "in": "header",
        "name": "X-Chain-Id",
        "type": "apiKey"
      },
      "UserAddress": {
        "description": "Address of the crypto wallet associated with the user for whom the request should be executed.",
        "in": "header",
        "name": "X-User-Wallet",
        "type": "apiKey"
      },
      "WirexPartnerToken": {
        "description": "Token obtained using Wirex Partner Credentials grant flow. Please see [Authentication](doc:authentication) Server-to-Server Authentication section",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      },
      "WirexUserToken": {
        "description": "Wirex issued JWT token that can be obtained by following [Authentication](doc:authentication) User Token Issuance section",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "contact": {
      "email": "company@wirexpaychain.com",
      "name": "API Support Team"
    },
    "description": "The **Wirex BaaS API** enables partners to deliver non-custodial financial services directly to their retail users. Through a single integration, partners can onboard users, verify identities, issue smart wallet–linked cards, and enable crypto-backed bank transfers—without ever handling fiat or taking custody of user funds.</br>All transactions are powered by **user-owned smart wallets**, ensuring security, transparency, and full user control. Wirex acts as the infrastructure provider, so you can focus on building exceptional user experiences while we handle the heavy lifting.",
    "title": "Wirex Retail BaaS API",
    "version": "1.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/cards/{type}/fees/{country}": {
      "get": {
        "description": "Retrieves estimation of fees that should be paid for the card order</br> > **Note:** This method is applicable only if your account manager has advised you to incorporate card fee handling as part of your integration process.",
        "parameters": [
          {
            "description": "Country in which the card will be issued (ISO 3166-1 alpha-2)",
            "in": "path",
            "name": "country",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Format of the card the fees should be calculated for",
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "Plastic",
                "Virtual",
                "Metal"
              ],
              "type": "string"
            },
            "x-enum-varnames": [
              "CardFormatPlastic",
              "CardFormatVirtual",
              "CardFormatMetal"
            ]
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.CardFeesOrderResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "WirexUserToken": []
          },
          {
            "ChainId": [],
            "UserAddress": [],
            "WirexPartnerToken": []
          }
        ],
        "summary": "Get order fees",
        "tags": [
          "Cards/Fees"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-baas.wirexapp.com"
    },
    {
      "url": "https://api-baas.wirexapp.tech"
    }
  ],
  "tags": [
    {
      "description": "The **Card Fees APIs** provide comprehensive details about card issuance fees incurred by the company to process a card order.  \nThis includes a breakdown of costs, applicable currencies, and any dynamic pricing rules configured for the account. The APIs also support creating a payment invoice to settle the calculated order fees.\n\n> **Note:** This section is applicable only if your account manager has advised you to incorporate card fee handling as part of your integration process.",
      "name": "Cards/Fees"
    }
  ],
  "x-readme": {}
}
```