---
updatedAt: 2026-06-03T12:53:51.000Z
agentTools:
  projectIndex: https://docs.fincra.com/llms.txt
---

# Calculate Fee on Checkout

This endpoint can be used to calculate fees on checkout

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "awesome-new-api",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://sandboxapi.fincra.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/checkout/data/fees": {
      "post": {
        "summary": "Calculate Fee on Checkout",
        "description": "This endpoint can be used to calculate fees on checkout",
        "operationId": "calculate-checkout-fee",
        "parameters": [
          {
            "name": "x-business-id",
            "in": "header",
            "description": "Your business ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-key",
            "in": "header",
            "description": "The api key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "currency",
                  "type",
                  "amount"
                ],
                "properties": {
                  "currency": {
                    "type": "string",
                    "description": "The currency type required for the transaction on checkout",
                    "enum": [
                      "NGN",
                      "KES",
                      "GHS",
                      "UGX",
                      "XOF",
                      "XAF"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "description": "payment type e.g mobile_money, card, bank_transfer, payattitude. NOTE: (i) NGN does not work with mobile_money payment type. (ii) payattitude payment type only applies to NGN",
                    "enum": [
                      "mobile_money",
                      "card",
                      "bank_transfer",
                      "payattitude"
                    ]
                  },
                  "amount": {
                    "type": "integer",
                    "description": "The amount to be paid on checkout",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    “status”: true,\n    “message”: “Fees fetched successfully”,\n    “data”: {\n        “currency”: “KES”,\n        “amount”: 5000,\n        “fee”: 50,\n        “vat”: 0\n    }\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```