{
  "openapi": "3.1.0",
  "info": {
    "title": "API",
    "version": "1.0.0",
    "description": "Platnova's Business API: collect payments with hosted checkout, issue virtual accounts and cards, send payouts, and receive webhooks.\n\n# Authentication\n\nSend your API key in the `X-API-Key` header on every request. Do not send it as `Authorization: Bearer`, and do not send a dashboard session token alongside it. The `api_key` query parameter is deprecated.\n\n# Base URLs\n\n- Live: https://api.platnova.com\n- Sandbox: https://sandbox.api.platnova.co\n\n# Errors\n\nMost responses are `{status: boolean, data, error: [], message}`; branch on the HTTP status and `data.code`. Validation failures are HTTP 422 `{status: \"error\", message: \"Validation failed\", errors: {field: [messages]}}`. A missing or invalid key is 401 `un-authorized access`. See https://docs.platnova.com/errors."
  },
  "servers": [
    {
      "url": "https://api.platnova.com",
      "description": "Production server"
    },
    {
      "url": "https://sandbox.api.platnova.co",
      "description": "Development server"
    }
  ],
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/customers": {
      "post": {
        "summary": "Create customer",
        "description": "Create a new individual customer profile with identification details, address information, and KYC compliance data.",
        "operationId": "createCustomer",
        "tags": [
          "Customer"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerRequest"
              },
              "example": {
                "first_name": "John",
                "last_name": "Doe",
                "email": "johndoe06@email.com",
                "reference": "CUST-10293",
                "phone": "+23490123456789",
                "country_code": "NG",
                "date_of_birth": "1970-12-28",
                "gender": "male",
                "documents": [
                  {
                    "id_type": "national_id",
                    "id_number": "1096277890",
                    "front_doc": "<base64-encoded image>"
                  }
                ],
                "address": {
                  "street": "12 Lekki Lane",
                  "city": "Lekki",
                  "state": "Lagos",
                  "postal_code": "200123",
                  "country": "Nigeria",
                  "document": "<base64-encoded proof of address>"
                },
                "proof_of_funds": {
                  "employment_status": "employed",
                  "occupation": "151252",
                  "primary_purpose": "payments_to_friends_or_family_abroad",
                  "source_of_funds": "salary",
                  "expected_monthly_pay": "0_4999"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Customer created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Your own id for the customer; `null` if you set none."
                        },
                        "first_name": {
                          "type": "string"
                        },
                        "last_name": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "phone": {
                          "type": "string"
                        },
                        "country_code": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "id": "3be6624b-81a4-40d9-bfa9-c4dd8e4f7c18",
                    "reference": "CUST-10293",
                    "first_name": "John",
                    "last_name": "Doe",
                    "email": "johndoe04@email.com",
                    "phone": "90123456789",
                    "country_code": "NGA",
                    "status": "APPROVAL_PENDING"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Refused: the reference is taken (`duplicate_customer_reference`), or another reason that `message` explains.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "duplicate_customer_reference": {
                    "summary": "Reference already used",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_customer_reference",
                        "id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01"
                      },
                      "error": [],
                      "message": "Another customer already has this reference."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "error": {
                    "first_name": [
                      "This field is required"
                    ],
                    "last_name": [
                      "This field is required"
                    ],
                    "email": [
                      "This field is required"
                    ]
                  }
                }
              }
            }
          },
          "409": {
            "description": "Only without a `reference`: a customer with this email already exists in your business. `data.code` is `customer_exists` and `data.id` is the existing customer's `id`: use it rather than creating another. With a `reference`, the reference is the customer and email is not checked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": false,
                  "data": {
                    "code": "customer_exists",
                    "id": "0b7d3c2e-8f4a-4e1b-9c6d-2a5f7e9b1c34"
                  },
                  "error": [],
                  "message": "A customer with this email already exists."
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "List customers",
        "description": "Retrieve a paginated list of your customers.",
        "operationId": "listCustomers",
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (0-indexed)",
            "schema": {
              "type": "integer"
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Number of items per page",
            "schema": {
              "type": "integer"
            },
            "example": 20
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Case-insensitive match on first name, last name, full name or email.",
            "schema": {
              "type": "string"
            },
            "example": "jane"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort field and direction",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "description": "Filter expression",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "export",
            "in": "query",
            "required": false,
            "description": "Set to export the matching customers as CSV instead of a page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Customers retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Customer"
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "size": {
                          "type": "integer"
                        },
                        "max_page": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "last": {
                          "type": "boolean"
                        },
                        "first": {
                          "type": "boolean"
                        },
                        "visible": {
                          "type": "integer"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "description": "The customer's id, or your own `reference` for them.",
          "example": "f09b9f49-87ee-458f-8325-b49d81543ea0",
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "summary": "Get customer",
        "description": "Retrieve a specific customer by ID.",
        "operationId": "getCustomer",
        "tags": [
          "Customer"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 21 Jul 2025 23:18:48 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "895"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Your own id for the customer; `null` if you set none."
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "first_name": {
                          "type": "string"
                        },
                        "last_name": {
                          "type": "string"
                        },
                        "country_code": {
                          "type": "string"
                        },
                        "phone": {
                          "type": "string"
                        },
                        "dial_code": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "status": {
                          "type": "string"
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "date_of_birth": {
                              "type": "string"
                            },
                            "employment_status": {
                              "type": "string"
                            },
                            "expected_monthly_income": {
                              "type": "string"
                            },
                            "primary_purpose": {
                              "type": "string"
                            },
                            "source_of_funds": {
                              "type": "string"
                            },
                            "most_recent_occupation": {
                              "type": "string"
                            },
                            "document": {
                              "type": "object",
                              "properties": {
                                "docs": {
                                  "nullable": true
                                },
                                "number": {
                                  "type": "string"
                                },
                                "country": {
                                  "type": "string"
                                },
                                "id_type": {
                                  "type": "string"
                                },
                                "valid_until": {
                                  "type": "string"
                                },
                                "provider": {
                                  "type": "integer"
                                },
                                "additional": {
                                  "nullable": true
                                },
                                "gender": {
                                  "type": "string"
                                }
                              }
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "street": {
                                  "type": "string"
                                },
                                "city": {
                                  "type": "string"
                                },
                                "state": {
                                  "type": "string"
                                },
                                "country": {
                                  "type": "string"
                                },
                                "postal_code": {
                                  "type": "string"
                                },
                                "document": {
                                  "type": "object",
                                  "properties": {
                                    "id_type": {
                                      "type": "string"
                                    },
                                    "issue_country": {
                                      "type": "string"
                                    },
                                    "urls": {
                                      "nullable": true
                                    }
                                  }
                                }
                              }
                            },
                            "providers": {
                              "nullable": true
                            }
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                    "reference": "CUST-10293",
                    "email": "johndoe03@email.com",
                    "first_name": "John",
                    "last_name": "Doe",
                    "country_code": "NGA",
                    "phone": "90123456789",
                    "dial_code": "+234",
                    "created_at": "2025-07-22T00:17:49.238398+01:00",
                    "updated_at": "2025-07-22T00:17:49.713464+01:00",
                    "status": "APPROVAL_PENDING",
                    "meta": {
                      "date_of_birth": "",
                      "employment_status": "employed",
                      "expected_monthly_income": "0_4999",
                      "primary_purpose": "payments_to_friends_or_family_abroad",
                      "source_of_funds": "salary",
                      "most_recent_occupation": "engineering",
                      "document": {
                        "docs": null,
                        "number": "",
                        "country": "",
                        "id_type": "",
                        "valid_until": "",
                        "provider": 0,
                        "additional": null,
                        "gender": ""
                      },
                      "address": {
                        "street": "12 Lekki Lane",
                        "city": "Lekki",
                        "state": "Lagos",
                        "country": "Nigeria",
                        "postal_code": "200123",
                        "document": {
                          "id_type": "",
                          "issue_country": "",
                          "urls": null
                        }
                      },
                      "providers": null
                    }
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 21 Jul 2025 23:21:46 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "72"
              }
            },
            "description": "400 - Customer not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "customer was not found"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update customer",
        "description": "Partially update a customer. All body fields are optional; include only fields you want to change. Use documents and proof_of_funds for KYC updates.",
        "operationId": "updateCustomer",
        "tags": [
          "Customer"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerRequest"
              },
              "example": {
                "first_name": "Jane",
                "phone": "+2348012345678",
                "documents": [
                  {
                    "id_type": "passport",
                    "id_number": "A12345678",
                    "front_doc": "<base64-encoded image>"
                  }
                ],
                "proof_of_funds": {
                  "employment_status": "employed",
                  "occupation": "151252",
                  "primary_purpose": "payments_to_friends_or_family_abroad",
                  "source_of_funds": "salary",
                  "expected_monthly_pay": "0_4999"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Customer updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. customer not found, or the reference is taken: `duplicate_customer_reference` with the other customer's `id`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "Customer not found",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "customer was not found"
                    }
                  },
                  "duplicate_customer_reference": {
                    "summary": "Reference already used",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_customer_reference",
                        "id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01"
                      },
                      "error": [],
                      "message": "Another customer already has this reference."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                }
              }
            }
          }
        }
      }
    },
    "/v1/virtual-accounts/create": {
      "post": {
        "summary": "Create virtual account (customer)",
        "description": "Open a virtual bank account for one of your customers.\n\n**Name the customer** with `customer_id` or `customer_reference` (one of the two, not both). `customer_id` may be our customer id or your own id for the customer; `customer_reference` is your own id by its explicit name. If none of your customers has your id yet, send the customer's details (`customer_*` fields) and the customer is created with your id as their `reference`. A customer that already exists needs no details.\n\n**Required for a new customer:** `customer_name` (or `customer_first_name` + `customer_last_name`), `customer_email`, `customer_phone`, `customer_country_code` (defaults to `NG` for NGN) and `customer_date_of_birth`. The date of birth is not needed for NGN when you send `id_number` (BVN): it is taken from the BVN record. `customer_gender` is optional.\n\n**NGN:** in live, `id_number` (BVN) is required unless the customer already has a BVN on file, and it is verified before the account is opened.\n\n**USD:** set a default USD settlement wallet in your dashboard; any account fee is charged to it. The customer needs an address and identity documents on file, so create USD customers with Create Customer first: a customer created from `customer_*` fields has neither.\n\n**`reference`** (optional) opens an account for one loan or order. A customer can hold one account per reference, and repeating the request returns the same account. Without `reference`, a customer has one account per bank.\n\n**Your customer id is the customer.** Within your business a customer is identified by your `customer_id`, not by email, phone or BVN: a `customer_id` we don't know yet creates a new customer even when another of your customers has the same email. Our customer id keeps working as before. **`reference` is the idempotency key**: the same `reference` answers the same account; a new one opens another account for the same customer.",
        "operationId": "createUserVirtualAccount",
        "tags": [
          "Virtual Account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserVirtualAccountRequest"
              },
              "examples": {
                "new_customer_your_id": {
                  "summary": "New customer under your own id, one account per loan",
                  "value": {
                    "customer_id": "CUST-10293",
                    "reference": "LOAN-2026-0042",
                    "currency": "NGN",
                    "id_number": "22212345678",
                    "customer_first_name": "Ada",
                    "customer_last_name": "Obi",
                    "customer_email": "ada@example.com",
                    "customer_phone": "08030000000",
                    "customer_country_code": "NG",
                    "customer_gender": "female"
                  }
                },
                "existing_customer_reference": {
                  "summary": "Existing customer, by your id (customer_reference)",
                  "value": {
                    "customer_reference": "CUST-10293",
                    "reference": "LOAN-2026-0043",
                    "currency": "NGN",
                    "id_number": "22212345678"
                  }
                },
                "existing_customer_our_id": {
                  "summary": "Existing customer, by our customer id",
                  "value": {
                    "customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
                    "currency": "NGN",
                    "id_number": "22212345678",
                    "bank": "nombank"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The account was opened, or (same `reference`, customer and currency) the account already opened for it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer_id": {
                          "type": "string",
                          "description": "Our customer id."
                        },
                        "customer_reference": {
                          "type": "string",
                          "description": "Your own id for the customer, when set."
                        },
                        "reference": {
                          "type": "string",
                          "description": "The fee transaction's reference when an account fee was charged (USD); otherwise empty. Your account `reference` is on each entry in `accounts`."
                        },
                        "currency": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "first_name": {
                          "type": "string"
                        },
                        "last_name": {
                          "type": "string"
                        },
                        "created_on": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "amount_debited": {
                          "type": "number",
                          "description": "The account fee charged to your settlement wallet (USD); `0` when none."
                        },
                        "accounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The virtual account's id."
                              },
                              "account_number": {
                                "type": "string"
                              },
                              "account_name": {
                                "type": "string"
                              },
                              "bank_name": {
                                "type": "string"
                              },
                              "bank_code": {
                                "type": "string"
                              },
                              "ach_routing_number": {
                                "type": "string"
                              },
                              "rtp_routing_number": {
                                "type": "string"
                              },
                              "wire_routing_number": {
                                "type": "string"
                              },
                              "swift_code": {
                                "type": "string"
                              },
                              "bank_address": {
                                "type": "string"
                              },
                              "reference": {
                                "type": "string",
                                "description": "Your reference the account was opened under; absent without one."
                              }
                            }
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
                    "reference": "",
                    "currency": "NGN",
                    "email": "ada@example.com",
                    "first_name": "Ada",
                    "last_name": "Obi",
                    "created_on": "2026-11-03T10:15:00Z",
                    "amount_debited": 0,
                    "accounts": [
                      {
                        "id": "9b2f6a10-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
                        "account_number": "0123456789",
                        "account_name": "Ada Obi",
                        "bank_name": "Example Bank",
                        "bank_code": "100033",
                        "reference": "LOAN-2026-0042"
                      }
                    ],
                    "customer_reference": "CUST-10293"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Refused. Nothing was opened. `data.code` says why when present; otherwise read `message`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "duplicate_reference": {
                    "summary": "Reference used by another account",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_reference"
                      },
                      "error": [],
                      "message": "This reference is already used by another account of your business."
                    }
                  },
                  "invalid_reference": {
                    "summary": "Reference breaks the format",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "invalid_reference",
                        "field": "reference"
                      },
                      "error": [],
                      "message": "reference: Use 1 to 64 characters: letters, digits, and _ . : -"
                    }
                  },
                  "already_added": {
                    "summary": "No reference, and the customer already has an account at this bank",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "bank account is already added"
                    }
                  },
                  "customer_not_found": {
                    "summary": "Unknown customer id and no customer details sent",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "customer was not found"
                    }
                  },
                  "customer_id_and_reference": {
                    "summary": "Both customer_id and customer_reference sent",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "Send customer_id or customer_reference, not both."
                    }
                  },
                  "bvn_required": {
                    "summary": "Live NGN: no id_number and no BVN on file",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "invalid input"
                    }
                  },
                  "bvn_not_found": {
                    "summary": "Live NGN: the BVN is not at the registry",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "BVN ending 5678 was not found at the registry. Confirm it with the customer and try again."
                    }
                  },
                  "bvn_invalid": {
                    "summary": "Live NGN: the BVN could not be verified",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "invalid id number, please try again"
                    }
                  },
                  "usd_no_settlement_wallet": {
                    "summary": "USD: no default USD settlement wallet",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "wallet type is not available"
                    }
                  },
                  "usd_insufficient_fund": {
                    "summary": "USD: settlement wallet can't cover the account fee",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "insufficient fund"
                    }
                  },
                  "usd_customer_incomplete": {
                    "summary": "USD: the customer's profile is incomplete",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "street address is missing on your profile"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict. Nothing was opened. `account_limit_reached`: the bank can't open another account for this customer (`data.accounts`), or the person already holds your business's limit of open accounts, counted across customer ids that share a BVN (`data.limit`, `data.active`; 20 by default). `customer_id_conflict`: the customer's BVN was verified and `id_number` is a different one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "account_limit_reached": {
                    "summary": "The bank cannot open another account for this customer",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "account_limit_reached",
                        "accounts": [
                          {
                            "id": "9b2f6a10-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
                            "account_number": "0123456789",
                            "account_name": "Ada Obi",
                            "bank_name": "Example Bank",
                            "bank_code": "000000",
                            "reference": "LOAN-2026-0031"
                          }
                        ]
                      },
                      "error": [],
                      "message": "The bank cannot open another account for this customer. Use one of the customer's existing accounts, or choose another bank."
                    }
                  },
                  "reference_in_progress": {
                    "summary": "An account for this reference is still being opened",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "reference_in_progress"
                      },
                      "error": [],
                      "message": "An account for this reference is being created; try again shortly."
                    }
                  },
                  "person_account_limit": {
                    "summary": "The person already holds your business's limit of open accounts",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "account_limit_reached",
                        "limit": 20,
                        "active": 20
                      },
                      "error": [],
                      "message": "This customer already holds as many open accounts as your business can hold for one person. Reuse one of their accounts, or contact support to raise the limit."
                    }
                  },
                  "customer_id_conflict": {
                    "summary": "A different BVN for a customer whose BVN was verified",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "customer_id_conflict",
                        "field": "id_number",
                        "customer_id": "dc62d76a-0952-4d03-9df3-47d8b5651242"
                      },
                      "error": [],
                      "message": "This customer_id belongs to a customer verified with a different BVN. Use a new customer_id for a different person."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation failed; nothing was created. For a new customer, each missing detail is listed by field. A detail in the wrong format is listed under the matching Create Customer field name (`date_of_birth`, `country_code`, `gender`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "examples": {
                  "missing_details": {
                    "summary": "New customer: details missing",
                    "value": {
                      "status": "error",
                      "message": "Validation failed",
                      "errors": {
                        "customer_email": [
                          "Required to create the customer: no customer has this customer_id yet."
                        ],
                        "customer_phone": [
                          "Required to create the customer: no customer has this customer_id yet."
                        ],
                        "customer_date_of_birth": [
                          "Required to create the customer: no customer has this customer_id yet."
                        ]
                      }
                    }
                  },
                  "no_name": {
                    "summary": "New customer: no name",
                    "value": {
                      "status": "error",
                      "message": "Validation failed",
                      "errors": {
                        "customer_first_name": [
                          "Required to create the customer: no customer has this customer_id yet."
                        ],
                        "customer_last_name": [
                          "Required to create the customer: no customer has this customer_id yet."
                        ],
                        "customer_name": [
                          "Or send customer_name with both names."
                        ]
                      }
                    }
                  },
                  "bad_customer_id": {
                    "summary": "New customer: your id breaks the format",
                    "value": {
                      "status": "error",
                      "message": "Validation failed",
                      "errors": {
                        "customer_id": [
                          "To create the customer, the business's own customer id must be use 1 to 64 characters: letters, digits, and _ . : -."
                        ]
                      }
                    }
                  },
                  "bad_format": {
                    "summary": "New customer: a detail in the wrong format",
                    "value": {
                      "status": "error",
                      "message": "Validation failed",
                      "errors": {
                        "date_of_birth": [
                          "Use the format YYYY-MM-DD."
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The bank can't open accounts right now. Nothing was opened; retry later",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "bank_unavailable": {
                    "summary": "Bank unavailable",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "bank_unavailable",
                        "retryable": true
                      },
                      "error": [],
                      "message": "We can't open accounts with this bank right now. Try again later or contact support."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/virtual-accounts/by-reference/{reference}": {
      "get": {
        "summary": "Get virtual account by reference",
        "description": "Return the account you opened with `reference` on Create Virtual Account. Only your own business's accounts are found.",
        "operationId": "getVirtualAccountByReference",
        "tags": [
          "Virtual Account"
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "description": "The `reference` you sent when creating the account.",
            "example": "LOAN-2026-0042",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The account(s) opened under this reference",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer_id": {
                          "type": "string",
                          "description": "Our customer id."
                        },
                        "customer_reference": {
                          "type": "string",
                          "description": "Your own id for the customer, when set."
                        },
                        "reference": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "first_name": {
                          "type": "string"
                        },
                        "last_name": {
                          "type": "string"
                        },
                        "created_on": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "amount_debited": {
                          "type": "number"
                        },
                        "accounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The virtual account's id."
                              },
                              "account_number": {
                                "type": "string"
                              },
                              "account_name": {
                                "type": "string"
                              },
                              "bank_name": {
                                "type": "string"
                              },
                              "bank_code": {
                                "type": "string"
                              },
                              "ach_routing_number": {
                                "type": "string"
                              },
                              "rtp_routing_number": {
                                "type": "string"
                              },
                              "wire_routing_number": {
                                "type": "string"
                              },
                              "swift_code": {
                                "type": "string"
                              },
                              "bank_address": {
                                "type": "string"
                              },
                              "reference": {
                                "type": "string",
                                "description": "Your reference the account was opened under; absent without one."
                              }
                            }
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
                    "customer_reference": "CUST-10293",
                    "reference": "",
                    "currency": "NGN",
                    "email": "ada@example.com",
                    "first_name": "Ada",
                    "last_name": "Obi",
                    "created_on": "2026-11-03T10:15:00Z",
                    "amount_debited": 0,
                    "accounts": [
                      {
                        "id": "9b2f6a10-3c4d-4e5f-8a7b-1c2d3e4f5a6b",
                        "account_number": "0123456789",
                        "account_name": "Ada Obi",
                        "bank_name": "Example Bank",
                        "bank_code": "000000",
                        "reference": "LOAN-2026-0042"
                      }
                    ]
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "404": {
            "description": "No account was opened with this reference",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": false,
                  "data": {
                    "code": "virtual_account_not_found"
                  },
                  "error": [],
                  "message": "No virtual account was opened with this reference."
                }
              }
            }
          }
        }
      }
    },
    "/v1/virtual-accounts/dynamic": {
      "post": {
        "summary": "Generate single-use virtual account",
        "description": "Generate a single-use NGN account for a customer, for an amount and a lifespan. Add `reference` (your order id) to give each order its own account: the payment notification then names the order. Without `reference`, a customer has one open account per bank at a time and a repeat request for the same amount returns it; another amount gets a new account.",
        "operationId": "createDynamicVirtualAccount",
        "tags": [
          "Virtual Account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDynamicVirtualAccountRequest"
              },
              "examples": {
                "plain": {
                  "summary": "One open account per customer",
                  "value": {
                    "customer_id": "aad8aff0-00db-48b0-9bb0-9b399c313438",
                    "amount": 200,
                    "lifespan_minutes": 20
                  }
                },
                "order": {
                  "summary": "An account for one order",
                  "value": {
                    "customer_id": "CUST-10293",
                    "amount": 15000,
                    "lifespan_minutes": 60,
                    "reference": "ORDER-7781"
                  }
                },
                "order_new_customer": {
                  "summary": "An order for a new customer under your own id",
                  "value": {
                    "customer_id": "CUST-10295",
                    "amount": 15000,
                    "lifespan_minutes": 60,
                    "reference": "ORDER-7782",
                    "customer_name": "Chidi Okeke",
                    "customer_email": "chidi@example.com",
                    "customer_phone": "08030000001",
                    "customer_date_of_birth": "1988-09-30"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Dynamic virtual account created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "account_name": {
                          "type": "string"
                        },
                        "account_no": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "number",
                          "description": "The amount requested."
                        },
                        "currency": {
                          "type": "string"
                        },
                        "bank_name": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string",
                          "description": "The account's own reference (also `account_reference` on `account.funded`). Not your order reference."
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "payment_session_id": {
                          "type": "string"
                        },
                        "usage": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "customer_id": {
                          "type": "string",
                          "description": "Our customer id."
                        },
                        "customer_reference": {
                          "type": "string",
                          "description": "Your own id for the customer, when set."
                        },
                        "order_reference": {
                          "type": "string",
                          "description": "Your `reference` for the order, when sent."
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "account_name": "PLATNOVA TECHNOLOGIES LTD/PLATNOVA ",
                    "account_no": "9000043059",
                    "amount": 200,
                    "currency": "ngn",
                    "bank_name": "BEAMER (GABSYN) MICROFINANCE BANK",
                    "reference": "BDEPSTbdpLERjSmvg2XbF9iTA0bXxrX8E88BOI",
                    "email": "emmrysjonathan@gmail.com",
                    "expires_at": "2026-03-19T23:13:03.140476016Z",
                    "payment_session_id": "",
                    "usage": "integration",
                    "created_at": "2026-03-19T22:53:03.140476016Z",
                    "customer_id": "aad8aff0-00db-48b0-9bb0-9b399c313438",
                    "customer_reference": "CUST-10293",
                    "order_reference": "ORDER-7781"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Refused. `data.code` says why when present",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "duplicate_reference": {
                    "summary": "Reference used for another customer or amount",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_reference"
                      },
                      "error": [],
                      "message": "This reference is already used by another account of your business."
                    }
                  },
                  "expired": {
                    "summary": "The order's account has expired",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_reference",
                        "status": "expired"
                      },
                      "error": [],
                      "message": "The account issued for this reference has expired. Use a new reference for a new account."
                    }
                  },
                  "invalid_reference": {
                    "summary": "Reference breaks the format, or reference and order_reference differ",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "invalid_reference",
                        "field": "reference"
                      },
                      "error": [],
                      "message": "reference: Use 1 to 64 characters: letters, digits, and _ . : -"
                    }
                  },
                  "customer_not_found": {
                    "summary": "Unknown customer and no customer details sent",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "customer was not found"
                    }
                  },
                  "customer_id_and_reference": {
                    "summary": "Both customer_id and customer_reference sent",
                    "value": {
                      "status": false,
                      "data": {},
                      "error": [],
                      "message": "Send customer_id or customer_reference, not both."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict. Nothing was opened",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "reference_in_progress": {
                    "summary": "An account for this order is still being opened",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "reference_in_progress"
                      },
                      "error": [],
                      "message": "An account for this reference is being created; try again shortly."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. For a new customer, lists each missing detail by field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "status": "error",
                  "message": "Validation failed",
                  "errors": {
                    "customer_date_of_birth": [
                      "Required to create the customer: no customer has this customer_id yet."
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/virtual-accounts": {
      "post": {
        "summary": "Create virtual account (business)",
        "description": "Create a virtual bank account for the business entity in the specified currency. Requires wallet_id; optionally pass bank codes.",
        "operationId": "createVirtualAccount",
        "tags": [
          "Virtual Account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVirtualAccountRequest"
              },
              "example": {
                "wallet_id": "43a2b75e-5c59-429e-872a-2a54c7b17e37",
                "codes": [
                  "CHASUS33"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "2"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "1"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753140419"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 21 Jul 2025 23:26:01 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "554"
              }
            },
            "description": "200 - Success - USD",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer_id": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string",
                          "format": "email"
                        },
                        "first_name": {
                          "type": "string"
                        },
                        "last_name": {
                          "type": "string"
                        },
                        "created_on": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "accounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "account_number": {
                                "type": "string"
                              },
                              "account_name": {
                                "type": "string"
                              },
                              "bank_name": {
                                "type": "string"
                              },
                              "bank_code": {
                                "type": "string"
                              },
                              "ach_routing_number": {
                                "type": "string"
                              },
                              "rtp_routing_number": {
                                "type": "string"
                              },
                              "wire_routing_number": {
                                "type": "string"
                              },
                              "swift_code": {
                                "type": "string"
                              },
                              "bank_address": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer_id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                    "currency": "USD",
                    "email": "johndoe03@email.com",
                    "first_name": "John",
                    "last_name": "Doe",
                    "created_on": "2025-07-22T00:26:00+01:00",
                    "accounts": [
                      {
                        "account_number": "3916098129",
                        "account_name": "John Doe",
                        "bank_name": "JPMorgan Chase",
                        "bank_code": "CHASUS33",
                        "ach_routing_number": "598983484",
                        "rtp_routing_number": "812096193",
                        "wire_routing_number": "982935645",
                        "swift_code": "CHASUS33",
                        "bank_address": "270 Park Ave, New York, NY, 10017-2070"
                      }
                    ]
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "2"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "1"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1751896973"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 07 Jul 2025 14:01:54 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "79"
              }
            },
            "description": "400 - Virtual Account exists",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "bank account is already added"
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "List virtual accounts",
        "description": "With `customer_id` or `customer_reference`: that customer's accounts. Without a customer filter: your business's own accounts. Filter either by `currency`.",
        "operationId": "listVirtualAccounts",
        "tags": [
          "Virtual Account"
        ],
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "optional three letter currency codes",
            "example": "NGN",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "description": "Our customer id, or your own `reference` for the customer.",
            "example": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_reference",
            "in": "query",
            "required": false,
            "description": "Your own id for the customer. Send this or `customer_id`, not both.",
            "example": "CUST-10293",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 - Success - USD",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The virtual account's id."
                          },
                          "recommended": {
                            "type": "boolean"
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "provider": {
                                "type": "integer"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "account_type": {
                                "type": "string"
                              },
                              "issued": {
                                "type": "boolean"
                              },
                              "disabled": {
                                "type": "boolean"
                              },
                              "ach_routing_number": {
                                "type": "string"
                              },
                              "rtp_routing_number": {
                                "type": "string"
                              },
                              "wire_routing_number": {
                                "type": "string"
                              },
                              "swift_code": {
                                "type": "string"
                              },
                              "bank_address": {
                                "type": "string"
                              }
                            }
                          },
                          "account_number": {
                            "type": "string"
                          },
                          "account_name": {
                            "type": "string"
                          },
                          "bank_name": {
                            "type": "string"
                          },
                          "bank_code": {
                            "type": "string"
                          },
                          "default": {
                            "type": "boolean"
                          },
                          "reference": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Customer accounts only: your `reference` the account was opened under, or `null` on the customer's general account."
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": [
                    {
                      "id": "1d7c9e52-8b0f-4a63-9c2e-5f4a3b2c1d0e",
                      "recommended": false,
                      "meta": {
                        "id": "47f77087-cb48-4aa2-8ab9-33b2b9156209",
                        "provider": 5,
                        "currency": "USD",
                        "account_type": "Current",
                        "issued": true,
                        "disabled": false,
                        "ach_routing_number": "598983484",
                        "rtp_routing_number": "812096193",
                        "wire_routing_number": "982935645",
                        "swift_code": "CHASUS33",
                        "bank_address": "270 Park Ave, New York, NY, 10017-2070"
                      },
                      "account_number": "3916098129",
                      "account_name": "John Doe",
                      "bank_name": "JPMorgan Chase",
                      "bank_code": "CHASUS33",
                      "default": true
                    }
                  ],
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 07 Jul 2025 14:40:35 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "72"
              }
            },
            "description": "400 - Customer not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "customer was not found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/create": {
      "post": {
        "summary": "Create card",
        "description": "Create a virtual card for a customer with optional initial funding.",
        "operationId": "createCard",
        "tags": [
          "Card"
        ],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753190676"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 13:23:41 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "321"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "first_name": {
                              "type": "string"
                            },
                            "last_name": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            }
                          }
                        },
                        "card_id": {
                          "type": "string"
                        },
                        "card_status": {
                          "type": "string"
                        },
                        "card_brand": {
                          "type": "string"
                        },
                        "card_currency": {
                          "type": "string"
                        },
                        "amount_debited": {
                          "type": "number"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer": {
                      "id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                      "first_name": "John",
                      "last_name": "Doe",
                      "email": "johndoe03@email.com"
                    },
                    "card_id": "18ee492a-617c-4878-958a-2ee08dc20ff4",
                    "card_status": "processing",
                    "card_brand": "mastercard",
                    "card_currency": "ngn"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "2"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753190676"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 13:24:14 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "91"
              }
            },
            "description": "400 - Card limit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "only 1 mastercard card allowed in a month"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCardRequest"
              },
              "example": {
                "customer_id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                "currency": "ngn",
                "brand": "mastercard",
                "amount": 15000,
                "wallet_id": "43a2b75e-5c59-429e-872a-2a54c7b17e37"
              }
            }
          }
        }
      }
    },
    "/v1/cards": {
      "get": {
        "summary": "List cards",
        "description": "Retrieve a list of cards, optionally filtered by customer.",
        "operationId": "listCards",
        "tags": [
          "Card"
        ],
        "parameters": [
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "description": "Our customer id, or your own `reference` for the customer.",
            "example": "3be6624b-81a4-40d9-bfa9-c4dd8e4f7c18",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_reference",
            "in": "query",
            "required": false,
            "description": "Your own id for the customer. Send this or `customer_id`, not both.",
            "example": "CUST-10293",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "events": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "event_id": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "string"
                                },
                                "merchant_name": {
                                  "type": "string"
                                },
                                "created_at": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "description": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "meta": {
                                  "type": "object"
                                }
                              }
                            }
                          },
                          "currency": {
                            "type": "string"
                          },
                          "info": {
                            "type": "object",
                            "properties": {
                              "provider_id": {
                                "type": "string"
                              },
                              "provider": {
                                "type": "integer"
                              },
                              "pan": {
                                "type": "string"
                              },
                              "masked_pan": {
                                "type": "string"
                              },
                              "last4": {
                                "type": "string"
                              },
                              "city": {
                                "type": "string"
                              },
                              "state": {
                                "type": "string"
                              },
                              "address": {
                                "type": "string"
                              },
                              "zip_code": {
                                "type": "string"
                              },
                              "cvv": {
                                "type": "string"
                              },
                              "expiry_month": {
                                "type": "string"
                              },
                              "expiry_year": {
                                "type": "string"
                              },
                              "brand": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "name_on_card": {
                                "type": "string"
                              },
                              "colors": {
                                "nullable": true
                              },
                              "label": {
                                "type": "string"
                              },
                              "control": {
                                "type": "object",
                                "properties": {
                                  "limits": {
                                    "nullable": true
                                  },
                                  "channels": {
                                    "nullable": true
                                  }
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "notes": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": [
                    {
                      "id": "18ee492a-617c-4878-958a-2ee08dc20ff4",
                      "amount": "4",
                      "created_at": "2025-07-22T14:23:40.634516+01:00",
                      "events": [
                        {
                          "event_id": "UTR_zPV3SCUoo66yeH4syVxLdac7CqAvff",
                          "amount": "4",
                          "merchant_name": "Platnova",
                          "created_at": "2025-07-22T13:29:03.940373Z",
                          "description": "Platnova | Card creati...",
                          "type": "create_card",
                          "currency": "ngn",
                          "status": "success",
                          "meta": {}
                        }
                      ],
                      "currency": "ngn",
                      "info": {
                        "provider_id": "1234567890",
                        "provider": 4,
                        "pan": "",
                        "masked_pan": "489928******2417",
                        "last4": "2417",
                        "city": "New York",
                        "state": "NY",
                        "address": "123 Main St",
                        "zip_code": "10001",
                        "cvv": "",
                        "expiry_month": "01",
                        "expiry_year": "2026",
                        "brand": "mastercard",
                        "type": "virtual",
                        "name_on_card": "John Doe",
                        "colors": null,
                        "label": "General",
                        "control": {
                          "limits": null,
                          "channels": null
                        }
                      },
                      "status": "active",
                      "notes": "We now charge $0.30 fee for declined transactions due to insufficient funds. The affected card may be terminated if the balance isn't sufficient to cover the charge after one failed attempt.",
                      "title": "General"
                    }
                  ],
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 13:58:55 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "72"
              }
            },
            "description": "400 - Customer not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "customer was not found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/deposit": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "Unique ID of the card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "summary": "Deposit to card",
        "description": "Add funds to a card from your wallet.",
        "operationId": "depositCard",
        "tags": [
          "Card"
        ],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "2"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753194254"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 14:23:42 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "374"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "first_name": {
                              "type": "string"
                            },
                            "last_name": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            }
                          }
                        },
                        "card_id": {
                          "type": "string"
                        },
                        "transaction_reference": {
                          "type": "string"
                        },
                        "transaction_status": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer": {
                      "id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                      "first_name": "John",
                      "last_name": "Doe",
                      "email": "johndoe03@email.com"
                    },
                    "card_id": "18ee492a-617c-4878-958a-2ee08dc20ff4",
                    "transaction_reference": "UTR_7HeRoy4CRl6hcOOqAzwAeo0WLLMMbt",
                    "transaction_status": "processing",
                    "currency": "ngn",
                    "amount": "1000"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753194321"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 14:24:22 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "68"
              }
            },
            "description": "400 - Card not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "card was not found"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardDepositRequest"
              },
              "example": {
                "amount": "1000"
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/withdraw": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "Unique ID of the card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "summary": "Withdraw from card",
        "description": "Withdraw funds from a card back to your wallet.",
        "operationId": "withdrawCard",
        "tags": [
          "Card"
        ],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753195585"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 14:45:28 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "373"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "first_name": {
                              "type": "string"
                            },
                            "last_name": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            }
                          }
                        },
                        "card_id": {
                          "type": "string"
                        },
                        "transaction_reference": {
                          "type": "string"
                        },
                        "transaction_status": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "customer": {
                      "id": "43a2b75e-5c59-429e-872a-2a54c7b17e34",
                      "first_name": "John",
                      "last_name": "Doe",
                      "email": "johndoe03@email.com"
                    },
                    "card_id": "18ee492a-617c-4878-958a-2ee08dc20ff4",
                    "transaction_reference": "UTR_3jtbBJC7lPJmYfcJXEWfaN2Sk1t57T",
                    "transaction_status": "processing",
                    "currency": "ngn",
                    "amount": "500"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "2"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753194966"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 14:35:32 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "68"
              }
            },
            "description": "400 - Card not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "card was not found"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWithdrawRequest"
              },
              "example": {
                "currency": "ngn",
                "amount": 200
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/freeze": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "unique id of the customers card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "put": {
        "summary": "Freeze card",
        "description": "Temporarily disable a card so it cannot be used for purchases.",
        "operationId": "freezeCard",
        "tags": [
          "Card"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1757349949"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 16:44:51 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "73"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {},
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/unfreeze": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "put": {
        "summary": "Unfreeze card",
        "description": "Restore a frozen card so it can be used again.",
        "operationId": "unfreezeCard",
        "tags": [
          "Card"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1757350441"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 16:53:03 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "73"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {},
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "summary": "Get card",
        "description": "Retrieve a specific card by ID including balance and status.",
        "operationId": "getCard",
        "tags": [
          "Card"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 20:47:12 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "636"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "info": {
                          "type": "object",
                          "properties": {
                            "provider_id": {
                              "type": "string"
                            },
                            "provider": {
                              "type": "integer"
                            },
                            "pan": {
                              "type": "string"
                            },
                            "masked_pan": {
                              "type": "string"
                            },
                            "last4": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "address": {
                              "type": "string"
                            },
                            "zip_code": {
                              "type": "string"
                            },
                            "cvv": {
                              "type": "string"
                            },
                            "expiry_month": {
                              "type": "string"
                            },
                            "expiry_year": {
                              "type": "string"
                            },
                            "brand": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            },
                            "name_on_card": {
                              "type": "string"
                            },
                            "colors": {
                              "nullable": true
                            },
                            "label": {
                              "type": "string"
                            },
                            "control": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "nullable": true
                                },
                                "channels": {
                                  "nullable": true
                                }
                              }
                            },
                            "account_provider_id": {
                              "type": "string"
                            }
                          }
                        },
                        "status": {
                          "type": "string"
                        },
                        "notes": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "id": "18ee492a-617c-4878-958a-2ee08dc20ff4",
                    "amount": "1904",
                    "created_at": "2025-07-22T14:23:40.634516+01:00",
                    "currency": "ngn",
                    "info": {
                      "provider_id": "1234567890",
                      "provider": 4,
                      "pan": "",
                      "masked_pan": "489928******2417",
                      "last4": "2417",
                      "city": "New York",
                      "state": "NY",
                      "address": "123 Main St",
                      "zip_code": "10001",
                      "cvv": "",
                      "expiry_month": "01",
                      "expiry_year": "2026",
                      "brand": "mastercard",
                      "type": "virtual",
                      "name_on_card": "John Doe",
                      "colors": null,
                      "label": "General",
                      "control": {
                        "limits": null,
                        "channels": null
                      },
                      "account_provider_id": ""
                    },
                    "status": "active",
                    "notes": "",
                    "title": "General"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 20:47:44 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "64"
              }
            },
            "description": "400 - Card not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "card not found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/events": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "unique id of a card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "summary": "List card events",
        "description": "Retrieve transaction and event history for a card.",
        "operationId": "listCardEvents",
        "tags": [
          "Card"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "0-indexed page number",
            "example": "0",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "number of items per page",
            "example": "10",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 17:10:27 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "678"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "event_id": {
                                "type": "string"
                              },
                              "amount": {
                                "type": "string"
                              },
                              "merchant_name": {
                                "type": "string"
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "description": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "meta": {
                                "type": "object"
                              }
                            }
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "size": {
                          "type": "integer"
                        },
                        "max_page": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "last": {
                          "type": "boolean"
                        },
                        "first": {
                          "type": "boolean"
                        },
                        "visible": {
                          "type": "integer"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "items": [
                      {
                        "event_id": "UTR_3jtbBJC7lPJmYfcJXEWfaN2Sk1t57T",
                        "amount": "525",
                        "merchant_name": "Platnova",
                        "created_at": "2025-07-22T15:45:28.223603+01:00",
                        "description": "Platnova | Card withdr...",
                        "type": "withdraw_card",
                        "currency": "ngn",
                        "status": "processing",
                        "meta": {}
                      },
                      {
                        "event_id": "UTR_zPV3SCUoo66yeH4syVxLdac7CqAvff",
                        "amount": "4",
                        "merchant_name": "Platnova",
                        "created_at": "2025-07-22T14:29:03.940373+01:00",
                        "description": "Platnova | Card creati...",
                        "type": "create_card",
                        "currency": "ngn",
                        "status": "success",
                        "meta": {}
                      }
                    ],
                    "page": 0,
                    "size": 10,
                    "max_page": 0,
                    "total_pages": 1,
                    "total": 2,
                    "last": true,
                    "first": true,
                    "visible": 2
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 17:12:17 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "64"
              }
            },
            "description": "400 - Card not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "card not found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/reveal": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "unique id of a card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff6",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "summary": "Reveal card details",
        "description": "Retrieve full card number and CVV. Rate-limited for security.",
        "operationId": "revealCard",
        "tags": [
          "Card"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json; charset=utf-8"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1753193061"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Tue, 22 Jul 2025 14:03:22 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "112"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "number": {
                          "type": "string"
                        },
                        "cvv": {
                          "type": "string"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "number": "4899281234562417",
                    "cvv": "567"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "10"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "8"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1757363036"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 20:23:31 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "64"
              }
            },
            "description": "400 - Card not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": false,
                  "data": {},
                  "error": [],
                  "message": "card not found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/payments/send": {
      "post": {
        "summary": "Send payment",
        "description": "Initiate a payment transfer. Supports instant, scheduled, and recurring payments. Send your own unique `reference`: if the request times out, look the payment up by that reference with Verify Payment, and resend with the same reference only if it is not found. A reference is never paid twice.",
        "operationId": "sendPayment",
        "tags": [
          "Payment"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendPaymentRequest"
              },
              "example": {
                "from_amount": 100.5,
                "from_wallet_id": "43a2b75e-5c59-429e-872a-2a54c7b17e37",
                "to_currency": "NGN",
                "payment_method": "bank_transfer",
                "info": {
                  "account_number": "0123456789",
                  "bank_code": "058",
                  "account_name": "John Doe"
                },
                "is_save_to_beneficiary": false,
                "reference": "INV-2026-0042",
                "payment_type": {
                  "type": "instant"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment initiated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "transaction_ref": {
                          "type": "string",
                          "description": "Platnova's unique reference for this payment. Verify Payment accepts it, and so does your own `reference`."
                        },
                        "status": {
                          "type": "string",
                          "description": "`pending` for a payout sent with an API key (it is on its way); `pending_approval` when a dashboard user without approval permission sent it. Follow it with Verify Payment or the `transfer.*` webhooks."
                        },
                        "from_amount": {
                          "type": "number"
                        },
                        "to_amount": {
                          "type": "number"
                        },
                        "from_currency": {
                          "type": "string",
                          "description": "Lowercase, e.g. `ngn`."
                        },
                        "to_currency": {
                          "type": "string",
                          "description": "Lowercase, e.g. `ngn`."
                        },
                        "method": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "string",
                          "description": "A readable time in your business's time zone, e.g. `Tuesday, 3 November, 09:15`. Not machine-readable: use `created_at` from Verify Payment."
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Refused; nothing was sent (for example insufficient funds, or an invalid payload). A `reference` already used answers `data.code` `duplicate_reference` with the existing payment's `transaction_ref`. `data.code` `duplicate_payment`: the same amount to the same recipient less than a minute ago, sent with no `reference` and no `Idempotency-Key`. `idempotency_key_invalid` / `idempotency_key_required`: see Errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "duplicate_reference": {
                    "summary": "Reference already used",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "duplicate_reference",
                        "transaction_ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2"
                      },
                      "error": [],
                      "message": "duplicate transaction detected: reference already exists"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation error (e.g. invalid info fields for payment method) Also `data.code` `idempotency_key_reused`: the key was already used for a different request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "error": {
                    "from_amount": [
                      "This field is required"
                    ],
                    "from_wallet_id": [
                      "This field is required"
                    ],
                    "to_currency": [
                      "This field is required"
                    ],
                    "payment_method": [
                      "This field is required"
                    ],
                    "info": [
                      "This field is required"
                    ]
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ]
      }
    },
    "/v1/payments/verify": {
      "post": {
        "summary": "Verify payment",
        "description": "Check a payment by any of: the `transaction_ref` Send Payment returned, the `reference` you sent to Send Payment, a checkout id, the reference from a `checkout.paid` webhook, your order `reference` on a one-time virtual account, or the `transaction_ref` of an `account.funded` webhook. Only your own business's payments are found. Only `status` `success` means paid. 400 `payment_not_found` means no such payment exists for your business: for a payout, it was never created, so it is safe to resend with the same `reference`.",
        "operationId": "verifyPayment",
        "tags": [
          "Payment"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyPaymentRequest"
              },
              "examples": {
                "your_reference": {
                  "summary": "Your own reference",
                  "value": {
                    "reference": "INV-2026-0042"
                  }
                },
                "transaction_ref": {
                  "summary": "Platnova's transaction_ref",
                  "value": {
                    "reference": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2"
                  }
                },
                "order_reference": {
                  "summary": "Your order reference",
                  "value": {
                    "reference": "ORDER-7781"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/VerifyPaymentResponse"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "payout": {
                    "summary": "A payout",
                    "value": {
                      "status": true,
                      "data": {
                        "id": "6f1c2d9e-8a4b-4c1e-9b7a-2f5d3e8c1a90",
                        "ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2",
                        "reference": "INV-2026-0042",
                        "currency": "NGN",
                        "amount": 5000,
                        "fee": 50,
                        "type": "send_payment",
                        "status": "success",
                        "entry": "debit",
                        "message": "Transfer to Jane Smith",
                        "created_at": "2026-11-03T09:15:02Z",
                        "updated_at": "2026-11-03T09:15:40Z"
                      },
                      "error": [],
                      "message": "operation was successful"
                    }
                  },
                  "order": {
                    "summary": "A customer's payment for an order",
                    "value": {
                      "status": true,
                      "data": {
                        "id": "0d6c2a8e-5b1f-4c7a-9e3d-8f2a1b4c6d70",
                        "ref": "DEP_k3J9xQ2mT8vL5nR1",
                        "reference": "ORDER-7781",
                        "currency": "NGN",
                        "amount": 14950,
                        "paid_amount": 15000,
                        "fee": 50,
                        "type": "deposit",
                        "status": "success",
                        "entry": "credit",
                        "message": "Deposited NGN",
                        "customer_id": "6f1c2b9e-4a7d-4c3e-9b1a-2d5e8f7a6c01",
                        "customer_reference": "CUST-10293",
                        "expected_amount": 15000,
                        "created_at": "2026-11-03T10:21:44Z",
                        "updated_at": "2026-11-03T10:21:44Z"
                      },
                      "error": [],
                      "message": "operation was successful"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No payment with this reference for your business (`data.code` `payment_not_found`), or one of your checkouts not paid yet (`data.code` `checkout_unpaid`, `data.status` `pending` or `expired`). Any other 400 (for example `something went wrong, please contact support`) is not \"not found\": verify again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "payment_not_found": {
                    "summary": "Not found",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "payment_not_found"
                      },
                      "error": [],
                      "message": "payment not found"
                    }
                  },
                  "checkout_unpaid": {
                    "summary": "Checkout not paid yet",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "checkout_unpaid",
                        "status": "pending"
                      },
                      "error": [],
                      "message": "payment not found"
                    }
                  },
                  "order_unpaid": {
                    "summary": "Order not paid yet",
                    "value": {
                      "status": false,
                      "data": {
                        "code": "order_unpaid",
                        "status": "pending"
                      },
                      "error": [],
                      "message": "payment not found"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/NotActive"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        }
      }
    },
    "/v1/transactions": {
      "get": {
        "summary": "List transactions",
        "description": "Retrieve a paginated list of transactions for the entity. Supports filtering by customer, sorting, and optional CSV export.",
        "operationId": "listTransactions",
        "tags": [
          "Transaction"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (0-indexed)",
            "schema": {
              "type": "integer"
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Number of items per page",
            "schema": {
              "type": "integer"
            },
            "example": 20
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort field and direction",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "description": "Filter expression",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "export",
            "in": "query",
            "required": false,
            "description": "Set to export results as CSV",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_id",
            "in": "query",
            "required": false,
            "description": "Our customer id, or your own `reference` for the customer.",
            "schema": {
              "type": "string"
            },
            "example": "43a2b75e-5c59-429e-872a-2a54c7b17e34"
          },
          {
            "name": "customer_reference",
            "in": "query",
            "required": false,
            "description": "Your own id for the customer. Send this or `customer_id`, not both.",
            "example": "CUST-10293",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transactions retrieved successfully (or CSV when export is set)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "ref": {
                                "type": "string"
                              },
                              "amount": {
                                "type": "string"
                              },
                              "fee": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "entry": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "wallet": {
                                "type": "object"
                              },
                              "payment_transfer": {
                                "type": "object"
                              }
                            }
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "size": {
                          "type": "integer"
                        },
                        "max_page": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "last": {
                          "type": "boolean"
                        },
                        "first": {
                          "type": "boolean"
                        },
                        "visible": {
                          "type": "integer"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "items": [
                      {
                        "id": "trx_43a2b75e-5c59-429e-872a-2a54c7b17e34",
                        "ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2",
                        "amount": "100.50",
                        "fee": "10.00",
                        "type": "transfer",
                        "status": "success",
                        "entry": "debit",
                        "message": "Bank transfer to John Doe",
                        "created_at": "2026-01-30T14:22:00Z",
                        "wallet": {},
                        "payment_transfer": {}
                      }
                    ],
                    "page": 0,
                    "size": 20,
                    "max_page": 5,
                    "total_pages": 6,
                    "total": 112,
                    "last": false,
                    "first": true,
                    "visible": 20
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/receipt": {
      "get": {
        "summary": "Generate receipt",
        "description": "Generate a receipt for a transaction by ID. Returns base64-encoded receipt data (e.g. PDF).",
        "operationId": "generateReceipt",
        "tags": [
          "Transaction"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Transaction UID",
            "schema": {
              "type": "string"
            },
            "example": "trx_43a2b75e-5c59-429e-872a-2a54c7b17e34"
          }
        ],
        "responses": {
          "200": {
            "description": "Receipt generated successfully (base64-encoded data in data field)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "string",
                      "description": "Base64-encoded receipt (e.g. PDF)"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCjIgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9LaWRzIFszIDAgUl0KL0NvdW50IDEKL01lZGlhQm94IFswIDAgNjEyIDc5Ml0KPj4KZW5kb2JqCjMgMCBvYmoKPDwKL1R5cGUgL1BhZ2UKL1BhcmVudCAyIDAgUgovUmVzb3VyY2VzIDw8Ci9Gb250IDw8Ci9GMSA0IDAgUgo+Pgo+PgovQ29udGVudHMgNSAwIFIKPj4KZW5kb2JqCjQgMCBvYmoKPDwKL1R5cGUgL0ZvbnQKL1N1YnR5cGUgL1R5cGUxCi9CYXNlRm9udCAvSGVsdmV0aWNhCj4+CmVuZG9iago1IDAgb2JqCjw8Ci9MZW5ndGggNDQKPj4Kc3RyZWFtCkJUCi9GMSAxMiBUZgoxMDAgNzAwIFRkCihSZWNlaXB0KSBUagpFVAplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAwOSAwMDAwMCBuIAowMDAwMDAwMDc0IDAwMDAwIG4gCjAwMDAwMDAxNjMgMDAwMDAgbiAKMDAwMDAwMDI0NyAwMDAwMCBuIAowMDAwMDAwMzM2IDAwMDAwIG4gCnRyYWlsZXIKPDwKL1NpemUgNgovUm9vdCAxIDAgUgo+PgpzdGFydHhyZWYKNDI3CiUlRU9G",
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Transaction not found or invalid id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout": {
      "post": {
        "summary": "Create checkout",
        "operationId": "createCheckout",
        "tags": [
          "Checkout"
        ],
        "description": "Create a hosted checkout for a sale. Authenticate with X-API-Key only: a dashboard session makes a self top-up instead.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutRequest"
              },
              "example": {
                "email": "ada@example.com",
                "amount": 25000,
                "currency": "ngn",
                "partner_reference": "order-1042",
                "success_url": "https://shop.example.com/orders/1042/paid",
                "cancel_url": "https://shop.example.com/orders/1042"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Checkout"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Refused: unsupported currency, invalid success_url/cancel_url, or `line_items_invalid`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/NotActive"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        }
      }
    },
    "/v1/links": {
      "post": {
        "summary": "Create payment link",
        "description": "Create a shareable payment link",
        "operationId": "createLink",
        "tags": [
          "Payment Link"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLinkRequest"
              },
              "example": {
                "title": "Invoice #1001",
                "description": "Payment for services",
                "amount": 50000,
                "currency": "NGN",
                "expires_at": "2026-02-28T23:59:59Z",
                "customer": {
                  "can_set_price": false
                },
                "payment": {
                  "limit": 1,
                  "payment_methods": [
                    {
                      "id": "bank_transfer",
                      "value": "058"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment link created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Link UID"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "url": {
                          "type": "string",
                          "description": "Shareable URL path"
                        },
                        "status": {
                          "type": "integer"
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. payment methods required, amount required when customer cannot set price, invalid payment method)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "error": {
                    "title": [
                      "This field is required"
                    ],
                    "currency": [
                      "This field is required"
                    ],
                    "payment": [
                      "This field is required"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "List payment links",
        "description": "Retrieve a paginated list of payment links for the authenticated entity.",
        "operationId": "listLinks",
        "tags": [
          "Payment Link"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (0-indexed)",
            "schema": {
              "type": "integer"
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Number of items per page",
            "schema": {
              "type": "integer"
            },
            "example": 20
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort field and direction",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "description": "Filter expression",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payment links retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "url": {
                                "type": "string"
                              },
                              "status": {
                                "type": "integer"
                              },
                              "expires_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updated_at": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "size": {
                          "type": "integer"
                        },
                        "max_page": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "last": {
                          "type": "boolean"
                        },
                        "first": {
                          "type": "boolean"
                        },
                        "visible": {
                          "type": "integer"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/links/{uid}/stats": {
      "get": {
        "summary": "Get payment link (with stats)",
        "description": "Retrieve a payment link by UID including statistics (total_revenue, total_transactions, total_users, total_views, payment_details).",
        "operationId": "getLink",
        "tags": [
          "Payment Link"
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "description": "Payment link UID",
            "schema": {
              "type": "string"
            },
            "example": "lnk_43a2b75e5c59429e872a"
          }
        ],
        "responses": {
          "200": {
            "description": "Payment link with stats retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "url": {
                          "type": "string"
                        },
                        "status": {
                          "type": "integer"
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "total_revenue": {
                          "type": "number"
                        },
                        "total_transactions": {
                          "type": "integer"
                        },
                        "total_users": {
                          "type": "integer"
                        },
                        "total_views": {
                          "type": "integer"
                        },
                        "payment_details": {
                          "type": "object"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (link not found or not owned by entity)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices": {
      "post": {
        "summary": "Create invoice",
        "description": "",
        "operationId": "createInvoice",
        "tags": [
          "Invoice"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              },
              "example": {
                "email": "customer@example.com",
                "note": "Thank you for your business",
                "items": [
                  {
                    "name": "Consulting",
                    "unit_price": 150,
                    "quantity": 2,
                    "currency": "NGN",
                    "total": 300
                  },
                  {
                    "name": "Setup fee",
                    "unit_price": 50,
                    "quantity": 1,
                    "currency": "NGN",
                    "total": 50
                  }
                ],
                "charges": {
                  "discount": {
                    "amount": "0",
                    "type": "flat",
                    "enabled": false
                  },
                  "tax": {
                    "amount": "7.5",
                    "type": "percentage",
                    "enabled": true
                  },
                  "fee": {
                    "amount": "0",
                    "type": "flat",
                    "enabled": false
                  },
                  "shipping": {
                    "amount": "0",
                    "type": "flat",
                    "enabled": false
                  }
                },
                "payment_schedule": {
                  "type": "one_time",
                  "due_date": "2026-02-15T23:59:59Z",
                  "send_date": "2026-01-30T00:00:00Z",
                  "payment_methods": [
                    {
                      "id": "bank_transfer",
                      "value": "058"
                    }
                  ],
                  "reminders": true,
                  "reminder_timing": {
                    "type": "before_due_date",
                    "days": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invoice created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Invoice UID"
                        },
                        "invoice_number": {
                          "type": "string"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "subtotal": {
                          "type": "string"
                        },
                        "total": {
                          "type": "string"
                        },
                        "charges": {
                          "type": "object"
                        },
                        "note": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "paid",
                            "cancelled"
                          ]
                        },
                        "payment_schedule": {
                          "type": "object"
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (user not found, payment methods required, invalid payment method)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "error": {
                    "email": [
                      "This field is required"
                    ],
                    "items": [
                      "This field is required"
                    ],
                    "payment_schedule": [
                      "This field is required"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "List invoices",
        "description": "",
        "operationId": "listInvoices",
        "tags": [
          "Invoice"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (0-indexed)",
            "schema": {
              "type": "integer"
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Number of items per page",
            "schema": {
              "type": "integer"
            },
            "example": 20
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort field and direction",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "description": "Filter expression",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Invoices retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "invoice_number": {
                                "type": "string"
                              },
                              "items": {
                                "type": "array"
                              },
                              "subtotal": {
                                "type": "string"
                              },
                              "total": {
                                "type": "string"
                              },
                              "charges": {
                                "type": "object"
                              },
                              "note": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "paid",
                                  "cancelled"
                                ]
                              },
                              "payment_schedule": {
                                "type": "object"
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "size": {
                          "type": "integer"
                        },
                        "max_page": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "last": {
                          "type": "boolean"
                        },
                        "first": {
                          "type": "boolean"
                        },
                        "visible": {
                          "type": "integer"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/view/{number}": {
      "get": {
        "summary": "Get invoice by number",
        "description": "",
        "operationId": "getInvoiceByNumber",
        "tags": [
          "Invoice"
        ],
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "required": true,
            "description": "Invoice number (e.g. INVxxxxxxxxxx)",
            "schema": {
              "type": "string"
            },
            "example": "INV20260130001"
          }
        ],
        "responses": {
          "200": {
            "description": "Invoice retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "invoice_number": {
                          "type": "string"
                        },
                        "items": {
                          "type": "array"
                        },
                        "subtotal": {
                          "type": "string"
                        },
                        "total": {
                          "type": "string"
                        },
                        "charges": {
                          "type": "object"
                        },
                        "note": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "paid",
                            "cancelled"
                          ]
                        },
                        "payment_schedule": {
                          "type": "object"
                        },
                        "payment_details": {
                          "type": "object",
                          "description": "Bank/payment details when payment method supports it",
                          "properties": {
                            "account_name": {
                              "type": "string"
                            },
                            "account_number": {
                              "type": "string"
                            },
                            "bank_name": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "swift_code": {
                              "type": "string"
                            }
                          }
                        },
                        "created_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invoice not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{uid}/status": {
      "patch": {
        "summary": "Update invoice status",
        "description": "",
        "operationId": "updateInvoiceStatus",
        "tags": [
          "Invoice"
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "description": "Invoice UID",
            "schema": {
              "type": "string"
            },
            "example": "inv_43a2b75e5c59429e872a"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceStatusRequest"
              },
              "example": {
                "status": "paid"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Invoice status updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (invoice not found or not owned by entity)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                "example": {
                  "error": {
                    "status": [
                      "This field is required"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallets": {
      "get": {
        "summary": "List wallets",
        "description": "Your business's wallets, one per currency.",
        "operationId": "listWallets",
        "tags": [
          "Wallet"
        ],
        "responses": {
          "200": {
            "description": "Wallets retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Wallet"
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": [
                    {
                      "type": "ngn",
                      "symbol": "₦",
                      "description": "Nigerian Naira",
                      "country": {
                        "code": "NG",
                        "dial_code": "+234"
                      },
                      "status": "active",
                      "id": "43a2b75e-5c59-429e-872a-2a54c7b17e37",
                      "amount": "150000.00",
                      "label": "",
                      "is_default": true
                    },
                    {
                      "type": "usd",
                      "symbol": "$",
                      "description": "US Dollar",
                      "country": {
                        "code": "US",
                        "dial_code": "+1"
                      },
                      "status": "active",
                      "id": "5c5e173f-7754-41af-a2ee-b4be7d709e0c",
                      "amount": "2500.50",
                      "label": "",
                      "is_default": true
                    }
                  ],
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. invalid or missing session)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/banks/{country_code}": {
      "get": {
        "summary": "List banks",
        "description": "Banks you can send to in a country, with the bank_code each one needs. Codes are specific to our payment provider for that country: a Nigerian bank's code here can differ from its CBN code, so always take the code from this list. Cache it for at most a day.",
        "operationId": "listBanks",
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "required": true,
            "description": "ISO 3166-1 alpha-2 country code, e.g. NG, GH, KE",
            "schema": {
              "type": "string",
              "example": "NG"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Banks retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Bank name as the provider lists it"
                          },
                          "code": {
                            "type": "string",
                            "description": "The bank_code to use on verify and send. Provider-specific per country; do not substitute a code from another source."
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "status": true,
                    "data": [
                      {
                        "name": "Access Bank",
                        "code": "044"
                      },
                      {
                        "name": "GTBank",
                        "code": "058"
                      },
                      {
                        "name": "OPay",
                        "code": "100004"
                      }
                    ],
                    "error": [],
                    "message": "operation was successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. unknown country or bank code, provider unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/banks/{country_code}/{bank_code}": {
      "get": {
        "summary": "List bank branches",
        "description": "Branches of a bank, for countries whose transfers need a branch_code (Ghana and Kenya do; Nigeria does not). The branch code goes into info.branch_code on the send request.",
        "operationId": "listBankBranches",
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "required": true,
            "description": "ISO 3166-1 alpha-2 country code, e.g. NG, GH, KE",
            "schema": {
              "type": "string",
              "example": "NG"
            }
          },
          {
            "name": "bank_code",
            "in": "path",
            "required": true,
            "description": "A code from the bank list",
            "schema": {
              "type": "string",
              "example": "GH010100"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Branches retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "branch_code": {
                            "type": "string"
                          },
                          "branch_name": {
                            "type": "string"
                          },
                          "swift_code": {
                            "type": "string"
                          },
                          "bic": {
                            "type": "string"
                          },
                          "bank_id": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "status": true,
                    "data": [
                      {
                        "id": 1,
                        "branch_code": "GH010101",
                        "branch_name": "Accra Main",
                        "swift_code": "GHIBGHAC",
                        "bic": "GHIB",
                        "bank_id": 230
                      }
                    ],
                    "error": [],
                    "message": "operation was successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. unknown country or bank code, provider unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/banks/verify": {
      "post": {
        "summary": "Verify a bank account",
        "description": "Resolves an account number at a bank to the account holder's name so you can show it before sending. Call this before every bank transfer; a wrong bank_code or account number is refused here rather than after the money has moved.",
        "operationId": "verifyBankAccount",
        "tags": [
          "Bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "account_number",
                  "bank_code",
                  "country_code"
                ],
                "properties": {
                  "account_number": {
                    "type": "string",
                    "example": "0123456789"
                  },
                  "bank_code": {
                    "type": "string",
                    "description": "From the bank list",
                    "example": "044"
                  },
                  "country_code": {
                    "type": "string",
                    "example": "NG"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Account resolved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "account_number": {
                          "type": "string"
                        },
                        "account_name": {
                          "type": "string"
                        },
                        "bank_code": {
                          "type": "string"
                        },
                        "bank_status": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/BankStatus"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Nigerian banks only: how transfers to this bank are going right now, or null when unknown. Absent for other countries."
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "status": true,
                    "data": {
                      "account_number": "0123456789",
                      "account_name": "ADAEZE OBI",
                      "bank_code": "044",
                      "bank_status": {
                        "bank_code": "044",
                        "bank_name": "Access Bank",
                        "level": "green",
                        "message": "Transfers to Access Bank usually arrive in under a minute.",
                        "expected_minutes": 1,
                        "as_of": "2026-11-11T08:10:00Z"
                      }
                    },
                    "error": [],
                    "message": "operation was successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Account could not be resolved (wrong number, wrong bank_code, or provider unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/banks/suggest": {
      "post": {
        "summary": "Suggest banks for an account number",
        "description": "When you have an account number but not the bank: returns banks we have previously paid this account number through. A hint, not a lookup; still call verify with the code you pick.",
        "operationId": "suggestBanks",
        "tags": [
          "Bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "account_number"
                ],
                "properties": {
                  "account_number": {
                    "type": "string",
                    "example": "0123456789"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Suggestions (may be empty)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "bank_code": {
                            "type": "string"
                          },
                          "bank_name": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "status": true,
                    "data": [
                      {
                        "bank_code": "058",
                        "bank_name": "GTBank"
                      }
                    ],
                    "error": [],
                    "message": "operation was successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request (e.g. unknown country or bank code, provider unavailable)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/banks/status": {
      "get": {
        "summary": "Bank network status",
        "description": "How transfers to each Nigerian bank are going right now: usually instant, slow, having problems, or no recent data. Use it to warn your customer before they send to a bank that is struggling, or to explain a slow payout. It never blocks a payout. Answers are cached for 60 seconds; polling faster returns the same answer.",
        "operationId": "getBankNetworkStatus",
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "bank_code",
            "in": "query",
            "required": false,
            "description": "One bank's code, as you hold it (from List banks or a beneficiary you saved). Omit it for every bank.",
            "schema": {
              "type": "string",
              "maxLength": 16
            },
            "example": "000015"
          }
        ],
        "responses": {
          "200": {
            "description": "Status of every bank, or of the one asked for. `banks` is empty when we know nothing of that code.",
            "headers": {
              "Cache-Control": {
                "description": "Always `public, max-age=60`",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "as_of": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "When the newest status in the answer was computed"
                        },
                        "banks": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/BankStatus"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "status": true,
                    "data": {
                      "as_of": "2026-11-11T08:10:00Z",
                      "banks": [
                        {
                          "bank_code": "000015",
                          "bank_name": "Zenith Bank",
                          "level": "amber",
                          "message": "Zenith Bank is slow right now. Transfers are taking about 8 minutes.",
                          "expected_minutes": 8,
                          "as_of": "2026-11-11T08:10:00Z"
                        }
                      ]
                    },
                    "error": [],
                    "message": "operation was successful"
                  }
                }
              }
            }
          },
          "400": {
            "description": "bank_code is longer than any bank code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Status could not be read just now; try again in a minute. Never a reason to hold a payout.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/cards/{card_id}/terminate": {
      "parameters": [
        {
          "name": "card_id",
          "in": "path",
          "required": true,
          "description": "unique id of the customers card",
          "example": "18ee492a-617c-4878-958a-2ee08dc20ff4",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "put": {
        "summary": "Terminate card",
        "description": "Close a card permanently. The card stops working at once and cannot be reactivated. Any balance on it is returned by the card issuer and credited back automatically, usually within a minute; `balance_refund` in the response says whether that is still to come. Terminating a card that is already terminated returns 200 with `already_terminated: true`, so the call is safe to retry.",
        "operationId": "terminateCard",
        "tags": [
          "Card"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "Access-Control-Allow-Credentials": {
                "schema": {
                  "type": "boolean"
                },
                "example": "true"
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                },
                "example": "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Api-Version, Platform"
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                },
                "example": "POST, OPTIONS, GET, PUT, PATCH, DELETE"
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
                "example": "*"
              },
              "Content-Type": {
                "schema": {
                  "type": "string"
                },
                "example": "application/json"
              },
              "X-Ratelimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "example": "4"
              },
              "X-Ratelimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "example": "3"
              },
              "X-Ratelimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "example": "1757349949"
              },
              "Date": {
                "schema": {
                  "type": "string"
                },
                "example": "Mon, 08 Sep 2025 16:44:51 GMT"
              },
              "Content-Length": {
                "schema": {
                  "type": "integer"
                },
                "example": "73"
              }
            },
            "description": "200 - Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "card_id": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "description": "Always `cancelled`."
                        },
                        "already_terminated": {
                          "type": "boolean",
                          "description": "True when the card was already terminated before this request."
                        },
                        "currency": {
                          "type": "string"
                        },
                        "balance": {
                          "type": "number",
                          "description": "The balance on the card when it was terminated."
                        },
                        "balance_refund": {
                          "type": "string",
                          "enum": [
                            "none",
                            "pending",
                            "refunded"
                          ],
                          "description": "`none`: nothing was on the card. `pending`: the balance is on its way back and a `card.termination_refund` webhook follows when it lands. `refunded`: it was credited in this request."
                        }
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "status": true,
                  "data": {
                    "card_id": "8c69ef84-891e-4a50-b03d-8e42d0733e8d",
                    "status": "cancelled",
                    "already_terminated": false,
                    "currency": "usd",
                    "balance": 0.58,
                    "balance_refund": "pending"
                  },
                  "error": [],
                  "message": "operation was successful"
                }
              }
            }
          },
          "403": {
            "description": "403 - card_frozen_by_platnova",
            "content": {
              "application/json": {
                "example": {
                  "status": false,
                  "data": {
                    "code": "card_frozen_by_platnova"
                  },
                  "error": [
                    "card_frozen_by_platnova"
                  ],
                  "message": "this card was frozen by Platnova and can't be unfrozen here. Please contact support"
                }
              }
            }
          },
          "404": {
            "description": "404 - card_not_found",
            "content": {
              "application/json": {
                "example": {
                  "status": false,
                  "data": {
                    "code": "card_not_found"
                  },
                  "error": [
                    "card_not_found"
                  ],
                  "message": "card not found"
                }
              }
            }
          },
          "409": {
            "description": "409 - The card cannot be terminated in its current state",
            "content": {
              "application/json": {
                "examples": {
                  "card_not_issued": {
                    "value": {
                      "status": false,
                      "data": {
                        "code": "card_not_issued"
                      },
                      "error": [
                        "card_not_issued"
                      ],
                      "message": "this card was never issued, so there is nothing to terminate"
                    }
                  },
                  "card_movement_pending": {
                    "value": {
                      "status": false,
                      "data": {
                        "code": "card_movement_pending"
                      },
                      "error": [
                        "card_movement_pending"
                      ],
                      "message": "a funding or withdrawal on this card is still processing; terminate it once that has settled"
                    }
                  },
                  "card_cannot_be_terminated": {
                    "value": {
                      "status": false,
                      "data": {
                        "code": "card_cannot_be_terminated"
                      },
                      "error": [
                        "card_cannot_be_terminated"
                      ],
                      "message": "this card can't be terminated through the API. Please contact support"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/bills/betting/billers": {
      "get": {
        "summary": "List betting billers",
        "operationId": "listBettingBillers",
        "tags": [
          "Bills"
        ],
        "description": "The betting billers you can top up. Cache for up to an hour.",
        "responses": {
          "200": {
            "description": "Billers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string",
                            "example": "bet9ja"
                          },
                          "name": {
                            "type": "string",
                            "example": "Bet9ja"
                          },
                          "skip_validation": {
                            "type": "boolean",
                            "description": "The biller returns no customer name on validate."
                          },
                          "min_amount": {
                            "type": "number",
                            "example": 100
                          },
                          "max_amount": {
                            "type": "number",
                            "example": 500000
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/bills/betting/validate": {
      "post": {
        "summary": "Validate a betting customer",
        "operationId": "validateBettingCustomer",
        "tags": [
          "Bills"
        ],
        "description": "Ask the biller who owns a customer ID. Show `customer_name` to the payer and have them confirm it before you create a top-up.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "biller",
                  "customer_id"
                ],
                "properties": {
                  "biller": {
                    "type": "string",
                    "description": "A slug from the biller list.",
                    "example": "bet9ja"
                  },
                  "customer_id": {
                    "type": "string",
                    "description": "The customer's ID with the biller. Its format depends on the biller: SportyBet takes a phone number.",
                    "example": "Hassan3330"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "biller": {
                          "type": "string"
                        },
                        "customer_id": {
                          "type": "string"
                        },
                        "customer_name": {
                          "type": "string",
                          "example": "HASSANA SAIDU"
                        },
                        "can_vend": {
                          "type": "boolean"
                        },
                        "min_amount": {
                          "type": "number",
                          "example": 100
                        },
                        "max_amount": {
                          "type": "number",
                          "example": 500000
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/bills/betting": {
      "post": {
        "summary": "Create a betting top-up",
        "operationId": "createBettingTopUp",
        "tags": [
          "Bills"
        ],
        "description": "Debits your NGN wallet `amount + fee` and tops up the customer's betting wallet. Answers 202 with `status: processing`; the outcome arrives as `bill.success`, `bill.failed` or `bill.reversed`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "biller",
                  "customer_id",
                  "amount",
                  "reference"
                ],
                "properties": {
                  "biller": {
                    "type": "string",
                    "example": "bet9ja"
                  },
                  "customer_id": {
                    "type": "string",
                    "example": "Hassan3330"
                  },
                  "amount": {
                    "type": "number",
                    "description": "NGN, from 100 to 500,000.",
                    "example": 1000
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Your reference, unique across your business. Retry a timed-out request with the same one.",
                    "example": "order-1042"
                  },
                  "customer_name_confirmation": {
                    "type": "string",
                    "description": "The name the payer confirmed. Refused with customer_name_mismatch if it does not match the biller's.",
                    "example": "HASSANA SAIDU"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Processing",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "$ref": "#/components/schemas/Bill"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "List betting top-ups",
        "operationId": "listBettingTopUps",
        "tags": [
          "Bills"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "processing",
                "success",
                "failed",
                "reversed"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 20,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of top-ups, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "bills": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Bill"
                          }
                        },
                        "total": {
                          "type": "integer"
                        },
                        "page": {
                          "type": "integer"
                        },
                        "limit": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/bills/betting/{id}": {
      "get": {
        "summary": "Get a betting top-up",
        "operationId": "getBettingTopUp",
        "tags": [
          "Bills"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The bill `id` or your `reference`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The top-up",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "$ref": "#/components/schemas/Bill"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Refused. `error[0]` and `data.code` carry the code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout/{checkout_id}": {
      "get": {
        "summary": "Get checkout",
        "operationId": "getCheckout",
        "tags": [
          "Checkout"
        ],
        "security": [],
        "description": "Needs no authentication. Returns 404 once the checkout is more than 7 days old, paid or not; confirm payments with POST /v1/payments/verify.",
        "parameters": [
          {
            "name": "checkout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The checkout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Checkout"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "checkout not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout/{checkout_id}/refund": {
      "post": {
        "summary": "Refund a checkout",
        "operationId": "createRefund",
        "tags": [
          "Refunds"
        ],
        "parameters": [
          {
            "name": "checkout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRefundRequest"
              },
              "example": {
                "amount": 2500,
                "reason": "Customer returned item",
                "idempotency_key": "order-1042-refund-1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Refund created (or replayed for a repeated idempotency_key)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Refund"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Waiting for a teammate's approval",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Refund"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Empty body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "checkout_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "idempotency_key_reused or refund_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Validation failure or a refund refusal code (see docs: checkout_not_paid, amount_exceeds_refundable, insufficient_balance, ...)",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ValidationError422"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooMany"
          }
        }
      }
    },
    "/v1/checkout/{checkout_id}/refunds": {
      "get": {
        "summary": "List a checkout's refunds",
        "operationId": "listRefunds",
        "tags": [
          "Refunds"
        ],
        "parameters": [
          {
            "name": "checkout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Refund"
                      }
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "checkout_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/refunds/{refund_id}": {
      "get": {
        "summary": "Retrieve a refund",
        "operationId": "getRefund",
        "tags": [
          "Refunds"
        ],
        "parameters": [
          {
            "name": "refund_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The refund",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/Refund"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "refund_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/payments/by-key/{key}": {
      "get": {
        "summary": "Get payment by idempotency key",
        "description": "What became of a money request whose answer you lost, by the `Idempotency-Key` you sent it with. Keys are looked up within your business: requests made with your API keys are found by any of them, and a dashboard user finds only their own. Read-only: nothing is run or repeated.",
        "operationId": "getPaymentByKey",
        "tags": [
          "Payment"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "pattern": "^[A-Za-z0-9_.:-]+$"
            },
            "description": "The `Idempotency-Key` the request was sent with."
          }
        ],
        "responses": {
          "200": {
            "description": "The request and what it created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "data": {
                      "$ref": "#/components/schemas/PaymentByKeyResponse"
                    },
                    "error": {
                      "type": "array",
                      "items": {}
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "created": {
                    "summary": "The payout was created",
                    "value": {
                      "status": true,
                      "data": {
                        "key": "payout-INV-2026-0042",
                        "state": "answered",
                        "nothing_created": false,
                        "payment": {
                          "type": "transaction",
                          "id": "6f1c2d9e-8a4b-4c1e-9b7a-2f5d3e8c1a90",
                          "ref": "BTRNSF7HeRoy4CRl6hcOOqAzwAeo0WLLMMbtQ2",
                          "status": "success",
                          "amount": "5000.00",
                          "fee": "50.00",
                          "created_at": "2026-11-03T09:15:02Z"
                        }
                      },
                      "error": [],
                      "message": "operation was successful"
                    }
                  },
                  "nothing_created": {
                    "summary": "Refused; nothing was sent",
                    "value": {
                      "status": true,
                      "data": {
                        "key": "payout-INV-2026-0042",
                        "state": "answered",
                        "nothing_created": true,
                        "payment": null
                      },
                      "error": [],
                      "message": "operation was successful"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`data.code` `idempotency_key_invalid`: not 1–255 of letters, digits, `_`, `.`, `:`, `-`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "`data.code` `idempotency_key_not_found`: we have no request from you under this key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`data.code` `lookup_unavailable`: we couldn't check just now. Try again; this never means nothing happened.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean",
            "example": false
          },
          "data": {
            "type": "object",
            "description": "Often empty. On coded errors holds `code` and details.",
            "properties": {
              "code": {
                "type": "string",
                "example": "request_in_progress"
              }
            }
          },
          "error": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "message": {
            "type": "string",
            "description": "For people; don't parse."
          }
        }
      },
      "ValidationError422": {
        "type": "object",
        "description": "Validation failure (HTTP 422). Note: `status` is the string \"error\".",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "message": {
            "type": "string",
            "example": "Validation failed"
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "DocumentInput": {
        "type": "object",
        "description": "Identity document fields. Supported id_type values: passport, resident_id, drivers_license, national_id, voters_card, nin, bvn. For passport, resident_id, drivers_license, national_id, voters_card, and nin, provide at most front_doc as a base64-encoded image; back_doc is not required. These rules apply to each item in documents, to legacy document and additional_documents on create, and to each item in documents on update.",
        "properties": {
          "id_type": {
            "type": "string",
            "enum": [
              "passport",
              "resident_id",
              "drivers_license",
              "national_id",
              "voters_card",
              "nin",
              "bvn"
            ],
            "description": "Identity document type"
          },
          "id_number": {
            "type": "string",
            "description": "Document number"
          },
          "front_doc": {
            "type": "string",
            "description": "Base64-encoded image of the document front"
          },
          "back_doc": {
            "type": "string",
            "description": "Base64-encoded image of the document back (when applicable)"
          }
        }
      },
      "ProofOfFunds": {
        "type": "object",
        "description": "Proof-of-funds / source-of-wealth fields. Use allowed field values from Proof of funds options in the Customers guides.",
        "properties": {
          "employment_status": {
            "type": "string",
            "description": "Employment status code",
            "enum": [
              "employed",
              "homemaker",
              "retired",
              "self_employed",
              "student",
              "unemployed"
            ]
          },
          "occupation": {
            "type": "string",
            "description": "Occupation field value (SOC-style); see Proof of funds options guide",
            "enum": [
              "151252",
              "291141",
              "2912XX",
              "21109X",
              "151299",
              "434051",
              "1320XX",
              "131082",
              "151255",
              "273099",
              "119111",
              "231011",
              "232099",
              "119199",
              "131161",
              "112021",
              "17302X",
              "132011",
              "151211",
              "999999"
            ]
          },
          "primary_purpose": {
            "type": "string",
            "description": "Primary purpose code",
            "enum": [
              "charitable_donations",
              "ecommerce_retail_payments",
              "investment_purposes",
              "operating_a_company",
              "payments_to_friends_or_family_abroad",
              "personal_or_living_expenses",
              "protect_wealth",
              "purchase_goods_and_services",
              "receive_payment_for_freelancing"
            ]
          },
          "source_of_funds": {
            "type": "string",
            "description": "Source of funds code",
            "enum": [
              "company_funds",
              "gifts",
              "government_benefits",
              "inheritance",
              "pension_retirement",
              "salary",
              "sale_of_assets_real_estate",
              "savings"
            ]
          },
          "expected_monthly_pay": {
            "type": "string",
            "description": "Expected monthly payments / income band code",
            "enum": [
              "0_4999",
              "5000_9999"
            ]
          }
        }
      },
      "CustomerAddress": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "document": {
            "type": "string",
            "description": "Base64-encoded proof-of-address file (e.g. utility bill or bank statement image)"
          }
        }
      },
      "UpdateCustomerRequest": {
        "type": "object",
        "description": "Partial update payload. All properties are optional.",
        "properties": {
          "date_of_birth": {
            "type": "string",
            "format": "date",
            "description": "Date of birth (YYYY-MM-DD)"
          },
          "reference": {
            "type": "string",
            "description": "Set or change your own id for this customer. 1 to 64 characters: letters, digits, and `_ . : -`. Unique within your business.",
            "example": "CUST-10293"
          },
          "address": {
            "$ref": "#/components/schemas/CustomerAddress"
          },
          "first_name": {
            "type": "string",
            "description": "Customer first name"
          },
          "last_name": {
            "type": "string",
            "description": "Customer last name"
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number"
          },
          "gender": {
            "type": "string",
            "description": "Customer gender"
          },
          "country_code": {
            "type": "string",
            "description": "ISO country code"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentInput"
            },
            "description": "Identity documents to attach or replace (see DocumentInput)"
          },
          "proof_of_funds": {
            "$ref": "#/components/schemas/ProofOfFunds"
          }
        }
      },
      "CreateCustomerRequest": {
        "type": "object",
        "required": [
          "email",
          "first_name",
          "last_name",
          "phone",
          "date_of_birth",
          "country_code"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Customer email"
          },
          "reference": {
            "type": "string",
            "description": "Your own id for this customer. 1 to 64 characters: letters, digits, and `_ . : -`. Unique within your business. Once set, you can use it anywhere a customer id is accepted.",
            "example": "CUST-10293"
          },
          "first_name": {
            "type": "string",
            "description": "Customer first name"
          },
          "last_name": {
            "type": "string",
            "description": "Customer last name"
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number"
          },
          "date_of_birth": {
            "type": "string",
            "format": "date",
            "description": "Date of birth (YYYY-MM-DD)"
          },
          "gender": {
            "type": "string",
            "description": "Customer gender"
          },
          "country_code": {
            "type": "string",
            "description": "ISO country code"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentInput"
            },
            "description": "Identity documents (see DocumentInput). Preferred way to send one or more IDs on create."
          },
          "document": {
            "description": "Legacy single primary identity document. Same shape and id_type values as each item in documents. Prefer documents when starting new integrations.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentInput"
              }
            ]
          },
          "additional_documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentInput"
            },
            "description": "Legacy extra identity documents. Same id_type options and front/back rules as documents. The API merges these with documents server-side; prefer a single documents array when possible."
          },
          "address": {
            "$ref": "#/components/schemas/CustomerAddress"
          },
          "proof_of_funds": {
            "$ref": "#/components/schemas/ProofOfFunds"
          }
        }
      },
      "CreateUserVirtualAccountRequest": {
        "type": "object",
        "required": [
          "currency"
        ],
        "properties": {
          "customer_id": {
            "type": "string",
            "description": "Required unless you send `customer_reference`. Our customer id, or your own id for the customer. We look it up within your business: our id first, then a customer whose `reference` is this value. If neither matches and the request carries the customer's details (`customer_*` fields), the customer is created with this value as their `reference` (1 to 64 characters: letters, digits, and `_ . : -`). Without details, an unknown id answers `400` `customer was not found`.",
            "example": "CUST-10293"
          },
          "customer_reference": {
            "type": "string",
            "description": "Required unless you send `customer_id`. Your own id for the customer, by its explicit name. Works the same way as your id in `customer_id`, including creating a new customer from the `customer_*` fields. Send this or `customer_id`, not both.",
            "example": "CUST-10293"
          },
          "currency": {
            "type": "string",
            "description": "Account currency: `NGN` or `USD`."
          },
          "id_number": {
            "type": "string",
            "description": "The customer's BVN, for NGN accounts. In live it is required unless the customer already has a BVN on file, and it is verified before the account is opened. When sent for a new customer, `customer_date_of_birth` is not needed: it is taken from the BVN record.",
            "example": "22212345678"
          },
          "reference": {
            "type": "string",
            "description": "Optional. Your own reference for this account (a loan, an order). 1 to 64 characters: letters, digits, and `_ . : -`. Unique among your business's accounts. A customer can hold one account per reference; repeating the request with the same reference, customer and currency returns the same account. Reusing it for another customer or currency answers `400` `duplicate_reference`.",
            "example": "LOAN-2026-0042"
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "NGN: the older way to choose the bank: `090645` (Nombank) or `090449` (Rex). Prefer `bank`, or leave both out.",
            "example": [
              "090645"
            ]
          },
          "bank": {
            "type": "string",
            "enum": [
              "nombank",
              "rex",
              "paga"
            ],
            "description": "NGN. Leave out (recommended): the account opens at Nombank MFB, or at the next bank we offer your business (Rex Microfinance Bank, then Paga) when Nombank already holds two accounts for the customer's BVN or NIN. `nombank` allows Nombank only (`nomba_identity_limit` at the limit). `rex` opens at Rex Microfinance Bank (`090449`) only.",
            "example": "nombank"
          },
          "customer_name": {
            "type": "string",
            "description": "New customer: full name, split at the first space into first and last name. Required unless you send `customer_first_name` and `customer_last_name`.",
            "example": "Ada Obi"
          },
          "customer_first_name": {
            "type": "string",
            "description": "New customer: first name. Send with `customer_last_name`, or send `customer_name` instead.",
            "example": "Ada"
          },
          "customer_last_name": {
            "type": "string",
            "description": "New customer: last name. Send with `customer_first_name`, or send `customer_name` instead.",
            "example": "Obi"
          },
          "customer_email": {
            "type": "string",
            "format": "email",
            "description": "New customer: required. A valid email address, unique among your customers.",
            "example": "ada@example.com"
          },
          "customer_phone": {
            "type": "string",
            "description": "New customer: required.",
            "example": "08030000000"
          },
          "customer_country_code": {
            "type": "string",
            "description": "New customer: two-letter ISO country code. Defaults to `NG` for NGN; required otherwise.",
            "example": "NG"
          },
          "customer_date_of_birth": {
            "type": "string",
            "format": "date",
            "description": "New customer: `YYYY-MM-DD`. Required, except for NGN when you send `id_number` (BVN): the date of birth is then taken from the BVN record.",
            "example": "1990-04-12"
          },
          "customer_gender": {
            "type": "string",
            "description": "New customer: optional. `male` or `female`.",
            "enum": [
              "male",
              "female"
            ]
          }
        },
        "description": "Name the customer with `customer_id` or `customer_reference` (exactly one is required). The `customer_*` fields are read only when the customer does not exist yet."
      },
      "CreateDynamicVirtualAccountRequest": {
        "type": "object",
        "required": [
          "amount",
          "lifespan_minutes"
        ],
        "properties": {
          "customer_id": {
            "type": "string",
            "description": "Required unless you send `customer_reference`. Our customer id, or your own id for the customer. We look it up within your business: our id first, then a customer whose `reference` is this value. If neither matches and the request carries the customer's details (`customer_*` fields), the customer is created with this value as their `reference` (1 to 64 characters: letters, digits, and `_ . : -`). Without details, an unknown id answers `400` `customer was not found`.",
            "example": "CUST-10293"
          },
          "amount": {
            "type": "number",
            "description": "The amount to collect (NGN). Payments of another amount are still credited; compare `expected_amount` and `paid_amount` on `account.funded`."
          },
          "lifespan_minutes": {
            "type": "integer",
            "description": "How long the account stays open, in minutes (5 to 1440).",
            "minimum": 5,
            "maximum": 1440
          },
          "reference": {
            "type": "string",
            "description": "Your own reference for the order this account collects. 1 to 64 characters: letters, digits, and `_ . : -`. Unique among your business's one-time accounts. Returned as `order_reference` and sent as `reference` on `account.funded`.",
            "example": "ORDER-7781"
          },
          "order_reference": {
            "type": "string",
            "description": "Same as `reference`. Send one of them."
          },
          "customer_reference": {
            "type": "string",
            "description": "Required unless you send `customer_id`. Your own id for the customer, by its explicit name. Works the same way as your id in `customer_id`, including creating a new customer from the `customer_*` fields. Send this or `customer_id`, not both.",
            "example": "CUST-10293"
          },
          "customer_name": {
            "type": "string",
            "description": "New customer: full name, split at the first space into first and last name. Required unless you send `customer_first_name` and `customer_last_name`.",
            "example": "Ada Obi"
          },
          "customer_first_name": {
            "type": "string",
            "description": "New customer: first name. Send with `customer_last_name`, or send `customer_name` instead."
          },
          "customer_last_name": {
            "type": "string",
            "description": "New customer: last name. Send with `customer_first_name`, or send `customer_name` instead."
          },
          "customer_email": {
            "type": "string",
            "format": "email",
            "description": "New customer: required. A valid email address, unique among your customers.",
            "example": "ada@example.com"
          },
          "customer_phone": {
            "type": "string",
            "description": "New customer only. Required.",
            "example": "08030000000"
          },
          "customer_country_code": {
            "type": "string",
            "description": "New customer: two-letter ISO country code. Defaults to `NG`."
          },
          "customer_date_of_birth": {
            "type": "string",
            "format": "date",
            "description": "New customer: required. `YYYY-MM-DD`."
          },
          "customer_gender": {
            "type": "string",
            "description": "New customer: optional. `male` or `female`.",
            "enum": [
              "male",
              "female"
            ]
          },
          "bank": {
            "type": "string",
            "enum": [
              "nombank",
              "paga"
            ],
            "description": "Leave out (recommended): Nombank MFB, or Paga when Nombank already holds two accounts for the customer's BVN or NIN. `nombank` allows Nombank only. A Nombank account accepts exactly `amount` and stops at `expires_at`.",
            "example": "nombank"
          },
          "id_number": {
            "type": "string",
            "pattern": "^[0-9]{11}$",
            "description": "The customer's BVN, used for this account when none is on file (Nombank opens accounts only against a BVN or NIN). Must match the BVN verified for the customer, if any.",
            "example": "22212345678"
          }
        },
        "description": "Name the customer with `customer_id` or `customer_reference` (exactly one is required). The `customer_*` fields are read only when the customer does not exist yet."
      },
      "CreateVirtualAccountRequest": {
        "type": "object",
        "required": [
          "wallet_id"
        ],
        "properties": {
          "wallet_id": {
            "type": "string",
            "description": "Wallet ID for the account currency"
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional bank codes"
          }
        }
      },
      "CreateCardRequest": {
        "type": "object",
        "required": [
          "customer_id"
        ],
        "properties": {
          "customer_id": {
            "type": "string",
            "description": "Our customer id, or your own `reference` for the customer."
          },
          "currency": {
            "type": "string",
            "description": "Card currency"
          },
          "brand": {
            "type": "string",
            "description": "Card brand (e.g. mastercard)"
          },
          "amount": {
            "type": "integer",
            "description": "Initial funding amount"
          },
          "wallet_id": {
            "type": "string",
            "description": "Wallet ID to fund from"
          }
        }
      },
      "CardDepositRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "string",
            "description": "Amount to deposit"
          }
        }
      },
      "CardWithdrawRequest": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "Currency"
          },
          "amount": {
            "type": "integer",
            "description": "Amount to withdraw"
          }
        }
      },
      "SendPaymentRequest": {
        "type": "object",
        "required": [
          "from_amount",
          "from_wallet_id",
          "to_currency",
          "payment_method",
          "info"
        ],
        "properties": {
          "from_amount": {
            "type": "number",
            "minimum": 0.01,
            "description": "Amount to send (source currency)"
          },
          "from_wallet_id": {
            "type": "string",
            "description": "Wallet ID to debit from"
          },
          "to_currency": {
            "type": "string",
            "description": "Destination currency (e.g. NGN, USD)"
          },
          "payment_method": {
            "type": "string",
            "description": "One of: card, bank_transfer, mobile_money, wallet, tag_transfer, defi, revolut, paypal, cashapp, zelle, ussd"
          },
          "info": {
            "type": "object",
            "description": "Recipient details; required fields depend on payment_method (e.g. account_number, bank_code, account_name for bank_transfer; tag_id for tag_transfer)"
          },
          "is_save_to_beneficiary": {
            "type": "boolean",
            "description": "Save recipient as beneficiary"
          },
          "reference": {
            "type": "string",
            "description": "Your own unique id for this payment. A reference can be used once per business: resending one already used is refused with `data.code` `duplicate_reference` and nothing is sent. Use it to look the payment up with Verify Payment if the send times out.",
            "example": "INV-2026-0042"
          },
          "document": {
            "type": "string",
            "description": "Base64-encoded document (e.g. invoice)"
          },
          "payment_type": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "instant",
                  "scheduled",
                  "recurring"
                ]
              },
              "schedule_date": {
                "type": "string",
                "description": "ISO datetime for scheduled (e.g. 2006-01-02T15:04:05Z)"
              },
              "start_date": {
                "type": "string",
                "description": "For recurring: first run date"
              },
              "frequency": {
                "type": "string",
                "description": "For recurring: e.g. daily, weekly, monthly"
              },
              "end": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "description": "date or occurences"
                  },
                  "value": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "approver": {
            "type": "string",
            "description": "Account UID to notify for approval (non-owner)"
          }
        }
      },
      "VerifyPaymentRequest": {
        "type": "object",
        "required": [
          "reference"
        ],
        "properties": {
          "reference": {
            "type": "string",
            "description": "Any of: the `transaction_ref` returned by Send Payment, the `reference` you sent to Send Payment, a checkout id, the reference from a `checkout.paid` webhook, the `reference` you gave a one-time account for an order, or the `transaction_ref` of an `account.funded` webhook."
          }
        }
      },
      "CreateLinkRequest": {
        "type": "object",
        "required": [
          "title",
          "currency",
          "payment"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Link title"
          },
          "description": {
            "type": "string",
            "description": "Optional description"
          },
          "amount": {
            "type": "number",
            "description": "Fixed amount; required when customer.can_set_price is false"
          },
          "currency": {
            "type": "string",
            "description": "Currency code (e.g. NGN, USD)"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Optional expiry (ISO 8601)"
          },
          "customer": {
            "type": "object",
            "properties": {
              "can_set_price": {
                "type": "boolean",
                "description": "If true, payer can choose amount; then amount may be omitted"
              }
            }
          },
          "payment": {
            "type": "object",
            "required": [
              "payment_methods"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "description": "Max number of payments per link"
              },
              "payment_methods": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "value"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Payment method type (e.g. bank_transfer)"
                    },
                    "value": {
                      "type": "string",
                      "description": "Method-specific value (e.g. bank code)"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CreateInvoiceRequest": {
        "type": "object",
        "required": [
          "email",
          "items",
          "payment_schedule"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email of the user (customer) in the entity to invoice"
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "unit_price": {
                  "type": "number"
                },
                "quantity": {
                  "type": "integer"
                },
                "currency": {
                  "type": "string"
                },
                "total": {
                  "type": "number",
                  "description": "Usually unit_price * quantity"
                }
              }
            }
          },
          "charges": {
            "type": "object",
            "properties": {
              "discount": {
                "$ref": "#/components/schemas/InvoiceCharge"
              },
              "tax": {
                "$ref": "#/components/schemas/InvoiceCharge"
              },
              "fee": {
                "$ref": "#/components/schemas/InvoiceCharge"
              },
              "shipping": {
                "$ref": "#/components/schemas/InvoiceCharge"
              }
            }
          },
          "note": {
            "type": "string"
          },
          "payment_schedule": {
            "type": "object",
            "required": [
              "payment_methods"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "one_time",
                  "re_occurring"
                ],
                "description": "one_time or re_occurring"
              },
              "repeat": {
                "type": "integer",
                "description": "For re_occurring"
              },
              "interval": {
                "type": "string",
                "enum": [
                  "daily",
                  "weekly",
                  "monthly",
                  "yearly"
                ],
                "description": "For re_occurring"
              },
              "end": {
                "type": "string",
                "description": "End condition for re_occurring"
              },
              "send_date": {
                "type": "string",
                "format": "date-time"
              },
              "due_date": {
                "type": "string",
                "format": "date-time"
              },
              "payment_methods": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "e.g. bank_transfer"
                    },
                    "value": {
                      "type": "string",
                      "description": "e.g. bank code"
                    }
                  }
                }
              },
              "reminders": {
                "type": "boolean"
              },
              "reminder_timing": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "on_due_date",
                      "before_due_date",
                      "after_due_date"
                    ]
                  },
                  "days": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      },
      "InvoiceCharge": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "flat",
              "percentage"
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        }
      },
      "UpdateInvoiceStatusRequest": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "cancelled"
            ],
            "description": "New invoice status"
          }
        }
      },
      "Bill": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Bill ID.",
            "example": "8b8f0d0e-5d6c-4d8e-9d3c-0f4a1c3b2a10"
          },
          "reference": {
            "type": "string",
            "description": "Your reference, unique across your business.",
            "example": "order-1042"
          },
          "transaction_reference": {
            "type": "string",
            "description": "The wallet transaction's reference."
          },
          "product": {
            "type": "string",
            "example": "betting"
          },
          "biller": {
            "type": "string",
            "example": "bet9ja"
          },
          "customer_id": {
            "type": "string",
            "example": "Hassan3330"
          },
          "customer_name": {
            "type": "string",
            "description": "The name the biller holds for the account.",
            "example": "HASSANA SAIDU"
          },
          "amount": {
            "type": "number",
            "description": "NGN credited to the customer's betting wallet.",
            "example": 1000
          },
          "fee": {
            "type": "number",
            "description": "NGN charged to you on top of amount.",
            "example": 0
          },
          "currency": {
            "type": "string",
            "example": "NGN"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "success",
              "failed",
              "reversed"
            ]
          },
          "failure_reason": {
            "type": "string",
            "enum": [
              "insufficient_provider_balance",
              "provider_unavailable",
              "provider_rejected",
              "reversed"
            ]
          },
          "completed_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "LineItem": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "unit_amount",
          "partner_line_reference"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "unit_amount": {
            "type": "number",
            "description": "More than 0, at most two decimals."
          },
          "partner_line_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        }
      },
      "CreateCheckoutRequest": {
        "type": "object",
        "required": [
          "email",
          "amount",
          "currency"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Major units (naira, dollars). At most two decimals."
          },
          "currency": {
            "type": "string",
            "description": "Lowercase wallet currency, e.g. ngn, usd, gbp, eur, kes, ghs."
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "partner_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Your order id. Echoed on GET checkout and in checkout.paid."
          },
          "success_url": {
            "type": "string",
            "format": "uri",
            "description": "Absolute http(s) URL."
          },
          "cancel_url": {
            "type": "string",
            "format": "uri",
            "description": "Absolute http(s) URL."
          },
          "fee_bearer": {
            "type": "string",
            "enum": [
              "customer",
              "merchant"
            ],
            "default": "customer"
          },
          "line_items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "description": "quantity × unit_amount over all lines must equal amount."
          },
          "payment_options": {
            "type": "array",
            "deprecated": true,
            "description": "Ignored: every live method is offered.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "tag_transfer",
                    "bank_transfer",
                    "card",
                    "apple_pay",
                    "google_pay",
                    "opay",
                    "bank_account",
                    "ussd",
                    "mobile_money",
                    "crypto"
                  ]
                }
              }
            }
          }
        }
      },
      "Checkout": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Send the customer here."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "success"
            ]
          },
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string",
            "description": "Lowercase."
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "partner_reference": {
            "type": "string"
          },
          "line_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            }
          },
          "success_url": {
            "type": "string"
          },
          "cancel_url": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "description": "`api` for a sale made with an API key; `platform` for a dashboard self top-up."
          },
          "purpose": {
            "type": "string",
            "description": "`self_deposit` for a self top-up; absent for a sale."
          },
          "fee_bearer": {
            "type": "string",
            "enum": [
              "customer",
              "merchant"
            ]
          },
          "payment_options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "tag_transfer",
                    "bank_transfer",
                    "card",
                    "apple_pay",
                    "google_pay",
                    "opay",
                    "bank_account",
                    "ussd",
                    "mobile_money",
                    "crypto"
                  ]
                }
              }
            }
          },
          "paid_at": {
            "type": "string",
            "format": "date-time",
            "description": "Set when status is success."
          },
          "payment_reference": {
            "type": "string",
            "description": "Set when status is success."
          },
          "entity": {
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "VerifyPaymentResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Internal record id. You don't need it."
          },
          "ref": {
            "type": "string",
            "description": "Platnova's unique reference for the payment. For a payout, the `transaction_ref` Send Payment returned. Quote it to support."
          },
          "reference": {
            "type": "string",
            "description": "Payouts: the `reference` you sent to Send Payment. Customer payments into virtual accounts: your order's or account's reference. Empty if none, and for checkout payments.",
            "example": "INV-2026-0042"
          },
          "currency": {
            "type": "string",
            "description": "Uppercase."
          },
          "amount": {
            "type": "number",
            "description": "What you were credited (checkout) or sent (payout)."
          },
          "paid_amount": {
            "type": "number",
            "description": "Checkout and customer payments: what the payer sent."
          },
          "fee": {
            "type": "number"
          },
          "type": {
            "type": "string",
            "example": "receive_payment"
          },
          "status": {
            "type": "string",
            "example": "success",
            "description": "Only `success` means paid. `success`: paid, final. `failed`, `cancelled`, `reversed`: not paid, final; the money is back in your wallet. `pending`, `processing`, `pending_approval`, `under_review`: not final yet; check again later or wait for the webhook. Treat any value other than `success` as not paid. For a payout: a failed payout reads `cancelled` (amount and fee returned), and so does one reversed after it succeeded (amount returned, fee kept); `failed` is only a scheduled payout that found too little in the wallet when it was due, and nothing was debited."
          },
          "entry": {
            "type": "string",
            "enum": [
              "credit",
              "debit"
            ]
          },
          "message": {
            "type": "string"
          },
          "checkout_id": {
            "type": "string"
          },
          "payment_method": {
            "type": "string",
            "enum": [
              "tag_transfer",
              "bank_transfer",
              "card",
              "apple_pay",
              "google_pay",
              "opay",
              "bank_account",
              "ussd",
              "mobile_money",
              "crypto"
            ]
          },
          "customer_id": {
            "type": "string",
            "description": "Customer payments into virtual accounts: our customer id."
          },
          "customer_reference": {
            "type": "string",
            "description": "Customer payments: your own id for the customer, when set."
          },
          "expected_amount": {
            "type": "number",
            "description": "Order payments: the amount the order's account was opened for. Compare with `paid_amount`."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RefundDestination": {
        "type": "object",
        "properties": {
          "account_number": {
            "type": "string"
          },
          "bank_code": {
            "type": "string"
          },
          "account_name": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "CreateRefundRequest": {
        "type": "object",
        "required": [
          "reason",
          "idempotency_key"
        ],
        "properties": {
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Omit for the full refundable amount."
          },
          "reason": {
            "type": "string",
            "maxLength": 255
          },
          "idempotency_key": {
            "type": "string",
            "maxLength": 128
          },
          "destination": {
            "$ref": "#/components/schemas/RefundDestination"
          },
          "approver": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "properties": {
                "partner_line_reference": {
                  "type": "string"
                },
                "amount": {
                  "type": "number"
                }
              }
            }
          },
          "partner_reference": {
            "type": "string",
            "maxLength": 128
          }
        }
      },
      "Refund": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "checkout_id": {
            "type": "string"
          },
          "payment_reference": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "processing",
              "succeeded",
              "failed"
            ]
          },
          "reason": {
            "type": "string"
          },
          "failure_reason": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RefundDestination"
              },
              {
                "type": "null"
              }
            ]
          },
          "payout_reference": {
            "type": "string"
          },
          "provider_reference": {
            "type": "string"
          },
          "awaiting_approval": {
            "type": "boolean"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "partner_reference": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "PaymentByKeyResponse": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "answered",
              "in_progress",
              "no_answer"
            ],
            "description": "`answered`: the request finished; the same key and body return the same answer. `in_progress`: it may still be running; ask again shortly. `no_answer`: it stopped without an answer (our error, or a crash). The key will never run again."
          },
          "nothing_created": {
            "type": "boolean",
            "description": "`true` only when the request can no longer create anything and created nothing: you may send the payment again **under a new key**. `false` with `payment` null means we can't be sure yet; ask again later rather than paying twice."
          },
          "payment": {
            "type": [
              "object",
              "null"
            ],
            "description": "What the request created, or null.",
            "properties": {
              "type": {
                "type": "string",
                "description": "`transaction` for a payout or conversion; `recurring_payment`; card routes answer `card`, `customer_card` or `customer_transaction`."
              },
              "id": {
                "type": "string"
              },
              "ref": {
                "type": "string",
                "description": "For a payout, the `transaction_ref` Send Payment would have answered."
              },
              "status": {
                "type": "string",
                "description": "The payment's status **now**."
              },
              "amount": {
                "type": "string",
                "example": "5000.00"
              },
              "fee": {
                "type": "string",
                "example": "50.00"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "Customer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Platnova's id for the customer: the `customer_id` the other customer routes take."
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "dial_code": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string"
          },
          "meta": {
            "type": "object",
            "properties": {
              "date_of_birth": {
                "type": "string"
              },
              "employment_status": {
                "type": "string"
              },
              "expected_monthly_income": {
                "type": "string"
              },
              "primary_purpose": {
                "type": "string"
              },
              "source_of_funds": {
                "type": "string"
              },
              "most_recent_occupation": {
                "type": "string"
              },
              "document": {
                "type": "object",
                "properties": {
                  "docs": {
                    "nullable": true
                  },
                  "number": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "id_type": {
                    "type": "string"
                  },
                  "valid_until": {
                    "type": "string"
                  },
                  "provider": {
                    "type": "integer"
                  },
                  "additional": {
                    "nullable": true
                  },
                  "gender": {
                    "type": "string"
                  }
                }
              },
              "address": {
                "type": "object",
                "properties": {
                  "street": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "postal_code": {
                    "type": "string"
                  },
                  "document": {
                    "type": "object",
                    "properties": {
                      "id_type": {
                        "type": "string"
                      },
                      "issue_country": {
                        "type": "string"
                      },
                      "urls": {
                        "nullable": true
                      }
                    }
                  }
                }
              },
              "providers": {
                "nullable": true
              }
            }
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your own id for the customer; `null` if you set none."
          }
        }
      },
      "Wallet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The wallet's id: what Send Payment takes as `from_wallet_id`. A plain UUID, with no prefix."
          },
          "type": {
            "type": "string",
            "description": "The wallet's currency, lowercase.",
            "example": "ngn"
          },
          "amount": {
            "type": "string",
            "description": "The balance, as a decimal string.",
            "example": "150000.00"
          },
          "symbol": {
            "type": "string",
            "example": "₦"
          },
          "description": {
            "type": "string",
            "description": "The currency's name.",
            "example": "Nigerian Naira"
          },
          "country": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "NG"
              },
              "dial_code": {
                "type": "string"
              }
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          },
          "label": {
            "type": "string",
            "description": "A name you gave the wallet; may be empty."
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether this is a default wallet."
          }
        }
      },
      "BankStatus": {
        "type": "object",
        "description": "How transfers to one bank are going right now. Show `message` to your customer as it is; it never names a payment provider. A warning never blocks a payout: you decide whether to send.",
        "properties": {
          "bank_code": {
            "type": "string",
            "description": "The code you asked about",
            "example": "000015"
          },
          "bank_name": {
            "type": "string",
            "example": "Zenith Bank"
          },
          "level": {
            "type": "string",
            "enum": [
              "green",
              "amber",
              "red",
              "grey"
            ],
            "description": "green: transfers arrive as usual. amber: slow right now. red: having problems; a transfer may be delayed. grey: no recent transfer data."
          },
          "message": {
            "type": "string",
            "description": "One sentence for your customer",
            "example": "Zenith Bank is slow right now. Transfers are taking about 8 minutes."
          },
          "expected_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Typical arrival time in minutes; null for red and grey",
            "example": 8
          },
          "as_of": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this status was computed; null when we hold no data for the bank"
          }
        },
        "required": [
          "bank_code",
          "bank_name",
          "level",
          "message",
          "expected_minutes",
          "as_of"
        ]
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key for authentication."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid API key (`un-authorized access`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotActive": {
        "description": "The business is not live: `data.code` = `entity_not_active`, `data.missing` lists what is left.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "A request with the same Idempotency-Key is still running (`request_in_progress`). Retry after Retry-After.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Validation": {
        "description": "Validation failed, or Idempotency-Key reused for a different request.",
        "content": {
          "application/json": {
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ValidationError422"
                },
                {
                  "$ref": "#/components/schemas/Error"
                }
              ]
            }
          }
        }
      },
      "TooMany": {
        "description": "Rate limited.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/X-RateLimit-Limit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/X-RateLimit-Remaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/X-RateLimit-Reset"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "headers": {
      "X-RateLimit-Limit": {
        "description": "Requests allowed per minute on this route",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Requests left this minute",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset": {
        "description": "Unix time the window resets",
        "schema": {
          "type": "integer"
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string",
          "maxLength": 255,
          "pattern": "^[A-Za-z0-9_.:-]+$"
        },
        "description": "Makes a retry safe: the same key and body replays the first answer."
      }
    }
  },
  "tags": [
    {
      "name": "Customer",
      "description": "Create and manage customers"
    },
    {
      "name": "Virtual Account",
      "description": "Create and manage virtual accounts"
    },
    {
      "name": "Card",
      "description": "Create and manage cards"
    },
    {
      "name": "Wallet",
      "description": "List and manage wallets"
    },
    {
      "name": "Payment",
      "description": "Send and verify payments"
    },
    {
      "name": "Transaction",
      "description": "List transactions and generate receipts"
    },
    {
      "name": "Checkout",
      "description": "Create and retrieve checkout sessions"
    },
    {
      "name": "Payment Link",
      "description": "Create and manage payment links"
    },
    {
      "name": "Invoice",
      "description": "Create and manage invoices"
    },
    {
      "name": "Bank",
      "description": "Bank lists and account verification for bank transfers"
    },
    {
      "name": "Bills",
      "description": "Betting wallet top-ups"
    },
    {
      "name": "Refunds"
    }
  ]
}