---
agentTools:
  projectIndex: https://csipay-pyxis.readme.io/llms.txt
---

# Charge One Time Fee

There are times when a partner needs to charge a fee to its merchants. The create one-time fee is used for this purpose. This API is not meant to be used for normally scheduled fees that are part of the partner and/or merchant definition but fees that pop up from time to time for various reasons and need to be charged once. 

__*NOTE:*__ This fee charge could possibly be delayed to statement time depending on how account is set up (tracked as fee)

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Pyxis Payment API",
    "description": "**Overview**\n\nThe Pyxis System is a payment API. It attempts to provide an easy, consistent interface to allow Jonas Software Partners the functionality they need for their payment processing needs. The system’s purpose is abstract partner companies from the complexities of interaction with disparate and changing payment gateways and payment processors. This document describes the real-time transaction API for POS and recurring payment processing. Other systems for batch processing and other functionality will be presented in other documents.\n\n**How to call the API**\n\nThe API is a standard “rest-like” interface available over the internet. Most of the transactions are an HTTP POST with the body of the request containing JSON as described below.  A few calls are for query purposes only and the interaction takes the form of an HTTP GET. The body of the response is also JSON as described below.\n\nIn most the request/response pairs there are timing elements. Both are UTC timestamps (based in GMT).  The request date/time records the time just as the request is formed to be sent and the response date/time records when the response was formed to be returned after the request has been processed.  If the request time is not specified, the system will record the time the request was received. These time stamps have a granularity in seconds. The format of these elements is `YYYY-MM-DD HH:MM:SS`, using Y for year, M for month, D for day, h for hour, m for minute, s for second example `2012 09 20 14:32:46`.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://staging-pyxisapi.csipay.com/PyxisMasterApi/api",
      "description": "Staging"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "paths": {
    "/oneTimeFee": {
      "post": {
        "summary": "Charge One Time Fee",
        "servers": [
          {
            "url": "https://staging-pyxisapi.csipay.com/PyxisMasterApi/api"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "operationId": "oneTimeFee",
        "description": "There are times when a partner needs to charge a fee to its merchants. The create one-time fee is used for this purpose. This API is not meant to be used for normally scheduled fees that are part of the partner and/or merchant definition but fees that pop up from time to time for various reasons and need to be charged once. \n\n__*NOTE:*__ This fee charge could possibly be delayed to statement time depending on how account is set up (tracked as fee)\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accountInfo": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "string",
                        "example": [
                          "500"
                        ]
                      },
                      "type": {
                        "type": "string",
                        "example": [
                          "Credit"
                        ]
                      },
                      "partnerId": {
                        "type": "string",
                        "example": [
                          "e329026d64704ebf8ffb3d7550daac3d"
                        ]
                      },
                      "merchantIdToCharge": {
                        "type": "string",
                        "example": [
                          "3086de9e0197454c9cd2c3f55d502d8a"
                        ]
                      },
                      "description": {
                        "type": "string",
                        "example": [
                          "Test User"
                        ]
                      },
                      "chargeDate": {
                        "type": "string",
                        "example": [
                          "2024-09-01"
                        ],
                        "format": "date"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "example": [
                        "OneTimeFee"
                      ]
                    },
                    "responseTimestamp": {
                      "type": "string",
                      "example": [
                        "2024-05-29 23:30:03"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "example": [
                        "Success"
                      ]
                    },
                    "transactionId": {
                      "type": "string",
                      "example": [
                        "e6e950c5-db96-4b70-a359-4633d3adc8e4"
                      ],
                      "format": "uuid"
                    },
                    "feeId": {
                      "type": "string",
                      "example": [
                        "t1_fee_6657f2bb485a91519fe486d"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 88,
      "2": 165,
      "3": 165,
      "4": 53,
      "5": 4,
      "6": 189,
      "7": 0,
      "8": 85,
      "9": 68,
      "10": 8,
      "11": 23
    }
  }
}
```