{
  "openapi": "3.0.0",
  "paths": {
    "/v1/balance": {
      "get": {
        "tags": [
          "balance"
        ],
        "operationId": "AccountController_retrieveBalance",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/webhooks": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "operationId": "WebhookController_create",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookParams"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "webhooks"
        ],
        "operationId": "WebhookController_list",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "example": 250,
            "description": "Specifies a limit of returned records",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "example": 1000,
            "description": "Page number",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookList"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/webhooks/{id}": {
      "get": {
        "tags": [
          "webhooks"
        ],
        "operationId": "WebhookController_retrieve",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "webhooks"
        ],
        "operationId": "WebhookController_destroy",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/transactions/batch": {
      "post": {
        "tags": [
          "transactions"
        ],
        "operationId": "TransactionController_createBatch",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionBatchParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionBatch"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/transactions": {
      "post": {
        "tags": [
          "transactions"
        ],
        "operationId": "TransactionController_createTransfer",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/transactions/{id}": {
      "get": {
        "tags": [
          "transactions"
        ],
        "operationId": "TransactionController_retrieve",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transaction"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/batches/{id}": {
      "get": {
        "tags": [
          "transactions"
        ],
        "operationId": "TransactionController_retrieveJob",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionBatch"
                }
              }
            }
          },
          "404": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/charges": {
      "get": {
        "tags": [
          "charges"
        ],
        "operationId": "ListCharges",
        "parameters": [
          {
            "name": "limit",
            "required": true,
            "in": "query",
            "description": "Number of charges to return per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "example": 15
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Pagination cursor, taken from `cursor.next` or `cursor.prev` of a previous response",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChargesList"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (TOO_MANY_ATTEMPTS)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "description": "Limited to 30 requests per minute per company."
      },
      "post": {
        "tags": [
          "charges"
        ],
        "operationId": "CreateCharges",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChargesBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charges"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "XCompanyId": []
          }
        ]
      }
    },
    "/v1/charges/{id}": {
      "get": {
        "tags": [
          "charges"
        ],
        "operationId": "ChargesDetails",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charges"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/charges/{id}/refund": {
      "post": {
        "tags": [
          "charges"
        ],
        "operationId": "ChargesRefund",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundChargesBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/charges/{id}/pay": {
      "post": {
        "tags": [
          "charges"
        ],
        "operationId": "ChargesPay",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayChargesBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charges"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "Djamo Business API Playground",
    "description": "Use this playground to try out the API.",
    "version": "1.0",
    "contact": {
      "email": "business-api-support@djamo.io"
    }
  },
  "servers": [
    {
      "url": "https://apibusiness-staging-civ.djamo.io",
      "description": "Staging API for Côte d'Ivoire"
    },
    {
      "url": "https://apibusiness-staging-sen.djamo.io",
      "description": "Staging API for Sénégal"
    },
    {
      "url": "https://api-civ.djamo.com",
      "description": "Production API for Côte d'Ivoire"
    },
    {
      "url": "https://api-sen.djamo.com",
      "description": "Production API for Sénégal"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      },
      "XCompanyId": {
        "type": "apiKey",
        "name": "X-Company-Id",
        "in": "header",
        "description": "The company ID to use for the request. This is required for all requests."
      }
    },
    "schemas": {
      "ApiErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "example": [
              "a error occured"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Bad Request"
          },
          "correlationId": {
            "type": "string",
            "example": "YevPQs"
          },
          "path": {
            "type": "string",
            "example": "/v1/xxx",
            "description": "Request path"
          },
          "timestamp": {
            "type": "string",
            "example": "2023-03-03T17:43:33.222Z",
            "description": "Timestamp"
          }
        },
        "required": [
          "statusCode",
          "message",
          "error",
          "correlationId",
          "path"
        ]
      },
      "Balance": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "integer",
            "example": 1000,
            "readOnly": true,
            "description": "The balance of your current account."
          },
          "currency": {
            "type": "string",
            "example": "XOF",
            "readOnly": true,
            "description": "The balance currency."
          }
        },
        "required": [
          "balance",
          "currency"
        ]
      },
      "WebhookParams": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "example": "transactions/started",
            "description": "Event that triggers the webhook. You can retrieve data in JSON.",
            "enum": [
              "batches/failed",
              "batches/started",
              "batches/updated",
              "batches/completed",
              "transactions/completed",
              "transactions/failed",
              "transactions/started"
            ]
          },
          "url": {
            "type": "string",
            "example": "https://apple.com/uninstall",
            "description": "Destination URI to which the webhook subscription should send the POST request when an event occurs."
          }
        },
        "required": [
          "topic",
          "url"
        ]
      },
      "Webhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231",
            "readOnly": true,
            "description": "Universal Unique Identifier for the object."
          },
          "createdAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was created. The API returns this value in ISO 8601 format."
          },
          "updatedAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was updated. The API returns this value in ISO 8601 format."
          },
          "topic": {
            "type": "string",
            "example": "transaction/started",
            "description": "Event that triggers the webhook. You can retrieve data in JSON.",
            "enum": [
              "batches/failed",
              "batches/started",
              "batches/updated",
              "batches/completed",
              "transactions/completed",
              "transactions/failed",
              "transactions/started"
            ]
          },
          "url": {
            "type": "string",
            "example": "https://apple.com/uninstall",
            "description": "Destination URI to which the webhook subscription should send the POST request when an event occurs."
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "topic",
          "url"
        ]
      },
      "WebhookList": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number",
            "example": 1,
            "description": "Total number of items"
          },
          "limit": {
            "type": "number",
            "example": 15,
            "description": "Number of items per page"
          },
          "cursor": {
            "type": "object",
            "properties": {
              "prev": {
                "type": "string"
              },
              "next": {
                "type": "string"
              }
            }
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Webhook"
            }
          }
        },
        "required": [
          "count",
          "limit",
          "page",
          "data"
        ]
      },
      "TransactionBatchParams": {
        "type": "object",
        "properties": {
          "transactions": {
            "description": "List of the transactions to perform.",
            "type": "array",
            "items": {}
          }
        },
        "required": [
          "transactions"
        ]
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231",
            "readOnly": true,
            "description": "Universal Unique Identifier for the object."
          },
          "createdAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was created. The API returns this value in ISO 8601 format."
          },
          "updatedAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was updated. The API returns this value in ISO 8601 format."
          },
          "amount": {
            "type": "integer",
            "example": 5000,
            "readOnly": true,
            "description": "The amount to transfer."
          },
          "fee": {
            "type": "number",
            "example": 50,
            "readOnly": true,
            "description": "Fee applied."
          },
          "totalAmount": {
            "type": "number",
            "example": 50,
            "readOnly": true,
            "description": "Total amount"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "example": "pending",
            "enum": [
              "pending",
              "failed",
              "pending_provider",
              "completed"
            ],
            "description": "Status of the transaction"
          },
          "msisdn": {
            "type": "string",
            "description": "The recipient phone number.",
            "example": "225079932203"
          },
          "reference": {
            "type": "string",
            "example": "17f9956f-0965-4964-b2c1-40b4fef141a7",
            "description": "The unique identifier of the transaction on your side."
          },
          "failureReason": {
            "type": "string",
            "readOnly": true,
            "example": "There is no account associated with this number",
            "description": "The reason why the transaction has failed. Available only for failed transaction."
          },
          "description": {
            "type": "string",
            "example": "July's salary",
            "description": "Description for the receiver"
          },
          "type": {
            "type": "string",
            "example": "transfer",
            "description": "Transaction type.",
            "enum": [
              "transfer"
            ]
          },
          "batchId": {
            "type": "string",
            "example": "17f9956f-0965-4964-b2c1-40b4fef141a7",
            "description": "Unique identifier of the batch",
            "enum": [
              "transfer"
            ]
          },
          "metadata": {
            "type": "object",
            "example": {
              "senderAddress": "1 rue du jour, Abidjan",
              "recipientAddress": "2 rue de la nuit, Abidjan"
            },
            "description": "Key-value pairs attached to the transaction. `null` if none was provided."
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "amount",
          "fee",
          "totalAmount",
          "status",
          "msisdn",
          "reference",
          "failureReason",
          "description",
          "type",
          "batchId"
        ]
      },
      "TransactionBatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231",
            "readOnly": true,
            "description": "Universal Unique Identifier for the object."
          },
          "createdAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was created. The API returns this value in ISO 8601 format."
          },
          "updatedAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "readOnly": true,
            "description": "Date and time when the object was updated. The API returns this value in ISO 8601 format."
          },
          "totalAmount": {
            "type": "integer",
            "example": 5000,
            "readOnly": true,
            "description": "The total amount ."
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "example": "pending",
            "enum": [
              "pending",
              "processing",
              "failed",
              "done"
            ],
            "description": "Status of the job"
          },
          "totalFee": {
            "type": "number",
            "example": 50,
            "readOnly": true,
            "description": "Fee applied."
          },
          "transactions": {
            "readOnly": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Transaction"
            }
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "totalAmount",
          "status",
          "totalFee",
          "transactions"
        ]
      },
      "TransactionParams": {
        "type": "object",
        "properties": {
          "msisdn": {
            "type": "string",
            "description": "The recipient phone number.",
            "example": "225079932203"
          },
          "amount": {
            "type": "number",
            "example": 500,
            "description": "The amount to send to the account"
          },
          "reference": {
            "type": "string",
            "example": "17f9956f-0965-4964-b2c1-40b4fef141a7",
            "description": "The unique identifier of the transaction on your side."
          },
          "description": {
            "type": "string",
            "example": "July's salary",
            "description": "Description for the receiver"
          },
          "type": {
            "type": "string",
            "example": "transfer",
            "description": "Type of the transaction",
            "enum": [
              "transfer"
            ]
          },
          "metadata": {
            "type": "object",
            "example": {
              "senderAddress": "1 rue du jour, Abidjan",
              "recipientAddress": "2 rue de la nuit, Abidjan"
            },
            "description": "Optional key-value pairs to attach additional information to the transaction."
          }
        },
        "required": [
          "msisdn",
          "amount",
          "reference",
          "description",
          "type"
        ]
      },
      "CreateChargesBody": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "example": 500,
            "description": "The amount to charge."
          },
          "externalId": {
            "type": "string",
            "example": "17f9956f-0965-4964-b2c1-40b4fef141a7",
            "description": "The unique identifier of the transaction on your side."
          },
          "description": {
            "type": "string",
            "example": "Charge for July's salary",
            "description": "Description of the charge"
          },
          "onCanceledRedirectionUrl": {
            "type": "string",
            "example": "https://merchant.com/djamo-success/1744728413766",
            "description": "URL to redirect the user to when the charge is canceled"
          },
          "onCompletedRedirectionUrl": {
            "type": "string",
            "example": "https://merchant.com/djamo-success/1744728413766",
            "description": "URL to redirect the user to when the charge is completed"
          }
        },
        "required": [
          "amount",
          "externalId"
        ]
      },
      "RefundChargesBody": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "example": 500,
            "description": "The amount to refund. If let empty the full amount will be refunded."
          }
        }
      },
      "PayChargesBody": {
        "type": "object",
        "properties": {
          "recipientMsisdn": {
            "type": "string",
            "example": "2250747000000",
            "description": "The recipient phone number.",
            "enum": [
              "2250747000000",
              "2251212121205"
            ]
          }
        }
      },
      "Charges": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the charge.",
            "example": "2cc3fe81-e007-46be-a97c-ae888a35ea46"
          },
          "createdAt": {
            "type": "string",
            "example": "2020-11-24T17:43:15.970Z",
            "description": "Date and time when the charge was created. The API returns this value in ISO 8601 format."
          },
          "externalId": {
            "type": "string",
            "example": "17f9956f-0965-4964-b2c1-40b4fef141a7",
            "description": "The unique identifier of the transaction on your side."
          },
          "description": {
            "type": "string",
            "example": "July's salary",
            "description": "Description of the charge"
          },
          "currency": {
            "type": "string",
            "example": "XOF",
            "description": "Currency of the charge"
          },
          "amount": {
            "type": "number",
            "example": 500,
            "description": "The amount to send to the account"
          },
          "due": {
            "type": "number",
            "example": 500,
            "description": "The amount due for the charge"
          },
          "fees": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "number",
                "example": 50,
                "description": "The fee amount"
              },
              "currency": {
                "type": "string",
                "example": "XOF",
                "description": "Currency of the fee"
              },
              "rate": {
                "type": "number",
                "example": 50,
                "description": "The fee rate"
              },
              "value": {
                "type": "number",
                "example": 50,
                "description": "The fee value"
              }
            }
          },
          "status": {
            "type": "string",
            "example": "due",
            "description": "Status of the charge",
            "enum": [
              "due",
              "paid",
              "canceled",
              "expired",
              "failed"
            ]
          },
          "droppedReason": {
            "type": "string",
            "example": "",
            "description": "The reason why the charge was dropped"
          },
          "paid": {
            "type": "number",
            "example": 1,
            "description": "The amount that has been paid"
          },
          "refunded": {
            "type": "number",
            "example": 1,
            "description": "The amount that has been refunded"
          },
          "attempts": {
            "type": "number",
            "example": 1,
            "description": "The number of attempts made to process the charge"
          },
          "metadata": {
            "type": "object",
            "example": {},
            "description": "Additional information about the charge"
          },
          "transactions": {
            "type": "array",
            "example": [],
            "description": "List of transactions related to the charge"
          }
        },
        "required": [
          "msisdn",
          "amount",
          "reference",
          "description",
          "type"
        ]
      },
      "ChargesList": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "number",
            "example": 15,
            "description": "Maximum number of charges per page"
          },
          "cursor": {
            "type": "object",
            "properties": {
              "prev": {
                "type": "string",
                "nullable": true,
                "example": null,
                "description": "Cursor of the previous page"
              },
              "next": {
                "type": "string",
                "nullable": true,
                "example": null,
                "description": "Cursor of the next page"
              }
            }
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Charges"
            }
          }
        }
      }
    }
  }
}