{
  "openapi": "3.1.0",
  "info": {
    "title": "Hubtel v1 (all services, sandbox layout)",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://developers.hubtel.com/sandbox"
    }
  ],
  "paths": {
    "/v1/cs/commissionservices/{accountNumber}/3e0841e70afc42fb97d13d19abd36384": {
      "get": {
        "operationId": "lookUpMsisdnName",
        "summary": "Look up a phone number's registered name",
        "description": "Returns the name a Ghanaian phone number is registered to, through the commission services host. Use the returned name to confirm the recipient before submitting a top-up.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233501431586",
            "description": "The customer's phone number. Accepted formats: 0XXXXXXXXX / 233XXXXXXXXX E.g.: \"0249111411\" / \"233249111411\""
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "Message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "Label": {
                      "type": "string",
                      "description": "The description of the response"
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of verification result objects."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The detail of the response displayed E.g \"name\""
                    },
                    "Value": {
                      "type": "string",
                      "description": "The name registered on the SIM."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "A default decimal of 0.0 which is to be ignored."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Customer Details",
                      "Label": "Customer Details",
                      "Data": [
                        {
                          "Display": "name",
                          "Value": "JOHN DOE",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "verification",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/rnv/v2/merchantaccount/merchants/{accountNumber}/mobilemoney/verify": {
      "get": {
        "operationId": "verifyMobileMoneyWallet",
        "summary": "Look up a wallet's registered name",
        "description": "Returns whether a number is a registered mobile money wallet and the name it is registered to. Use it to confirm a recipient before a payout, or to reduce payment prompts to wrong numbers.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "vodafone-gh",
            "description": "The mobile money channel provider. Available channels are: mtn-gh vodafone-gh tigo-gh"
          },
          {
            "name": "customerMsisdn",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "0501431586",
            "description": "The customer’s mobile money number. Accepted formats: 0XXXXXXXXX / 233XXXXXXXXX E.g.: \"0249111411\" / \"233249111411\""
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "isRegistered": {
                          "type": "boolean",
                          "description": "States if a mobile wallet is registered."
                        },
                        "name": {
                          "type": "string",
                          "description": "Registered name on the mobile money account"
                        },
                        "status": {
                          "type": "string",
                          "description": "The status of a mobile wallet"
                        },
                        "profile": {
                          "type": "string",
                          "description": "This shows the profile of the number. E.g. 1. \"Subscriber\" means an individual 2. \"Agent\" means a mobile money vendor 3. \"Merchant\" means registered business."
                        }
                      },
                      "description": "An object containing the required data response from the Verification API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Success",
                      "responseCode": "0000",
                      "data": {
                        "isRegistered": true,
                        "name": "JOHN DOE",
                        "status": "active",
                        "profile": "Subscriber"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rnv.hubtel.com",
          "alias": "rnv",
          "service": "verification",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0000",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/rnv/v2/merchantaccount/merchants/{accountNumber}/ghanacard/verify": {
      "post": {
        "operationId": "verifyGhanaCard",
        "summary": "Validate a Ghana Card",
        "description": "Checks a Ghana Card number with the National Identification Authority and returns the holder's details when it matches. Use it to onboard customers for regulated products such as loans.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ghanaCardNumber": {
                    "type": "string",
                    "description": "The customer's Ghana Card number. The accepted format for the ghanacard same as printed on the card. E.g.: GHA-7XXXXXXXX-0"
                  },
                  "surname": {
                    "type": "string",
                    "description": "The surname of the customer as printed on the card."
                  },
                  "firstnames": {
                    "type": "string",
                    "description": "The first name(s) of the customer as printed on the card."
                  },
                  "gender": {
                    "type": "string",
                    "description": "Gender of customer."
                  },
                  "dateOfBirth": {
                    "type": "string",
                    "description": "Date of birth of the customer. Accepted format: dd/mm/yyyy"
                  }
                },
                "required": [
                  "ghanaCardNumber",
                  "surname",
                  "firstnames",
                  "gender",
                  "dateOfBirth"
                ]
              },
              "example": {
                "ghanaCardNumber": "GHA-000000000-0",
                "surname": "Doe",
                "firstnames": "John",
                "gender": "male",
                "dateOfBirth": "dd/mm/yyyy"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "isValid": {
                          "type": "boolean",
                          "description": "true or false. Can be true when all provided details match and can be false when some details do not match."
                        },
                        "score": {
                          "type": "string",
                          "description": "The match percentage between the provided names and the names on the customer's Ghana ID."
                        }
                      },
                      "description": "An object containing the required data response from the Verification API."
                    }
                  }
                },
                "examples": {
                  "sampleQueryResponse": {
                    "summary": "SAMPLE QUERY RESPONSE",
                    "value": {
                      "message": "Success",
                      "responseCode": "0000",
                      "data": {
                        "isValid": true,
                        "score": "100%"
                      }
                    }
                  },
                  "sampleQueryResponseNotFound": {
                    "summary": "SAMPLE QUERY RESPONSE (NOT FOUND)",
                    "value": {
                      "message": "Not found",
                      "responseCode": "3000",
                      "data": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rnv.hubtel.com",
          "alias": "rnv",
          "service": "verification",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/rnv/v2/merchantaccount/merchants/{accountNumber}/voteridcard/verify": {
      "post": {
        "operationId": "verifyVoterId",
        "summary": "Validate a Voter ID",
        "description": "Checks a Voter ID card number and returns the holder's details when it matches. Use it when your verification process requires Voter ID details.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "voterIdCardNumber": {
                    "type": "string",
                    "description": "The customer's Voter ID number. The accepted format for the Voter ID same as printed on the card. E.g.: 61610xxxx2"
                  },
                  "surname": {
                    "type": "string",
                    "description": "The surname of the customer as printed on the card."
                  },
                  "othernames": {
                    "type": "string",
                    "description": "The other name(s) of the customer as printed on the card."
                  },
                  "sex": {
                    "type": "string",
                    "description": "Gender of customer."
                  },
                  "dateOfBirth": {
                    "type": "string",
                    "description": "Date of birth of the customer. Accepted format: yyyy/mm/dd"
                  }
                },
                "required": [
                  "voterIdCardNumber",
                  "surname",
                  "othernames",
                  "sex",
                  "dateOfBirth"
                ]
              },
              "example": {
                "voterIdCardNumber": "0000000000",
                "surname": "Doe",
                "othernames": "John",
                "sex": "male",
                "dateOfBirth": "yyyy/mm/dd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "isValid": {
                          "type": "boolean",
                          "description": "true or false. Can be true when all provided details match and can be false when some details do not match."
                        },
                        "score": {
                          "type": "string",
                          "description": "The match percentage between the provided names and the names on the customer's Voter ID."
                        }
                      },
                      "description": "An object containing the required data response from the Verification API."
                    }
                  }
                },
                "examples": {
                  "sampleQueryResponse": {
                    "summary": "SAMPLE QUERY RESPONSE",
                    "value": {
                      "message": "Success",
                      "responseCode": "0000",
                      "data": {
                        "isValid": true,
                        "score": "100%"
                      }
                    }
                  },
                  "sampleQueryResponseNotFound": {
                    "summary": "SAMPLE QUERY RESPONSE (NOT FOUND)",
                    "value": {
                      "message": "Not found",
                      "responseCode": "3000",
                      "data": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rnv.hubtel.com",
          "alias": "rnv",
          "service": "verification",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/rnv/v2/merchantaccount/merchants/{accountNumber}/idcard/verify": {
      "get": {
        "operationId": "verifyIdWithConsent",
        "summary": "Verify an ID with customer consent",
        "description": "Verifies a Ghana Card or Voter ID through the mobile network (MTN) with the customer's consent by USSD. The customer approves sharing their details on their phone before the result is returned.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "idtype",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "ghanacard"
          },
          {
            "name": "idnumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233XXXXXXXXX",
            "description": "The customer's MTN number. Accepted formats: 233XXXXXXXXX and 0XXXXXXXXX"
          },
          {
            "name": "network",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "MTN"
          },
          {
            "name": "consentType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "ussd",
            "description": "The preferred consent type. Options include: 1. sms 2. ussd"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Registered name on the Ghana Card."
                        },
                        "dateOfBirth": {
                          "type": "string",
                          "description": "Date of birth of the Cardholder."
                        },
                        "gender": {
                          "type": "string",
                          "description": "Gender of Cardholder."
                        },
                        "nationalId": {
                          "type": "string",
                          "description": "Ghana Card Identification number."
                        }
                      },
                      "description": "An object containing the required data response from the Verification API."
                    }
                  }
                },
                "examples": {
                  "sampleQueryResponse": {
                    "summary": "SAMPLE QUERY RESPONSE",
                    "value": {
                      "message": "Success",
                      "responseCode": "0000",
                      "data": {
                        "name": "JOHN DONATUS MILLS",
                        "dateOfBirth": "1984 June 23",
                        "gender": "MALE",
                        "nationalId": "GHA-000000000-0"
                      }
                    }
                  },
                  "sampleQueryResponseNotFound": {
                    "summary": "SAMPLE QUERY RESPONSE (NOT FOUND)",
                    "value": {
                      "message": "Not found",
                      "responseCode": "3000",
                      "data": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rnv.hubtel.com",
          "alias": "rnv",
          "service": "verification",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/rnv/v2/merchantaccount/merchants/{accountNumber}/bank/verify/{bankCode}/{accountNumber2}": {
      "get": {
        "operationId": "verifyBankAccount",
        "summary": "Look up a bank account name",
        "description": "Returns the account holder's name for a bank code and account number. Compare it with the name your customer gave you before paying out.",
        "tags": [
          "Verification"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "bankCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "300302",
                "300303",
                "300304",
                "300305",
                "300306",
                "300307",
                "300309",
                "300310",
                "300311",
                "300312",
                "300313",
                "300316",
                "300317",
                "300318",
                "300319",
                "300320",
                "300322",
                "300323",
                "300324",
                "300325",
                "300329",
                "300331",
                "300334",
                "300362"
              ]
            },
            "description": "The recipient bank's GhIPSS code, for example `300304` for GCB Bank or `300312` for Ecobank. See the [full list of bank codes](/docs/guides/payouts#bank-codes)."
          },
          {
            "name": "accountNumber2",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Registered name of the Bank Account."
                        }
                      },
                      "description": "An object containing the required data response from the Verification API."
                    }
                  }
                },
                "examples": {
                  "sampleSuccessfulQueryResponse": {
                    "summary": "SAMPLE SUCCESSFUL QUERY RESPONSE",
                    "value": {
                      "message": "Success",
                      "responseCode": "0000",
                      "data": {
                        "name": "JOHN DOE"
                      }
                    }
                  },
                  "sampleFailedQueryResponse": {
                    "summary": "SAMPLE FAILED QUERY RESPONSE",
                    "value": {
                      "message": "We're sorry, we could not verify this account. Do you want to save anyway?",
                      "responseCode": "2001",
                      "data": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rnv.hubtel.com",
          "alias": "rnv",
          "service": "verification",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [
            "0000",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/1.verification.md"
          ]
        }
      }
    },
    "/v1/refund-api/refund/{accountNumber}/order/{transactionId}": {
      "post": {
        "operationId": "refundTransaction",
        "summary": "Refund a payment",
        "description": "Refunds a completed mobile money payment in full, within 45 days. The refund is processed asynchronously and the result is POSTed to `callbackUrl`.",
        "tags": [
          "Refunds"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "callbackUrl": {
                    "type": "string",
                    "description": "The callback URL to receive the final notification on the status of the payment"
                  },
                  "OrderID": {
                    "type": "string",
                    "description": "This is the OrderID from Hubtel for the payment which was processed. Eg. b230733cd56b4a0fad820e39f66bc27c"
                  }
                },
                "required": [
                  "OrderID",
                  "callbackUrl"
                ]
              },
              "example": {
                "callbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "orderId": {
                          "type": "string",
                          "description": "The Hubtel OrderId for the processed payment."
                        }
                      },
                      "description": "Details of the transaction being checked."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Transaction pending. Expect callback request for final state.",
                      "responseCode": "0001",
                      "data": {
                        "orderId": "b230733cd56b4a0fad820e39f66bc27c"
                      }
                    }
                  },
                  "notFound": {
                    "summary": "SAMPLE RESPONSE(Not Found)",
                    "value": {
                      "message": "Could not find order with ID 847ad350142a4970ac365d2294d3f3a5",
                      "responseCode": "3000",
                      "data": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "responseCode": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "data": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "charges": {
                                "type": "number"
                              },
                              "orderId": {
                                "type": "string"
                              },
                              "externalTransactionId": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "responseCode": "0000",
                            "message": "Successful",
                            "data": {
                              "amount": 0.5,
                              "charges": 0.01,
                              "orderId": "a4e406711db74687bbd307ead23bd015",
                              "externalTransactionId": "0000002673867446"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "refund-api.hubtel.com",
          "alias": "refund-api",
          "service": "refunds",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/2.refund_api.md"
          ]
        }
      }
    },
    "/v1/trnf/api/inter-transfers/{accountNumber}": {
      "get": {
        "operationId": "getCollectionBalance",
        "summary": "Get your collection balance",
        "description": "Returns the available balance of your collection (POS sales) account, which holds customer payments before settlement or transfer to your disbursement account.",
        "tags": [
          "Balance & Transfers"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The balance of the account queried"
                        }
                      },
                      "description": "An object containing the required data response from the Collection Account Balance Query API."
                    }
                  }
                },
                "examples": {
                  "sampleServerResponse": {
                    "summary": "SAMPLE SERVER RESPONSE",
                    "value": {
                      "responseCode": "0000",
                      "message": "Success",
                      "data": {
                        "amount": 123.5
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "trnf.hubtel.com",
          "alias": "trnf",
          "service": "balance-transfers",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/3.balance_query_transfers.md"
          ]
        }
      },
      "post": {
        "operationId": "transferBalance",
        "summary": "Move money between your accounts",
        "description": "Transfers funds from your collection account to your disbursement account so you can pay out. The result arrives at your callback URL. If the callback does not arrive, use **Get a transfer's status**.",
        "tags": [
          "Balance & Transfers"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Description": {
                    "type": "string",
                    "description": "A brief description of the transaction."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The amount to be sent from the account specified e.g. 0.50"
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference provided by the API user, and must be unique and preferably be alphanumeric characters. Maximum length is 36 characters"
                  },
                  "DestinationAccountNumber": {
                    "type": "string"
                  },
                  "PrimaryCallbackUrl": {
                    "type": "string",
                    "description": "URL used to receive callback payload of Balance Transfer transactions from Hubtel."
                  }
                },
                "required": [
                  "Description",
                  "Amount",
                  "ClientReference",
                  "PrimaryCallbackUrl"
                ]
              },
              "example": {
                "Description": "Hubtel Transfer Test",
                "Amount": 0.8,
                "ClientReference": "bd0io3202ef49",
                "DestinationAccountNumber": "11691",
                "PrimaryCallbackUrl": "https://webhook.site/b513d1a9-e7826-a6ede"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "clientReference": {
                          "type": "string",
                          "description": "The reference provided by the API user"
                        },
                        "description": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "number",
                          "description": "The amount sent from the account specified"
                        },
                        "charges": {
                          "type": "number",
                          "description": "The amount charged. There is no charge. It is free"
                        },
                        "meta": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Usually null."
                        },
                        "recipientName": {
                          "type": "string",
                          "description": "The name on the merchant account"
                        }
                      },
                      "description": "The balance transfer response data."
                    }
                  }
                },
                "examples": {
                  "sampleServerResponse": {
                    "summary": "SAMPLE SERVER RESPONSE",
                    "value": {
                      "responseCode": "0001",
                      "message": "Pending",
                      "data": {
                        "clientReference": "bd0i03202ef49",
                        "description": "Your request has been accepted. We'll notify you when the transaction is completed.",
                        "amount": 0.8,
                        "charges": 0,
                        "meta": null,
                        "recipientName": "gershon"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/PrimaryCallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Message": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "number"
                              },
                              "Charges": {},
                              "Meta": {},
                              "RecipientName": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "sampleBalanceTransferCallback": {
                          "summary": "SAMPLE BALANCE TRANSFER CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Message": "Success",
                            "Data": {
                              "ClientReference": "b03202ef49",
                              "Description": "Hubtel Transfer Test",
                              "Amount": 0.8,
                              "Charges": null,
                              "Meta": null,
                              "RecipientName": "gershon"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "trnf.hubtel.com",
          "alias": "trnf",
          "service": "balance-transfers",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/3.balance_query_transfers.md"
          ]
        }
      }
    },
    "/v1/trnf/api/inter-transfers/prepaid/{accountNumber}": {
      "get": {
        "operationId": "getDisbursementBalance",
        "summary": "Get your disbursement balance",
        "description": "Returns the available balance of your disbursement (prepaid) account, which funds payouts.",
        "tags": [
          "Balance & Transfers"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the request"
                    },
                    "message": {
                      "type": "string",
                      "description": "The status of the request"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The balance of the account queried"
                        }
                      },
                      "description": "An object containing the required data response from the Disbursement Account Balance Query API."
                    }
                  }
                },
                "examples": {
                  "sampleServerResponse": {
                    "summary": "SAMPLE SERVER RESPONSE",
                    "value": {
                      "responseCode": "0000",
                      "message": "Success",
                      "data": {
                        "amount": 11.5
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "trnf.hubtel.com",
          "alias": "trnf",
          "service": "balance-transfers",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/3.balance_query_transfers.md"
          ]
        }
      }
    },
    "/v1/trnf/api/inter-transfers/status/{accountNumber}": {
      "get": {
        "operationId": "getTransferStatus",
        "summary": "Get a transfer's status",
        "description": "Returns the status of a balance transfer by `clientReference`. Use it when a transfer callback hasn't arrived, before retrying with a new reference.",
        "tags": [
          "Balance & Transfers"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "clientReference",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "76576343905406557",
            "description": "The client reference of the transaction specified in the request payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the API that is related to the ResponseCode."
                    },
                    "code": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The unique ID used to identify a Hubtel transaction (from Hubtel)."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Date of the transaction."
                        },
                        "updatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Date the transaction was updated. Default value: null."
                        },
                        "transferDescription": {
                          "type": "string",
                          "description": "The initial description passed."
                        },
                        "transferAmount": {
                          "type": "number",
                          "description": "Amount transferred."
                        },
                        "clientReference": {
                          "type": "string",
                          "description": "The reference ID that is initially provided by the client/API user in the request payload (from merchant)."
                        },
                        "callbackUrl": {
                          "type": "string",
                          "description": "The initial callbackUrl passed."
                        },
                        "fromAccountType": {
                          "type": "string",
                          "description": "The originating account for the transfer."
                        },
                        "fromAccountId": {
                          "type": "string",
                          "description": "The originating collection account number."
                        },
                        "toAccountType": {
                          "type": "string",
                          "description": "The destination account for the transfer."
                        },
                        "toAccountId": {
                          "type": "string",
                          "description": "The destination disbursement account number."
                        },
                        "fromBusinessId": {
                          "type": "string",
                          "description": "The business ID of the merchant."
                        },
                        "toBusinessId": {
                          "type": "string",
                          "description": "The business ID of the merchant."
                        },
                        "status": {
                          "type": "string",
                          "description": "Status of the transaction i.e.: success or failed."
                        },
                        "failureReason": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Reason for the transfer failure; could be null."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The response code of the API after the request."
                    }
                  }
                },
                "examples": {
                  "successful": {
                    "summary": "SAMPLE RESPONSE (Successful)",
                    "value": {
                      "message": "success",
                      "code": "200",
                      "data": {
                        "id": "bfe03a54f40e4f91ae8d1977f2250d39",
                        "createdAt": "2024-07-03T16:48:49.1073714+00:00",
                        "updatedAt": null,
                        "transferDescription": "InterFineractTransfer",
                        "transferAmount": 1,
                        "clientReference": "76576343905406557",
                        "callbackUrl": "https://webhook.site/3ae16425-b322-4e8e-ab52-c97bcd3c9ec1",
                        "fromAccountType": "receivemoney",
                        "fromAccountId": "11684",
                        "toAccountType": "sendmoney",
                        "toAccountId": "11691",
                        "fromBusinessId": "gershon",
                        "toBusinessId": "gershon",
                        "status": "success",
                        "failureReason": null
                      }
                    }
                  },
                  "failed": {
                    "summary": "SAMPLE RESPONSE (Failed)",
                    "value": {
                      "message": "success",
                      "code": "200",
                      "data": {
                        "id": "6f1a85eaf32149438d14e7d49ad8d69c",
                        "createdAt": "2024-07-03T16:52:58.196586+00:00",
                        "updatedAt": null,
                        "transferDescription": "InterFineractTransfer",
                        "transferAmount": 1000,
                        "clientReference": "926943563465346376",
                        "callbackUrl": "https://webhook.site/3ae16425-b322-4e8e-ab52-c97bcd3c9ec1",
                        "fromAccountType": "receivemoney",
                        "fromAccountId": "11684",
                        "toAccountType": "sendmoney",
                        "toAccountId": "11691",
                        "fromBusinessId": "gershon",
                        "toBusinessId": "gershon",
                        "status": "failed",
                        "failureReason": "Low balance"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "trnf.hubtel.com",
          "alias": "trnf",
          "service": "balance-transfers",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/complementary_apis/3.balance_query_transfers.md"
          ]
        }
      }
    },
    "/v1/sms/v1/messages/send": {
      "get": {
        "operationId": "sendSmsQuick",
        "summary": "Send an SMS with a GET request",
        "description": "Sends one SMS with credentials and content in the query string. Prefer **Send an SMS** (POST): query strings may be recorded in server logs and expose your client secret.",
        "tags": [
          "SMS"
        ],
        "parameters": [
          {
            "name": "clientsecret",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "sgrorne",
            "description": "The client secret used to authenticate SMS requests. See [API keys and authentication](/docs/get-started/keys)."
          },
          {
            "name": "clientid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "qoohqvcp",
            "description": "The client ID used to authenticate SMS requests. See [API keys and authentication](/docs/get-started/keys)."
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Abrantie",
            "description": "Sender ID or Name recipients will see. Maximum characters for this value is 11."
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233546335113",
            "description": "Mobile number of recipient."
          },
          {
            "name": "content",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "GoTesting",
            "description": "Content of the simple message"
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0`, `1`, `2`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rate": {
                      "type": "number",
                      "description": "Cost per SMS."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of messages"
                    },
                    "status": {
                      "type": "integer",
                      "description": "The request status code."
                    },
                    "networkId": {
                      "type": "string",
                      "description": "networkId of message"
                    },
                    "clientReference": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The client reference for the message. Can be null."
                    },
                    "statusDescription": {
                      "type": "string",
                      "description": "Brief description of request status"
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "rate": 0.0309,
                      "messageId": "9c5f3edc-529e-4182-959b-aeb17b9ddad4",
                      "status": 0,
                      "networkId": "62001",
                      "clientReference": null,
                      "statusDescription": "request submitted successfully"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [
            "0",
            "1",
            "2"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      },
      "post": {
        "operationId": "sendSms",
        "summary": "Send an SMS",
        "description": "Sends one SMS from an approved sender ID. The response includes a `messageId`; delivery is reported to your callback and via **Get a message**. Sender IDs are approved per business; in test mode any sender ID works.",
        "tags": [
          "SMS"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "From": {
                    "type": "string",
                    "description": "SenderId or Name recipients will see. Maximum characters for this value is 11."
                  },
                  "To": {
                    "type": "string",
                    "description": "Mobile number of recipient."
                  },
                  "Content": {
                    "type": "string",
                    "description": "Content of the message."
                  }
                },
                "required": [
                  "From",
                  "To",
                  "Content"
                ]
              },
              "example": {
                "From": "AbrantieLai",
                "To": "233546335113",
                "Content": "This is a test. Kindly ignore."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0`, `1`, `2`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rate": {
                      "type": "number",
                      "description": "Cost per SMS."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of messages"
                    },
                    "status": {
                      "type": "integer",
                      "description": "The request status code."
                    },
                    "networkId": {
                      "type": "string",
                      "description": "networkId of message"
                    },
                    "clientReference": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The client reference for the message. Can be null."
                    },
                    "statusDescription": {
                      "type": "string",
                      "description": "Brief description of request status"
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "rate": 0.0246,
                      "messageId": "fab43849-6c5b-4334-a88b-d06520b1ace8",
                      "status": 0,
                      "networkId": "62002",
                      "clientReference": null,
                      "statusDescription": "request submitted successfully"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [
            "0",
            "1",
            "2"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      }
    },
    "/v1/sms/v1/messages/batch/simple/send": {
      "post": {
        "operationId": "sendSmsBatch",
        "summary": "Send the same SMS to many recipients",
        "description": "Sends one message to a list of recipients and returns a `batchId` plus a `messageId` per recipient.",
        "tags": [
          "SMS"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "From": {
                    "type": "string",
                    "description": "SenderId or Name recipients will see. Maximum characters for this value is 11."
                  },
                  "Recipients": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "MSISDNs to receive of message"
                  },
                  "Content": {
                    "type": "string",
                    "description": "Content of the simple message"
                  }
                },
                "required": [
                  "From",
                  "Recipients",
                  "Content"
                ]
              },
              "example": {
                "From": "AbrantieLai",
                "Recipients": [
                  "233546335113",
                  "233501431586"
                ],
                "Content": "Welcome to the first ever bulk SMS via API in Ghana"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batchId": {
                      "type": "string",
                      "description": "The ID of the batch of messages"
                    },
                    "status": {
                      "type": "integer",
                      "description": "Status code of the request returned by SMS API"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "recipient": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          },
                          "messageId": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "Contains nested objects."
                    },
                    "recipient": {
                      "type": "string",
                      "description": "MSISDNs to receive message"
                    },
                    "content": {
                      "type": "string",
                      "description": "Content of the simple message"
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of message"
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "batchId": "165949ee-431b-4bf8-9eca-108058a8bc32",
                      "status": 0,
                      "data": [
                        {
                          "recipient": "233546335113",
                          "content": "Welcome to the first ever bulk SMS via API in Ghana",
                          "messageId": "e80133f9-e822-457c-98fb-d217bc4a1f83"
                        },
                        {
                          "recipient": "233501431586",
                          "content": "Welcome to the first ever bulk SMS via API in Ghana",
                          "messageId": "ebc7948a-7c81-4396-9104-9c99fc921069"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      }
    },
    "/v1/sms/v1/messages/batch/personalized/send": {
      "post": {
        "operationId": "sendSmsPersonalized",
        "summary": "Send a different SMS to each recipient",
        "description": "Sends a different message to each recipient in one request, for example with each customer's name or balance. Returns a `batchId` and a `messageId` per recipient for delivery tracking.",
        "tags": [
          "SMS"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "From": {
                    "type": "string",
                    "description": "SenderId or Name recipients will see. Maximum characters for this value is 11."
                  },
                  "personalizedRecipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "To": {
                          "type": "string"
                        },
                        "Content": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Contains the recipients and message content."
                  },
                  "To": {
                    "type": "string",
                    "description": "MSISDNs to receive message"
                  },
                  "Content": {
                    "type": "string",
                    "description": "Content of the simple message"
                  }
                },
                "required": [
                  "From",
                  "personalizedRecipients",
                  "To",
                  "Content"
                ]
              },
              "example": {
                "From": "AbrantieCo",
                "personalizedRecipients": [
                  {
                    "To": "233501431586",
                    "Content": "Hi Pheezy, thank you for all you do for this business"
                  },
                  {
                    "To": "233501431586",
                    "Content": "Hi Joe, thank you for all you do for this business"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batchId": {
                      "type": "string",
                      "description": "The ID of the batch of messages"
                    },
                    "status": {
                      "type": "integer",
                      "description": "Status code of the request returned by SMS API"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "recipient": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          },
                          "messageId": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "Contains nested objects."
                    },
                    "recipient": {
                      "type": "string",
                      "description": "MSISDNs to receive message"
                    },
                    "content": {
                      "type": "string",
                      "description": "Content of the simple message"
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of message"
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "batchId": "18ee6a2a-29ac-41c6-b70f-de809b040584",
                      "status": 0,
                      "data": [
                        {
                          "recipient": "233501431586",
                          "content": "Hi Pheezy, thank you for all you do for this business",
                          "messageId": "350fd34d-dce1-4694-a4c9-d9b97d1f4593"
                        },
                        {
                          "recipient": "233546335113",
                          "content": "Hi Joe, thank you for all you do for this business",
                          "messageId": "f58e7f2a-203a-4079-a518-7f6647099b5e"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      }
    },
    "/v1/sms/v1/messages/{messageId}": {
      "get": {
        "operationId": "getMessage",
        "summary": "Get a message",
        "description": "Returns a message's delivery status: `delivered`, `undelivered`, `rejected` or `expired`.",
        "tags": [
          "SMS"
        ],
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rate": {
                      "type": "number",
                      "description": "Cost per SMS."
                    },
                    "batchId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Unique identifier of batch message."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of individual message."
                    },
                    "content": {
                      "type": "string",
                      "description": "Content of the simple message."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current status of message based on DeliveryReceipt (DLR) by Telco."
                    },
                    "updateTime": {
                      "type": "string",
                      "format": "date-time",
                      "description": "DLR update time."
                    },
                    "time": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The time SMS was sent."
                    },
                    "to": {
                      "type": "string",
                      "description": "MSISDN to receive message."
                    },
                    "from": {
                      "type": "string",
                      "description": "SenderId or name recipient will see."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "rate": 0.0309,
                      "batchId": null,
                      "messageId": "eadbfcd0-94d1-438f-ad32-0013f34042c2",
                      "content": "The Job is the JOB",
                      "status": "Delivered",
                      "updateTime": "2023-05-30T16:43:15",
                      "time": "2023-05-30T16:43:13.7208383Z",
                      "to": "233546335113",
                      "from": "AbrantieCo"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      }
    },
    "/v1/sms/v1/messages/batch/{messageId}": {
      "get": {
        "operationId": "getMessageBatch",
        "summary": "Get a batch",
        "description": "Returns the delivery status of every message in a batch. Use callback delivery updates to reduce repeated status requests.",
        "tags": [
          "SMS"
        ],
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batchId": {
                      "type": "string",
                      "description": "Unique identifier of batch message."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rate": {
                            "type": "number"
                          },
                          "messageId": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "updateTime": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "time": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "to": {
                            "type": "string"
                          },
                          "from": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "Contains nested objects."
                    },
                    "rate": {
                      "type": "number",
                      "description": "Cost per SMS."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Unique identifier of individual message."
                    },
                    "content": {
                      "type": "string",
                      "description": "Content of the simple message."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current status of message based on DeliveryReceipt (DLR) by Telco."
                    },
                    "updateTime": {
                      "type": "string",
                      "description": "DLR update time."
                    },
                    "time": {
                      "type": "string",
                      "description": "The time SMS was sent."
                    },
                    "to": {
                      "type": "string",
                      "description": "MSISDN to receive message."
                    },
                    "from": {
                      "type": "string",
                      "description": "SenderId or name recipient will see."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "batchId": "eadbfcd0-94d1-438f-ad32-0013f34042c2",
                      "data": [
                        {
                          "rate": 0.0309,
                          "messageId": "f58e7f2a-203a-4079-a518-7f6647099b5e",
                          "content": "Hi Joe, thank you for all you do for this business",
                          "status": "Delivered",
                          "updateTime": "2023-03-21T12:54:43",
                          "time": "2023-03-21T12:50:27.893495Z",
                          "to": "233546335113",
                          "from": "AbrantieCo"
                        },
                        {
                          "rate": 0.0309,
                          "messageId": "350fd34d-dce1-4694-a4c9-d9b97d1f4593",
                          "content": "Hi Pheezy, thank you for all you do for this business",
                          "status": "Delivered",
                          "updateTime": "2023-03-21T12:50:34",
                          "time": "2023-03-21T12:50:27.893495Z",
                          "to": "233501431586",
                          "from": "AbrantieCo"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "sms.hubtel.com",
          "alias": "sms",
          "service": "sms",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/notification_apis/1.sms.md",
            "business/api_documentation/lending_apis/10.sms.md"
          ]
        }
      }
    },
    "/v1/payproxyapi/items/initiate": {
      "post": {
        "operationId": "initiateCheckout",
        "summary": "Create a checkout",
        "description": "Creates a hosted checkout and returns a `checkoutUrl` to redirect your customer to, plus a `checkoutDirectUrl` for embedding. The customer chooses mobile money, card or Hubtel wallet on Hubtel's page. The final result arrives at `callbackUrl`; never fulfil an order from the `returnUrl` redirect alone.",
        "tags": [
          "Online Checkout"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "totalAmount": {
                    "type": "number",
                    "description": "The total payment amount, with at most 2 decimal places, for example 0.50."
                  },
                  "description": {
                    "type": "string",
                    "description": "A brief description of the item. Special characters are not accepted."
                  },
                  "callbackUrl": {
                    "type": "string",
                    "description": "The callback URL expected to receive the final status of the payment."
                  },
                  "returnUrl": {
                    "type": "string",
                    "description": "The merchant website URL where the customer should be redirected to after payment."
                  },
                  "merchantAccountNumber": {
                    "type": "string"
                  },
                  "cancellationUrl": {
                    "type": "string",
                    "description": "The merchant website URL where the customer should be redirected to after cancellation."
                  },
                  "clientReference": {
                    "type": "string",
                    "description": "A unique string identifying the transaction. Useful for reference purposes. It cannot be empty but must have a maximum of 32 characters."
                  },
                  "payeeName": {
                    "type": "string",
                    "description": "The payee’s name."
                  },
                  "payeeMobileNumber": {
                    "type": "string",
                    "description": "The payee’s mobile number."
                  },
                  "payeeEmail": {
                    "type": "string",
                    "description": "The payee’s email address."
                  }
                },
                "required": [
                  "totalAmount",
                  "description",
                  "callbackUrl",
                  "returnUrl",
                  "cancellationUrl",
                  "clientReference"
                ]
              },
              "example": {
                "totalAmount": 100,
                "description": "Book Shop Checkout",
                "callbackUrl": "https://webhook.site/8b4bbd0a-5f98-4b3d-abbe-b9b49767f7d5",
                "returnUrl": "http://hubtel.com/online",
                "merchantAccountNumber": "11684",
                "cancellationUrl": "http://hubtel.com/online",
                "clientReference": "inv0012"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `4000`, `4101`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "checkoutUrl": {
                          "type": "string",
                          "description": "Redirect the customer to this URL to complete payment."
                        },
                        "checkoutId": {
                          "type": "string",
                          "description": "Unique hubtel reference for the transaction."
                        },
                        "clientReference": {
                          "type": "string",
                          "description": "The unique transaction reference supplied in the request."
                        },
                        "message": {
                          "type": "string"
                        },
                        "checkoutDirectUrl": {
                          "type": "string",
                          "description": "The URL for displaying checkout within the page that initiated the payment."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "responseCode": "0000",
                      "status": "Success",
                      "data": {
                        "checkoutUrl": "https://pay.hubtel.com/7569a11e8b784f21baa9443b3fce31ed",
                        "checkoutId": "7569a11e8b784f21baa9443b3fce31ed",
                        "clientReference": "inv0012",
                        "message": "",
                        "checkoutDirectUrl": "https://pay.hubtel.com/7569a11e8b784f21baa9443b3fce31ed/direct"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Status": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "CheckoutId": {
                                "type": "string"
                              },
                              "SalesInvoiceId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Status": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "number"
                              },
                              "CustomerPhoneNumber": {
                                "type": "string"
                              },
                              "PaymentDetails": {
                                "type": "object",
                                "properties": {
                                  "MobileMoneyNumber": {
                                    "type": "string"
                                  },
                                  "PaymentType": {
                                    "type": "string"
                                  },
                                  "Channel": {
                                    "type": "string"
                                  }
                                }
                              },
                              "Description": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Status": "Success",
                            "Data": {
                              "CheckoutId": "59e2fbbff4e443b98e09346881ac7e9a",
                              "SalesInvoiceId": "e96ccfb4746045bba13f425bd573a31c",
                              "ClientReference": "Kaks545253",
                              "Status": "Success",
                              "Amount": 0.5,
                              "CustomerPhoneNumber": "233242825109",
                              "PaymentDetails": {
                                "MobileMoneyNumber": "233242825109",
                                "PaymentType": "mobilemoney",
                                "Channel": "mtn-gh"
                              },
                              "Description": "The MTN Mobile Money payment has been approved and processed successfully."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "payproxyapi.hubtel.com",
          "alias": "payproxyapi",
          "service": "online-checkout",
          "review": "curated",
          "simulated": true,
          "allowlist": false,
          "responseCodes": [
            "0000",
            "4000",
            "4101"
          ],
          "idempotency": "clientReference must be unique per checkout (maximum 32 characters).",
          "legacySources": [
            "business/api_documentation/payment_apis/1.online_checkout.md"
          ]
        }
      }
    },
    "/v1/api-txnstatus/transactions/{accountNumber}/status": {
      "get": {
        "operationId": "getTransactionStatus",
        "summary": "Check a collection's status",
        "description": "Returns the current status (`Paid`, `Unpaid` or `Refunded`) of a collection made through Checkout or Direct Receive Money. Use it when you have not received a final callback within 5 minutes, or to reconcile before fulfilling. Look up by `clientReference`, `hubtelTransactionId` or `networkTransactionId`.",
        "tags": [
          "Transaction Status"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "clientReference",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "inv0012",
            "description": "The client reference of the transaction specified in the request payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the API that is related to the ResponseCode."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The response code of the API after the request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Date of the transaction"
                        },
                        "status": {
                          "type": "string",
                          "description": "Status of the transaction i.e.: Paid, Unpaid or Refunded."
                        },
                        "transactionId": {
                          "type": "string",
                          "description": "The unique ID used to identify a Hubtel transaction (from Hubtel)."
                        },
                        "externalTransactionId": {
                          "type": "string",
                          "description": "The transaction reference from the mobile money provider (from Telco)."
                        },
                        "paymentMethod": {
                          "type": "string",
                          "description": "The mode of payment."
                        },
                        "clientReference": {
                          "type": "string",
                          "description": "The reference ID that is initially provided by the client/API user in the request payload (from merchant)."
                        },
                        "currencyCode": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Currency of the transaction; could be null."
                        },
                        "amount": {
                          "type": "number",
                          "description": "The transaction amount."
                        },
                        "charges": {
                          "type": "number",
                          "description": "The charge/fee for the transaction."
                        },
                        "amountAfterCharges": {
                          "type": "number",
                          "description": "The transaction amount after charges/fees deduction."
                        },
                        "isFulfilled": {
                          "type": [
                            "boolean",
                            "null"
                          ],
                          "description": "Whether service was fulfilled; could be null."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    }
                  }
                },
                "examples": {
                  "paid": {
                    "summary": "SAMPLE RESPONSE (Paid)",
                    "value": {
                      "message": "Successful",
                      "responseCode": "0000",
                      "data": {
                        "date": "2024-04-25T21:45:48.4740964Z",
                        "status": "Paid",
                        "transactionId": "7fd01221faeb41469daec7b3561bddc5",
                        "externalTransactionId": "0000006824852622",
                        "paymentMethod": "mobilemoney",
                        "clientReference": "inv0012",
                        "currencyCode": null,
                        "amount": 0.1,
                        "charges": 0.02,
                        "amountAfterCharges": 0.08,
                        "isFulfilled": null
                      }
                    }
                  },
                  "unpaid": {
                    "summary": "SAMPLE RESPONSE (Unpaid)",
                    "value": {
                      "message": "Successful",
                      "responseCode": "0000",
                      "data": {
                        "date": "2024-04-25T21:45:48.4740964Z",
                        "status": "Unpaid",
                        "transactionId": "7fd01221faeb41469daec7b3561bddc5",
                        "externalTransactionId": "0000006824852622",
                        "paymentMethod": "mobilemoney",
                        "clientReference": "inv0012",
                        "currencyCode": null,
                        "amount": 0.1,
                        "charges": 0.02,
                        "amountAfterCharges": 0.08,
                        "isFulfilled": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "api-txnstatus.hubtel.com",
          "alias": "api-txnstatus",
          "service": "transaction-status",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0000",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/1.online_checkout.md",
            "business/api_documentation/payment_apis/2.checkout_sdk.md",
            "business/api_documentation/payment_apis/3.direct_receive_money.md",
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/payment_apis/8.commission_services.md",
            "business/api_documentation/programmable_services/1.documentation.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/7.direct_receive_money.md"
          ]
        }
      }
    },
    "/v1/rmp/merchantaccount/merchants/{accountNumber}/receive/mobilemoney": {
      "post": {
        "operationId": "receiveMobileMoney",
        "summary": "Charge a mobile money wallet",
        "description": "Sends a payment prompt to the customer's phone. The response is `0001` (pending) while the customer decides. The final result is POSTed to `PrimaryCallbackUrl`, after the customer responds or the request expires. If no callback arrives within 5 minutes, call **Check a collection's status**. Prevent unsolicited prompts by charging only registered customers whose number cannot change at payment time, or verify unregistered numbers with an OTP first.",
        "tags": [
          "Direct Receive Money"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "CustomerName": {
                    "type": "string",
                    "description": "The name on the customer’s mobile money wallet."
                  },
                  "CustomerMsisdn": {
                    "type": "string",
                    "description": "The customer’s mobile money number. This should be in the international format. E.g.: \"233249111411\""
                  },
                  "CustomerEmail": {
                    "type": "string",
                    "description": "Email of customer."
                  },
                  "Channel": {
                    "type": "string",
                    "description": "The mobile money channel provider. Available channels are: mtn-gh, vodafone-gh, tigo-gh."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The amount to debit, with at most 2 decimal places, for example 0.50."
                  },
                  "PrimaryCallbackUrl": {
                    "type": "string",
                    "description": "URL used to receive callback payload of Receive Money transactions from Hubtel."
                  },
                  "Description": {
                    "type": "string",
                    "description": "A brief description of the transaction."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference provided by the API user and must be unique for every transaction and preferably be alphanumeric characters. Maximum length is 36 characters."
                  }
                },
                "required": [
                  "CustomerMsisdn",
                  "Channel",
                  "Amount",
                  "PrimaryCallbackUrl",
                  "Description",
                  "ClientReference"
                ]
              },
              "example": {
                "CustomerName": "Joe Doe",
                "CustomerMsisdn": "233200000000",
                "CustomerEmail": "username@example.com",
                "Channel": "vodafone-gh",
                "Amount": 0.8,
                "PrimaryCallbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede",
                "Description": "Union Dues",
                "ClientReference": "3jL2KlUy3vt21"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4070`, `4101`, `4103`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "Message": {
                      "type": "string",
                      "description": "The description of response received from the Receive Money API that is related to the ResponseCode."
                    },
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID used to identify a Hubtel transaction (from Hubtel)."
                        },
                        "Description": {
                          "type": "string",
                          "description": "The description initially provided by API user in the request payload."
                        },
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference ID that is initially provided by the client/API user in the request payload (from merchant)."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount."
                        },
                        "Charges": {
                          "type": "number",
                          "description": "The charge/fee for the transaction."
                        },
                        "AmountAfterCharges": {
                          "type": "number",
                          "description": "The transaction amount after charges/fees deduction."
                        },
                        "AmountCharged": {
                          "type": "number",
                          "description": "The amount debited from the customer’s mobile money wallet."
                        },
                        "DeliveryFee": {
                          "type": "number",
                          "description": "The delivery fee of the transaction is normally zero (0.0)."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "ExternalTransactionId": {
                      "type": "string",
                      "description": "The transaction reference from the mobile money provider (from Telco)."
                    },
                    "OrderID": {
                      "type": "string",
                      "description": "The unique ID used to identify a transaction order."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "Message": "Transaction pending. Expect callback request for final state",
                      "ResponseCode": "0001",
                      "Data": {
                        "TransactionId": "09f84e20a283942e807128e8c21d08d6",
                        "Description": "Union Dues",
                        "ClientReference": "3jL2KlUy3vt21",
                        "Amount": 0.8,
                        "Charges": 0.05,
                        "AmountAfterCharges": 0.8,
                        "AmountCharged": 0.85,
                        "DeliveryFee": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/PrimaryCallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Message": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "Amount": {
                                "type": "number"
                              },
                              "Charges": {
                                "type": "number"
                              },
                              "AmountAfterCharges": {
                                "type": "number"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "AmountCharged": {
                                "type": "number"
                              },
                              "OrderId": {
                                "type": "string"
                              },
                              "PaymentDate": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (Successful)",
                          "value": {
                            "ResponseCode": "0000",
                            "Message": "success",
                            "Data": {
                              "Amount": 0.8,
                              "Charges": 0.05,
                              "AmountAfterCharges": 0.8,
                              "Description": " The Vodafone Cash payment has been approved and processed successfully",
                              "ClientReference": "3jL2KlUy3vt21",
                              "TransactionId": "09f84e20a283942e807128e8c21d08d6",
                              "ExternalTransactionId": "2116938399",
                              "AmountCharged": 0.85,
                              "OrderId": "09f84e20a283942e807128e8c21d08d6",
                              "PaymentDate": "2024-05-14T00:44:57.5142719Z"
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (Failed)",
                          "value": {
                            "ResponseCode": "2001",
                            "Message": "failed",
                            "Data": {
                              "Amount": 0.8,
                              "Charges": 0.05,
                              "AmountAfterCharges": 0.8,
                              "Description": "FAILED",
                              "ClientReference": "3jL2KlUy3vt21",
                              "TransactionId": "09f84e20a283942e807128e8c21d08d6",
                              "ExternalTransactionId": "2116938399",
                              "AmountCharged": 0.85,
                              "OrderId": "09f84e20a283942e807128e8c21d08d6",
                              "PaymentDate": "2024-05-14T00:44:57.5142719Z"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "rmp.hubtel.com",
          "alias": "rmp",
          "service": "receive-money",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4070",
            "4101",
            "4103"
          ],
          "idempotency": "ClientReference must be unique per transaction (maximum 36 characters) and never reused.",
          "legacySources": [
            "business/api_documentation/payment_apis/3.direct_receive_money.md",
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/7.direct_receive_money.md"
          ]
        }
      }
    },
    "/v1/smp/api/merchants/{accountNumber}/send/mobilemoney": {
      "post": {
        "operationId": "sendMobileMoney",
        "summary": "Pay out to a mobile money wallet",
        "description": "Sends money from your disbursement account to a mobile money wallet. The response is pending; the final result is POSTed to `PrimaryCallbackUrl`. Your disbursement balance must cover the amount plus fees. If no callback arrives within 5 minutes, call **Check a payout's status**.",
        "tags": [
          "Direct Send Money"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RecipientName": {
                    "type": "string",
                    "description": "The name on the recipient’s mobile money wallet. Recipient msisdn can be used instead if name is unknown."
                  },
                  "RecipientMsisdn": {
                    "type": "string",
                    "description": "The recipient’s mobile money number. This should be in the international format. E.g.: \"233249111411\""
                  },
                  "CustomerEmail": {
                    "type": "string",
                    "description": "The mobile money recipient’s email address."
                  },
                  "Channel": {
                    "type": "string",
                    "description": "The mobile money channel provider. Available channels are: mtn-gh, vodafone-gh, tigo-gh."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The amount to send, with at most 2 decimal places, for example 0.50."
                  },
                  "PrimaryCallbackURL": {
                    "type": "string",
                    "description": "URL expected to receive callback payload of Send Money transactions from Hubtel. Callbacks are sent for transactions with 0001 response code."
                  },
                  "Description": {
                    "type": "string",
                    "description": "A brief description of the transaction."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference provided by the API user and must be unique for every transaction and preferably be alphanumeric characters. Maximum length is 36 characters."
                  }
                },
                "required": [
                  "RecipientName",
                  "RecipientMsisdn",
                  "Channel",
                  "Amount",
                  "PrimaryCallbackURL",
                  "Description",
                  "ClientReference"
                ]
              },
              "example": {
                "RecipientName": "Joe Doe",
                "RecipientMsisdn": "233200000000",
                "CustomerEmail": "username@example.com",
                "Channel": "vodafone-gh",
                "Amount": 10,
                "PrimaryCallbackURL": "https://webhook.site/b503d1a9-e726-f315254a6ede",
                "Description": "Union Dues",
                "ClientReference": "25335r45pch53544044"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`, `4101`, `4103`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "AmountDebited": {
                          "type": "number",
                          "description": "The actual amount that is charged from your Disbursement Account before transaction is completed."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID used to identify a Hubtel transaction (from Hubtel)."
                        },
                        "Description": {
                          "type": "string",
                          "description": "The description of the ResponseCode received from the request."
                        },
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference ID that is initially provided by the client/API user in the request payload (from merchant)."
                        },
                        "ExternalTransactionId": {
                          "type": "string",
                          "description": "The transaction reference from the mobile money provider (from Telco)."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "Amount to be sent during the transaction."
                        },
                        "Charges": {
                          "type": "number",
                          "description": "The charge/fee for the transaction."
                        },
                        "Meta": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "Additional transaction metadata. Can be null."
                        },
                        "RecipientName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the recipient of the transaction before the transaction is complete. Could be null."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Data": {
                        "AmountDebited": 0,
                        "TransactionId": "8a545e5c7357714b80b65f76",
                        "Description": "Your request has been accepted. We will notify you when the transaction is completed.",
                        "ClientReference": "25335r45pch53544044",
                        "ExternalTransactionId": "",
                        "Amount": 10,
                        "Charges": 0,
                        "Meta": null,
                        "RecipientName": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/PrimaryCallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "number"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "number"
                              },
                              "Meta": {},
                              "RecipientName": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (Successful)",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 10.1,
                              "TransactionId": "8a545e5c7357714b80b65f76",
                              "ClientReference": "25335r45pch53544044",
                              "Description": "The MTN Mobile Money payment has been approved and processed successfully.",
                              "ExternalTransactionId": "6654233478",
                              "Amount": 10,
                              "Charges": 0.1,
                              "Meta": null,
                              "RecipientName": "John Doe"
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (Failed)",
                          "value": {
                            "ResponseCode": "4075",
                            "Data": {
                              "AmountDebited": 14,
                              "TransactionId": "813723564a42bdb516392edf2ead5c",
                              "ClientReference": "dfb4B863C4C69",
                              "Description": "Insufficient prepaid balance.",
                              "ExternalTransactionId": null,
                              "Amount": 13.5,
                              "Charges": 0.5,
                              "Meta": null,
                              "RecipientName": "233241234567"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "smp.hubtel.com",
          "alias": "smp",
          "service": "send-money",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075",
            "4101",
            "4103"
          ],
          "idempotency": "ClientReference must be unique per payout.",
          "legacySources": [
            "business/api_documentation/payment_apis/4.direct_send_money.md",
            "business/api_documentation/lending_apis/8.direct_send_money.md"
          ]
        }
      }
    },
    "/v1/smrsc/api/merchants/{accountNumber}/transactions/status": {
      "get": {
        "operationId": "getPayoutStatus",
        "summary": "Check a payout's status",
        "description": "Returns the current status of a mobile money or bank payout by `clientReference`. Use it when no final callback has arrived within 5 minutes.",
        "tags": [
          "Direct Send Money"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "clientReference",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "3jL2KlUy3vt21",
            "description": "The clientReference of the transaction specified in the request payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string"
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "TransactionId": {
                          "type": "string"
                        },
                        "networkTransactionId": {
                          "type": "string"
                        },
                        "Amount": {
                          "type": "number"
                        },
                        "Fees": {
                          "type": "number"
                        },
                        "ClientReference": {
                          "type": "string"
                        },
                        "Channel": {
                          "type": "string"
                        },
                        "CustomerNumber": {
                          "type": "string"
                        },
                        "transactionStatus": {
                          "type": "string"
                        },
                        "CreatedAt": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "success",
                      "Data": {
                        "TransactionId": "09f84e20a283942e807128e8c21d0303",
                        "networkTransactionId": "142116938399",
                        "Amount": 0.8,
                        "Fees": 0.01,
                        "ClientReference": "3jL2KlUy3vt21",
                        "Channel": "vodafone-gh",
                        "CustomerNumber": "233200000000",
                        "transactionStatus": "success",
                        "CreatedAt": "2021-08-23 11:31:06"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "smrsc.hubtel.com",
          "alias": "smrsc",
          "service": "send-money",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0000",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/4.direct_send_money.md",
            "business/api_documentation/payment_apis/5.direct_sendtobank.md",
            "business/api_documentation/lending_apis/8.direct_send_money.md"
          ]
        }
      }
    },
    "/v1/smp/api/merchants/{accountNumber}/send/bank/gh/{bankCode}": {
      "post": {
        "operationId": "sendToBank",
        "summary": "Pay out to a bank account",
        "description": "Sends money from your disbursement account to a Ghanaian bank account identified by `bankCode` in the path. Verify the account name first with **Look up a bank account name**. The final result is POSTed to `PrimaryCallbackUrl`.",
        "tags": [
          "Send to Bank"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "bankCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "300302",
                "300303",
                "300304",
                "300305",
                "300306",
                "300307",
                "300309",
                "300310",
                "300311",
                "300312",
                "300313",
                "300316",
                "300317",
                "300318",
                "300319",
                "300320",
                "300322",
                "300323",
                "300324",
                "300325",
                "300329",
                "300331",
                "300334",
                "300362"
              ]
            },
            "description": "The recipient bank's GhIPSS code, for example `300304` for GCB Bank or `300312` for Ecobank. See the [full list of bank codes](/docs/guides/payouts#bank-codes)."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Amount": {
                    "type": "number",
                    "description": "The amount to send, with at most 2 decimal places, for example 0.50."
                  },
                  "BankName": {
                    "type": "string",
                    "description": "The name of the recipient’s bank, as listed in the [bank codes table](/docs/guides/payouts#bank-codes)."
                  },
                  "BankBranch": {
                    "type": "string",
                    "description": "The recipient’s bank branch."
                  },
                  "BankBranchCode": {
                    "type": "string",
                    "description": "Branch Code of recipient’s bank. String can be empty."
                  },
                  "BankAccountNumber": {
                    "type": "string"
                  },
                  "BankAccountName": {
                    "type": "string",
                    "description": "The name linked to the provided bank account."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference provided by the API user and must be unique for every transaction and preferably be alphanumeric characters. Maximum length is 36 characters."
                  },
                  "PrimaryCallbackUrl": {
                    "type": "string",
                    "description": "URL expected to receive callback payload of Send-to-Bank transactions from Hubtel. Callbacks are sent for transactions with 0001 response code."
                  },
                  "Description": {
                    "type": "string",
                    "description": "A brief description of the transaction."
                  },
                  "RecipientPhoneNumber": {
                    "type": "string",
                    "description": "The recipient’s mobile money number. Eg: ”233249111411”"
                  }
                },
                "required": [
                  "Amount",
                  "PrimaryCallbackUrl",
                  "Description",
                  "ClientReference"
                ]
              },
              "example": {
                "Amount": 10,
                "BankName": "",
                "BankBranch": "",
                "BankBranchCode": "",
                "BankAccountNumber": "4XXXXXXXXX",
                "BankAccountName": "",
                "ClientReference": "sendToBank101",
                "PrimaryCallbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede",
                "Description": "Test Deposit",
                "RecipientPhoneNumber": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "AmountDebited": {
                          "type": "number",
                          "description": "The actual amount that is charged from your Disbursement Account before transaction is completed."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID used to identify a Hubtel transaction (from Hubtel)."
                        },
                        "Description": {
                          "type": "string",
                          "description": "The description of the ResponseCode received from the request."
                        },
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference ID that is initially provided by the client/API user in the request payload (from merchant)."
                        },
                        "ExternalTransactionId": {
                          "type": "string",
                          "description": "The transaction reference from the upstream provider."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "Amount to be sent during the transaction."
                        },
                        "Charges": {
                          "type": "number",
                          "description": "The charge/fee for the transaction."
                        },
                        "Meta": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "description": "Additional transaction metadata. Can be null."
                        },
                        "RecipientName": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the recipient of the transaction before the transaction is complete. Could be null."
                        }
                      },
                      "description": "An object containing the required data response from the Send-To-Bank API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Data": {
                        "AmountDebited": 0,
                        "TransactionId": "367121386447",
                        "Description": "Your request has been accepted. We will notify you when the transaction is completed.",
                        "ClientReference": "sendToBank101",
                        "ExternalTransactionId": "",
                        "Amount": 10,
                        "Charges": 0,
                        "Meta": null,
                        "RecipientName": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/PrimaryCallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "number"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "number"
                              },
                              "Meta": {},
                              "RecipientName": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (Successful)",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 10.1,
                              "TransactionId": "367121386447",
                              "ExternalTransactionId": "367121386447",
                              "Description": " The Instant Bank Request has been processed successfully",
                              "ClientReference": "sendToBank101",
                              "Amount": 10,
                              "Charges": 0.1,
                              "Meta": null,
                              "RecipientName": "Joe Doe"
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (Failed)",
                          "value": {
                            "ResponseCode": "4075",
                            "Data": {
                              "AmountDebited": 10.1,
                              "TransactionId": "9933e637066a406dba1a8b255b928b44",
                              "ClientReference": "sendToBank102",
                              "Description": "Insufficient prepaid balance.",
                              "ExternalTransactionId": null,
                              "Amount": 10,
                              "Charges": 0.1,
                              "Meta": null,
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "smp.hubtel.com",
          "alias": "smp",
          "service": "send-to-bank",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/5.direct_sendtobank.md"
          ]
        }
      }
    },
    "/v1/preapproval/api/v2/merchant/{accountNumber}/preapproval/initiate": {
      "post": {
        "operationId": "initiatePreapproval",
        "summary": "Start a direct debit pre-approval",
        "description": "Asks a customer to approve future debits from their wallet by USSD. The response is pending (`2000`); the final result is POSTed to `callbackUrl` after the customer responds on the Virtual Phone or the request expires. Use the same test numbers as Receive Money. After approval you can charge them with Receive Money using a direct-debit channel.",
        "tags": [
          "Direct Debit"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientReferenceId": {
                    "type": "string",
                    "description": "The reference provided by the API user and must be unique for every transaction and preferably be alphanumeric characters. Maximum length is 36 characters."
                  },
                  "customerMsisdn": {
                    "type": "string",
                    "description": "The customer’s mobile money number. This should be in the international format without plus(+). E.g.: \"233249111411\""
                  },
                  "channel": {
                    "type": "string",
                    "description": "The mobile money channel provider. Available channels are: mtn-gh-direct-debit, vodafone-gh-direct-debit"
                  },
                  "callbackUrl": {
                    "type": "string",
                    "description": "The URL expected to receive callback on the final status of a payment from Hubtel."
                  }
                },
                "required": [
                  "clientReferenceId",
                  "customerMsisdn",
                  "channel",
                  "callbackUrl"
                ]
              },
              "example": {
                "clientReferenceId": "3jL2KlUy3vt21debitC",
                "customerMsisdn": "233200000000",
                "channel": "vodafone-gh-direct-debit",
                "callbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `2000`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the Direct Debit API that is related to the ResponseCode."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "hubtelPreApprovalId": {
                          "type": "string",
                          "description": "The verification preapproval ID which is received in the initiate process response."
                        },
                        "clientReferenceId": {
                          "type": "string",
                          "description": "The reference provided by the API user and must be unique and preferably be alphanumeric characters. Maximum length is 36 characters."
                        },
                        "verificationType": {
                          "type": "string",
                          "description": "The verification type; can be USSD or OTP."
                        },
                        "otpPrefix": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "First part of OTP sent to customer; null when verificationType is USSD."
                        },
                        "preapprovalStatus": {
                          "type": "string",
                          "description": "The pre-approval status: APPROVED, REJECTED or PENDING. A pending request receives a final status later."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    }
                  }
                },
                "examples": {
                  "sampleInitiateProcessResponseUssd": {
                    "summary": "SAMPLE INITIATE PROCESS RESPONSE (USSD)",
                    "value": {
                      "message": "Request received! Pending preapproval",
                      "responseCode": "2000",
                      "data": {
                        "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34",
                        "clientReferenceId": "3jL2KlUy3vt21debitC",
                        "verificationType": "USSD",
                        "otpPrefix": null,
                        "preapprovalStatus": "PENDING"
                      }
                    }
                  },
                  "sampleInitiateProcessResponseOtp": {
                    "summary": "SAMPLE INITIATE PROCESS RESPONSE (OTP)",
                    "value": {
                      "message": "Request received! Pending preapproval",
                      "responseCode": "2000",
                      "data": {
                        "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34",
                        "clientReferenceId": "3jL2KlUy3vt21debitC",
                        "verificationType": "OTP",
                        "otpPrefix": "HNRM",
                        "preapprovalStatus": "PENDING"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "preapproval.hubtel.com",
          "alias": "preapproval",
          "service": "direct-debit",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "2000",
            "4000"
          ],
          "idempotency": "clientReferenceId must be unique per preapproval (maximum 36 characters).",
          "legacySources": [
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md"
          ]
        }
      }
    },
    "/v1/preapproval/api/v2/merchant/{accountNumber}/preapproval/verifyotp": {
      "post": {
        "operationId": "verifyPreapprovalOtp",
        "summary": "Confirm a pre-approval with an OTP",
        "description": "Completes a pre-approval started with the OTP flow, using the code the customer received. On success the customer's wallet can be debited without further prompts.",
        "tags": [
          "Direct Debit"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customerMsisdn": {
                    "type": "string",
                    "description": "The customer’s mobile money number. This should be in the international format without plus(+). E.g.: \"233249111411\""
                  },
                  "hubtelPreApprovalId": {
                    "type": "string",
                    "description": "The verification preapproval ID which is received in the initiate process response."
                  },
                  "clientReferenceId": {
                    "type": "string",
                    "description": "The reference provided by the API user and must be unique for every transaction and preferably be alphanumeric characters. Maximum length is 36 characters."
                  },
                  "otpCode": {
                    "type": "string",
                    "description": "The OTP code used for verification. It consists of the four letter otpPrefix received in the initiate process response and the four digit OTP code sent to the customer. Eg:\"RTYE-9231\"."
                  }
                },
                "required": [
                  "customerMsisdn",
                  "hubtelPreApprovalId",
                  "clientReferenceId",
                  "otpCode"
                ]
              },
              "example": {
                "customerMsisdn": "233200000000",
                "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34",
                "clientReferenceId": "3jL2KlUy3vt21debitC",
                "otpCode": "HNRM-8852"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "responseCode": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "hubtelPreApprovalId": {
                          "type": "string"
                        },
                        "preapprovalStatus": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "sampleVerifyOtpResponse": {
                    "summary": "SAMPLE VERIFY OTP RESPONSE",
                    "value": {
                      "message": "OTP Verified! Pending preapproval",
                      "responseCode": "2000",
                      "data": {
                        "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34",
                        "preapprovalStatus": "PENDING"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "CustomerMsisdn": {
                            "type": "string"
                          },
                          "VerificationType": {
                            "type": "string"
                          },
                          "PreapprovalStatus": {
                            "type": "string"
                          },
                          "HubtelPreapprovalId": {
                            "type": "string"
                          },
                          "ClientReferenceId": {
                            "type": "string"
                          },
                          "CreatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      },
                      "examples": {
                        "approved": {
                          "summary": "SAMPLE CALLBACK (Approved)",
                          "value": {
                            "CustomerMsisdn": "233200000000",
                            "VerificationType": "USSD",
                            "PreapprovalStatus": "APPROVED",
                            "HubtelPreapprovalId": "5f20092321d54eefb974dbfea6de5c34",
                            "ClientReferenceId": "3jL2KlUy3vt21debitC",
                            "CreatedAt": "2022-11-14T21:08:16.7533466Z"
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (Failed)",
                          "value": {
                            "CustomerMsisdn": "233200000000",
                            "VerificationType": "OTP",
                            "PreapprovalStatus": "FAILED",
                            "HubtelPreapprovalId": "5f20092321d54eefb974dbfea6de5c34",
                            "ClientReferenceId": "3jL2KlUy3vt21debitC",
                            "CreatedAt": "2022-11-14T21:08:16.7533466Z"
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "preapproval.hubtel.com",
          "alias": "preapproval",
          "service": "direct-debit",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md"
          ]
        }
      }
    },
    "/v1/preapproval/api/v2/merchant/{accountNumber}/preapproval/{clientReference}/status": {
      "get": {
        "operationId": "getPreapprovalStatus",
        "summary": "Get a pre-approval's status",
        "description": "Returns whether a customer's direct debit pre-approval is pending, approved, failed or expired. Use it when a preapproval callback hasn't arrived, before retrying with a new reference.",
        "tags": [
          "Direct Debit"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "clientReference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the Direct Debit API that is related to the ResponseCode."
                    },
                    "code": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "customerMsisdn": {
                          "type": "string",
                          "description": "The customer’s mobile money number. This should be in the international format without plus(+). E.g.: \"233249111411\""
                        },
                        "verificationType": {
                          "type": "string",
                          "description": "The channel used for preapproval/verification. E.g.: USSD, OTP."
                        },
                        "preapprovalStatus": {
                          "type": "string",
                          "description": "The pre-approval status, for example APPROVED, FAILED or EXPIRED."
                        },
                        "hubtelPreapprovalId": {
                          "type": "string",
                          "description": "The verification preapproval ID which is received in the initiate process response."
                        },
                        "clientReferenceId": {
                          "type": "string",
                          "description": "The reference provided by the API user and must be unique and preferably be alphanumeric characters. Maximum length is 36 characters."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Date and time preapproval was initiated."
                        }
                      },
                      "description": "An object containing the required data response from the Preapproval Process."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    }
                  }
                },
                "examples": {
                  "samplePreapprovalStatusCheckResponse": {
                    "summary": "SAMPLE PREAPPROVAL STATUS CHECK RESPONSE",
                    "value": {
                      "message": "Success",
                      "code": "2000",
                      "data": {
                        "customerMsisdn": "233546335113",
                        "verificationType": "USSD",
                        "preapprovalStatus": "APPROVED",
                        "hubtelPreapprovalId": "5f20092321d54eefb974dbfea6de5c34",
                        "clientReferenceId": "3jL2KlUy3vt21debitC",
                        "createdAt": "2023-08-11T18:18:55.6439374Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "preapproval.hubtel.com",
          "alias": "preapproval",
          "service": "direct-debit",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md"
          ]
        }
      }
    },
    "/v1/preapproval/api/v2/merchant/{accountNumber}/preapproval/{msisdn}/cancel": {
      "get": {
        "operationId": "cancelPreapproval",
        "summary": "Cancel a pre-approval",
        "description": "Stops future debits for a customer's wallet. Do this when a loan is repaid or a subscription ends, so the customer isn't charged again.",
        "tags": [
          "Direct Debit"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "msisdn",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the Cancel Preapproval API that is related to the response code."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "data": {
                      "type": "boolean",
                      "description": "A Boolean value related to the response code from the Preapproval Process."
                    }
                  }
                },
                "examples": {
                  "sampleCancelPreapprovalResponse": {
                    "summary": "SAMPLE CANCEL PREAPPROVAL RESPONSE",
                    "value": {
                      "message": "Successfully cancelled preapproval for customer 233548359582 and business gershon",
                      "responseCode": "2000",
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "preapproval.hubtel.com",
          "alias": "preapproval",
          "service": "direct-debit",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md"
          ]
        }
      }
    },
    "/v1/preapproval/api/v2/merchant/{accountNumber}/preapproval/reactivate": {
      "post": {
        "operationId": "reactivatePreapproval",
        "summary": "Reactivate a pre-approval",
        "description": "Restores a cancelled or expired pre-approval, asking the customer to confirm again. Use it when a customer resumes a subscription or takes a new loan.",
        "tags": [
          "Direct Debit"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "callbackUrl": {
                    "type": "string",
                    "description": "The URL expected to receive callback payload of Preapproval Status."
                  },
                  "customerMsisdn": {
                    "type": "string",
                    "description": "The customer’s mobile money number. This should be in the international format without plus(+). E.g.: \"233249111411\""
                  }
                }
              },
              "example": {
                "callbackUrl": "https://webhook.site/b503d1af9-e726-f315254a6ede",
                "customerMsisdn": "233200000000"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the Direct Debit API that is related to the ResponseCode."
                    },
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "hubtelPreApprovalId": {
                          "type": "string",
                          "description": "The verification preapproval ID which is received in the initiate process response."
                        },
                        "clientReferenceId": {
                          "type": "string",
                          "description": "The reference provided by the API user and must be unique and preferably be alphanumeric characters. Maximum length is 36 characters."
                        },
                        "verificationType": {
                          "type": "string",
                          "description": "The verification type; can be USSD or OTP."
                        },
                        "otpPrefix": {
                          "type": "string",
                          "description": "First part of OTP sent to customer; null when verificationType is USSD."
                        },
                        "preapprovalStatus": {
                          "type": "string",
                          "description": "The pre-approval status: APPROVED, REJECTED or PENDING. A pending request receives a final status later."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    }
                  }
                },
                "examples": {
                  "sampleReactivatePreapprovalResponse": {
                    "summary": "SAMPLE REACTIVATE PREAPPROVAL RESPONSE",
                    "value": {
                      "message": "Request received! Pending preapproval",
                      "responseCode": "2000",
                      "data": {
                        "hubtelPreApprovalId": "5f20092321d54eefb974dbfea6de5c34",
                        "clientReferenceId": "3jL2KlUy3vt21debitC",
                        "verificationType": "OTP",
                        "otpPrefix": "GNCC",
                        "preapprovalStatus": "PENDING"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "preapproval.hubtel.com",
          "alias": "preapproval",
          "service": "direct-debit",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/6.direct_debit_money.md",
            "business/api_documentation/lending_apis/6.direct_debit_money.md"
          ]
        }
      }
    },
    "/v1/rip/api/proxy/{accountNumber}/create-invoice": {
      "post": {
        "operationId": "createRecurringInvoice",
        "summary": "Create a recurring invoice",
        "description": "Starts a recurring mobile-money invoice. The response is pending (`0001`) with a `requestId` and `otpPrefix`; the OTP lands on the Virtual Phone. After **Verify a recurring invoice** and the customer approves the prompt, the initial debit result is POSTed to `callbackUrl`. Use the same test numbers as Receive Money.",
        "tags": [
          "Recurring Invoice"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The date the recurring invoice is created. It is a timestamp preferably in ISO 8601 format YYYYMM-DDThh:mm:ss Eg: “2022-01-28T08:57:00”"
                  },
                  "invoiceEndDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The date the recurring invoice is supposed to end. It is a timestamp preferably in ISO 8601 format YYYY-MM-DDThh:mm:ss Eg: “2022-01-31T08:57:00”"
                  },
                  "description": {
                    "type": "string",
                    "description": "A brief description of the transaction, for example “My recurring service”."
                  },
                  "startTime": {
                    "type": "string",
                    "description": "The time of day when the debit would be taken whenever it is due. Format is hh:mm Eg:”10:00”"
                  },
                  "paymentInterval": {
                    "type": "string",
                    "description": "The interval between payments for the customer. The possible options are: “DAILY” – This means the customer will be debited every day. “WEEKLY” – This means the customer will be debited every week (7 days). “MONTHLY” – This means the customer will be debited on the first day of every month. “QUARTERLY” – This means the customer will be debited every Quarter (3 months). “YEARLY” – This means the customer will be debited every Year (12 months)."
                  },
                  "customerMobileNumber": {
                    "type": "string",
                    "description": "The customer’s mobile money number. This should be in the international format. Eg: “233249111411”"
                  },
                  "paymentOption": {
                    "type": "string",
                    "description": "The payment option which the customer selects to pay for. Currently, the available options are: “MobileMoney”."
                  },
                  "channel": {
                    "type": "string",
                    "description": "The mobile money channel provider. Currently the available channels are: “mtn_gh_rec” – This is for payments using an MTN mobile money wallet. “vodafone_gh_rec” – This is for payments using a Vodafone mobile money wallet. “hubtel_gh” – This is for payments using a hubtel wallet. "
                  },
                  "customerName": {
                    "type": "string",
                    "description": "The name of the customer."
                  },
                  "recurringAmount": {
                    "type": "number",
                    "description": "The amount to debit from the customer’s wallet on each invoice due date."
                  },
                  "totalAmount": {
                    "type": "number",
                    "description": "The total amount to debit from the customer’s wallet. Use the same value as recurringAmount."
                  },
                  "initialAmount": {
                    "type": "number",
                    "description": "The first payment amount. This can differ from recurringAmount."
                  },
                  "currency": {
                    "type": "string",
                    "description": "The currency of the transaction."
                  },
                  "callbackUrl": {
                    "type": "string",
                    "description": "A URL used to receive the callback for successful invoice creation and debit. All subsequent debit callbacks are also sent to this same URL."
                  }
                },
                "required": [
                  "orderDate",
                  "invoiceEndDate",
                  "description",
                  "startTime",
                  "paymentInterval",
                  "customerMobileNumber",
                  "paymentOption",
                  "channel",
                  "recurringAmount",
                  "totalAmount",
                  "initialAmount",
                  "currency",
                  "callbackUrl"
                ]
              },
              "example": {
                "orderDate": "2022-01-28T08:57:00",
                "invoiceEndDate": "2022-01-31T08:57:00",
                "description": "My recurring service",
                "startTime": "14:00",
                "paymentInterval": "DAILY",
                "customerMobileNumber": "233240000000",
                "paymentOption": "MobileMoney",
                "channel": "mtn_gh_rec",
                "customerName": "Joe Doe",
                "recurringAmount": 0.1,
                "totalAmount": 0.1,
                "initialAmount": 0.1,
                "currency": "GHS",
                "callbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "message": {
                      "type": "string",
                      "description": "The message accompanying the response code. This gives a brief description of the response from the API."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "recurringInvoiceId": {
                          "type": "string",
                          "description": "The unique ID used to identify a recurring invoice. This ID will be used anytime a debit is done on the customer wallet for this invoice."
                        },
                        "requestId": {
                          "type": "string",
                          "description": "The verification request ID which is to be used in the Verify Invoice request payload."
                        },
                        "otpPrefix": {
                          "type": "string",
                          "description": "A 4 letter word prefix which is to be used together with the actual OTP code send to the customer in the Verify Invoice request payload."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "verificationType": {
                      "type": "string",
                      "description": "The verification type; can be USSD or OTP."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "responseCode": "0001",
                      "message": "Your request has been processed successfully.",
                      "data": {
                        "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6",
                        "requestId": "a6487bc44eae44849fd80326a0dd802a",
                        "otpPrefix": "OQDM"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "rip.hubtel.com",
          "alias": "rip",
          "service": "recurring-invoice",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/7.recurring_invoice.md",
            "business/api_documentation/lending_apis/9.recurring_invoice.md"
          ]
        }
      }
    },
    "/v1/rip/api/proxy/verify-invoice": {
      "post": {
        "operationId": "verifyRecurringInvoice",
        "summary": "Verify a recurring invoice",
        "description": "Completes setup with the OTP from create (`otpPrefix-0000` in the sandbox). Hubtel then prompts the customer; the initial debit callback arrives at the `callbackUrl` from create after they respond or the request expires.",
        "tags": [
          "Recurring Invoice"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "recurringInvoiceId": {
                    "type": "string",
                    "description": "The unique ID used to identify the recurring invoice being verified. It is taken from the create invoice response."
                  },
                  "requestId": {
                    "type": "string",
                    "description": "The verification request ID which is received in the create invoice response."
                  },
                  "otpCode": {
                    "type": "string",
                    "description": "The OTP code used for verification. It consists of the four letter otpPrefix received in the create invoice response and the four digit OTP code sent to the customer. Eg: ”RTYE-9231”"
                  }
                },
                "required": [
                  "recurringInvoiceId",
                  "requestId",
                  "otpCode"
                ]
              },
              "example": {
                "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6",
                "requestId": "a6487bc44eae44849fd80326a0dd802a",
                "otpCode": "OQDM-9514"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "message": {
                      "type": "string",
                      "description": "The message accompanying the response code. This gives a brief description of the response from the API."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "recurringInvoiceId": {
                          "type": "string",
                          "description": "The unique ID used to identify a recurring invoice. This ID will be used anytime a debit is done on the customer wallet for this invoice."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "responseCode": "0001",
                      "message": "Your request has been processed successfully. You will receive a callback on the final status shortly.",
                      "data": {
                        "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Message": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "OrderId": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "RecurringInvoiceId": {
                                "type": "string"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "OrderDate": {
                                "type": "string"
                              },
                              "InvoiceEndDate": {
                                "type": "string"
                              },
                              "CustomerMobileNumber": {
                                "type": "string"
                              },
                              "Charges": {
                                "type": "number"
                              },
                              "AmountAfterCharges": {
                                "type": "number"
                              },
                              "AmountCharged": {
                                "type": "number"
                              },
                              "Amount": {
                                "type": "number"
                              },
                              "InitialAmount": {
                                "type": "number"
                              },
                              "RecurringAmount": {
                                "type": "number"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (Successful)",
                          "value": {
                            "ResponseCode": "0000",
                            "Message": "Success",
                            "Data": {
                              "OrderId": "1d0e06bc689c4de2bb87a54829a89640",
                              "Description": "My recurring service",
                              "RecurringInvoiceId": "8ae267e31af748d4934b0420be6f47f0",
                              "TransactionId": "5814152092296267804084",
                              "ClientReference": "8ae267e31af748d4934b0420be6f47f0",
                              "ExternalTransactionId": "5814152092296267804084",
                              "OrderDate": "2020-02-10 09:58:00",
                              "InvoiceEndDate": "2021-10-14 12:00:00",
                              "CustomerMobileNumber": "233246912184",
                              "Charges": 0.01,
                              "AmountAfterCharges": 0.19,
                              "AmountCharged": 0.2,
                              "Amount": 0.2,
                              "InitialAmount": 0.2,
                              "RecurringAmount": 0.1
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (Failed)",
                          "value": {
                            "ResponseCode": "2001",
                            "Message": "Failed",
                            "Data": {
                              "OrderId": "1d0e06bc689c4de2bb87a54829a89640",
                              "Description": "My recurring service",
                              "RecurringInvoiceId": "8ae267e31af748d4934b0420be6f47f0",
                              "TransactionId": "5814152092296267804084",
                              "ClientReference": "8ae267e31af748d4934b0420be6f47f0",
                              "ExternalTransactionId": null,
                              "OrderDate": "2020-02-10 09:58:00",
                              "InvoiceEndDate": "2021-10-14 12:00:00",
                              "CustomerMobileNumber": "233246912184",
                              "Charges": 0.01,
                              "AmountAfterCharges": 0.19,
                              "AmountCharged": 0.2,
                              "Amount": 0.2,
                              "InitialAmount": 0.2,
                              "RecurringAmount": 0.1
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "rip.hubtel.com",
          "alias": "rip",
          "service": "recurring-invoice",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/7.recurring_invoice.md",
            "business/api_documentation/lending_apis/9.recurring_invoice.md"
          ]
        }
      }
    },
    "/v1/rip/api/proxy/{accountNumber}/cancel-invoice/{id}": {
      "delete": {
        "operationId": "cancelRecurringInvoice",
        "summary": "Cancel a recurring invoice",
        "description": "Stops a recurring invoice so no further instalments are collected. A cancellation callback (`0005`) is POSTed to the invoice's `callbackUrl`. Instalments already collected are not refunded; use Refunds for that.",
        "tags": [
          "Recurring Invoice"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0000`, `0005`, `4000`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "responseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "message": {
                      "type": "string",
                      "description": "The message accompanying the response code. This gives a brief description of the response from the API."
                    }
                  }
                },
                "examples": {
                  "sampleCancelInvoiceResponse": {
                    "summary": "SAMPLE CANCEL INVOICE RESPONSE",
                    "value": {
                      "responseCode": "0000",
                      "message": "Your request has been processed successfully"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Message": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "OrderId": {},
                              "Description": {
                                "type": "string"
                              },
                              "RecurringInvoiceId": {
                                "type": "string"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "OrderDate": {
                                "type": "string"
                              },
                              "InvoiceEndDate": {
                                "type": "string"
                              },
                              "CustomerMobileNumber": {
                                "type": "string"
                              },
                              "Charges": {
                                "type": "number"
                              },
                              "AmountAfterCharges": {
                                "type": "number"
                              },
                              "AmountCharged": {
                                "type": "number"
                              },
                              "Amount": {
                                "type": "number"
                              },
                              "InitialAmount": {
                                "type": "number"
                              },
                              "RecurringAmount": {
                                "type": "number"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "forCancelInvoice": {
                          "summary": "SAMPLE CALLBACK FOR CANCEL INVOICE",
                          "value": {
                            "ResponseCode": "0005",
                            "Message": "The Repeat Payment Invoice has been Deactivated Successfully",
                            "Data": {
                              "OrderId": null,
                              "Description": "My recurring service",
                              "RecurringInvoiceId": "8ae267e31af748d4934b0420be6f47f0",
                              "TransactionId": "",
                              "ClientReference": "",
                              "ExternalTransactionId": "",
                              "OrderDate": "2020-02-10 09:58:00",
                              "InvoiceEndDate": "2021-10-14 12:00:00",
                              "CustomerMobileNumber": "233246912184",
                              "Charges": 0.01,
                              "AmountAfterCharges": 0.19,
                              "AmountCharged": 0.2,
                              "Amount": 0.2,
                              "InitialAmount": 0.2,
                              "RecurringAmount": 0.1
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "rip.hubtel.com",
          "alias": "rip",
          "service": "recurring-invoice",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0000",
            "0005",
            "4000"
          ],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/7.recurring_invoice.md",
            "business/api_documentation/lending_apis/9.recurring_invoice.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/fdd76c884e614b1c8f669a3207b09a98": {
      "post": {
        "operationId": "mtnAirtimeTopUp",
        "summary": "Top up MTN airtime",
        "description": "Tops up MTN airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the airtime value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The airtime amount, with at most 2 decimal places, for example 0.50."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "233246912184",
                "Amount": 0.5,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestEVD01011"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestEVD01011",
                        "Amount": 0.85,
                        "TransactionId": "a50e003d8d8741d49a3a0dc677a7576b",
                        "Meta": {
                          "Commission": "0.05"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/f4be83ad74c742e185224fdae1304800": {
      "post": {
        "operationId": "telecelAirtimeTopUp",
        "summary": "Top up Telecel airtime",
        "description": "Tops up Telecel airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the airtime value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The airtime value to be sent during this transaction. Eg: 0.5"
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "233206439599",
                "Amount": 0.5,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestEVD01021"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees"
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestEVD01021",
                        "Amount": 0.85,
                        "TransactionId": "0305e0d79b2048e5b57647d4acaff939",
                        "Meta": {
                          "Commission": "0.0280"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/dae2142eb5a14c298eace60240c09e4b": {
      "post": {
        "operationId": "airtelTigoAirtimeTopUp",
        "summary": "Top up AirtelTigo airtime",
        "description": "Tops up AirtelTigo airtime from your disbursement (prepaid) balance. The response is pending (`0001`); the final result is POSTed to `CallbackUrl`. Destination test numbers follow Send Money payout scenarios (e.g. `233240000101` succeeds). Maximum amount is 100 cedis.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the airtime value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The airtime value to be sent during this transaction. Eg: 0.5"
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "233574126849",
                "Amount": 0.5,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestEVD01027"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Data": {
                        "ClientReference": "TestEVD01027",
                        "Amount": 0.85,
                        "TransactionId": "a1579b60845444babfe13945660a679d",
                        "Meta": {
                          "Commission": "0.35"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/b230733cd56b4a0fad820e39f66bc27c": {
      "get": {
        "operationId": "listMtnDataBundles",
        "summary": "List MTN data bundles",
        "description": "Returns the available MTN data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233246912184",
            "description": "The destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "An array of available bundle packages."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the bundle."
                    },
                    "Value": {
                      "type": "string",
                      "description": "The value of the data bundle. The desired value will then be used in the request body of the MTN Data topup endpoint."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The transaction amount. The actual cost of the data bundle."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Successful",
                      "Data": [
                        {
                          "Display": "17.79MB",
                          "Value": "data_bundle_1",
                          "Amount": 0.5
                        },
                        {
                          "Display": "Kokrokoo 400MB, 5am to 8am",
                          "Value": "kokrokoo_bundle_1",
                          "Amount": 1.24
                        },
                        {
                          "Display": "35.57MB",
                          "Value": "data_bundle_2",
                          "Amount": 1
                        },
                        {
                          "Display": "349.24MB",
                          "Value": "data_bundle_3",
                          "Amount": 3
                        },
                        {
                          "Display": "718.91MB",
                          "Value": "data_bundle_4",
                          "Amount": 10
                        },
                        {
                          "Display": "1.19GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 20
                        },
                        {
                          "Display": "2.38GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 40
                        },
                        {
                          "Display": "3.58GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 60
                        },
                        {
                          "Display": "4.77GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 80
                        },
                        {
                          "Display": "7.87GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 100
                        },
                        {
                          "Display": "9.44GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 120
                        },
                        {
                          "Display": "11.80GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 150
                        },
                        {
                          "Display": "26.50GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 200
                        },
                        {
                          "Display": "33.13GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 250
                        },
                        {
                          "Display": "39.62GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 299
                        },
                        {
                          "Display": "92.88GB",
                          "Value": "flexi_data_bundle",
                          "Amount": 350
                        },
                        {
                          "Display": "Video 135.69MB",
                          "Value": "video_bundle_1",
                          "Amount": 1
                        },
                        {
                          "Display": "Video 678.43MB",
                          "Value": "video_bundle_2",
                          "Amount": 5
                        },
                        {
                          "Display": "Video 1.33GB",
                          "Value": "video_bundle_3",
                          "Amount": 10
                        },
                        {
                          "Display": "Social Media 70.87MB",
                          "Value": "social_media_bundle_1",
                          "Amount": 1
                        },
                        {
                          "Display": "Social Media 354.36MB",
                          "Value": "social_media_bundle_2",
                          "Amount": 5
                        },
                        {
                          "Display": "Social Media 708.72MB",
                          "Value": "social_media_bundle_3",
                          "Amount": 10
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "buyMtnDataBundle",
        "summary": "Buy MTN data bundle",
        "description": "Pays for MTN data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the data bundle value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note: If the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail."
                      }
                    },
                    "description": "Contains the bundle name and key.",
                    "required": [
                      "bundle"
                    ]
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference",
                  "Extradata"
                ]
              },
              "example": {
                "Destination": "233246912184",
                "Amount": 0.5,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestDATA01013",
                "Extradata": {
                  "bundle": "data_bundle_1"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "An object containing the Commission parameter."
                        }
                      },
                      "description": "An object containing the fields listed below."
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state.",
                      "Data": {
                        "ClientReference": "TestDATA01013",
                        "Amount": 0.5,
                        "TransactionId": "5b40e2e40fd4441d80b69b352f3103c7",
                        "Meta": {
                          "Commission": "0.0198"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "number"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "number"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 0.5,
                              "TransactionId": "5b40e2e40fd4441d80b69b352f3103c7",
                              "ClientReference": "TestDATA01013",
                              "Description": "GHC 0.50 (data_bundle_1) has been sent to 233242825109 on January 24, 2024.",
                              "ExternalTransactionId": "2024012416592042208544402",
                              "Amount": 0.5,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0198"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/fa27127ba039455da04a2ac8a1613e00": {
      "get": {
        "operationId": "listTelecelDataBundles",
        "summary": "List Telecel data bundles",
        "description": "Returns the available Telecel data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233206439599",
            "description": "The destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of available bundle packages."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the bundle."
                    },
                    "Value": {
                      "type": "string",
                      "description": "The value of the data bundle. The desired value will then be used in the request body of the Telecel Data topup endpoint."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The transaction amount. The actual cost of the data bundle."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Successful",
                      "Data": [
                        {
                          "Display": " Dual Recharge",
                          "Value": " 5.7 GB",
                          "Amount": 50
                        },
                        {
                          "Display": "Chat Monthly",
                          "Value": "2 GB",
                          "Amount": 20
                        },
                        {
                          "Display": "Starter Monthly",
                          "Value": "560 MB",
                          "Amount": 10
                        },
                        {
                          "Display": " Streamer Weekly",
                          "Value": "460 MB",
                          "Amount": 5
                        },
                        {
                          "Display": "Browser Daily",
                          "Value": "61 MB",
                          "Amount": 1
                        },
                        {
                          "Display": " Starter Daily",
                          "Value": "25 MB",
                          "Amount": 0.5
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "buyTelecelDataBundle",
        "summary": "Buy Telecel data bundle",
        "description": "Pays for Telecel data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the data bundle value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note: If the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail."
                      }
                    },
                    "description": "Contains the bundle name and key.",
                    "required": [
                      "bundle"
                    ]
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference",
                  "Extradata"
                ]
              },
              "example": {
                "Destination": "233206439419",
                "Amount": 0.5,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestDATA01025",
                "Extradata": {
                  "bundle": "25 MB"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestDATA01025",
                        "Amount": 1,
                        "TransactionId": " 558625e7f8c94feb82ddf50cb33bc557",
                        "Meta": {
                          "Commission": "0.0140"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 1,
                              "TransactionId": "d28c20baebdc44f19be7b62c922ac9c6",
                              "ClientReference": "TestDATAwithkaks",
                              "Description": "OK : ",
                              "ExternalTransactionId": "767732a31701457c99bfcfad773fbedd",
                              "Amount": 1,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0269"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/b9a1aa246ba748f9ba01ca4cdbb3d1d3": {
      "get": {
        "operationId": "listTelecelBroadbandBundles",
        "summary": "List Telecel broadband",
        "description": "Returns the available Telecel broadband for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "0302450262",
            "description": "The landline number on the broadband account. E.g.: \"0302450262\""
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of objects containing account details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the account detail. Eg: name, account, etc."
                    },
                    "Value": {
                      "type": "string",
                      "description": "This shows the actual account detail of the “Display” parameter. E.g: the Account name (John Manu) is shown under a display key of value “name”."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The amount. This parameter is usually zero."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "",
                      "Data": [
                        {
                          "Display": "name",
                          "Value": "BOATENG PHILIP NANA BEDIAKO",
                          "Amount": 0
                        },
                        {
                          "Display": "amountDue",
                          "Value": "0.00",
                          "Amount": 0
                        },
                        {
                          "Display": "account",
                          "Value": "0302450262",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "buyTelecelBroadbandBundle",
        "summary": "Buy Telecel broadband",
        "description": "Pays for Telecel broadband from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The landline number on the broadband account. E.g.: \"0302450262\""
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The top-up amount."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "A unique string identifying the transaction."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The broadband number."
                      }
                    },
                    "description": "Contains the bundle name and key.",
                    "required": [
                      "bundle"
                    ]
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference",
                  "Extradata"
                ]
              },
              "example": {
                "Destination": "0302450262",
                "Amount": 1,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "567680374084840678",
                "Extradata": {
                  "bundle": "P0444101"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state.",
                      "Data": {
                        "ClientReference": "567680374084840678",
                        "Amount": 1,
                        "TransactionId": "f12b0054fe884769910e187cac833ba1",
                        "Meta": {
                          "Commission": "0.0000"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 1,
                              "TransactionId": "f12b0054fe884769910e187cac833ba1",
                              "ClientReference": "567680374084840678",
                              "Description": "Status: ADSL[0302450262] Successful; Other Details: 0#09FG08211340576120512#1.00#2.00Operation successfully.; Reference: 09FG08211340576120512",
                              "ExternalTransactionId": "09FG08211340576120512",
                              "Amount": 1,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0000"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/06abd92da459428496967612463575ca": {
      "get": {
        "operationId": "listAirtelTigoDataBundles",
        "summary": "List AirtelTigo data bundles",
        "description": "Returns the available AirtelTigo data bundles for a phone number, supplied in the destination field. Use the returned bundle values when submitting a payment.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233273833933",
            "description": "The destination number which will be receiving the data bundle value. This parameter is to be placed in the URL. Not in the request body."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of available bundle packages."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the bundle."
                    },
                    "Value": {
                      "type": "string",
                      "description": "The value of the data bundle. The desired value will then be used in the request body of the AT Data top-up endpoint."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The transaction amount. The actual cost of the data bundle."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Select bundle",
                      "Data": [
                        {
                          "Display": "80MB Bundle (GHS 1)",
                          "Value": "DATA1",
                          "Amount": 1
                        },
                        {
                          "Display": "200MB Bundle (GHS 2",
                          "Value": "DATA2",
                          "Amount": 2
                        },
                        {
                          "Display": "650MB Bundle (GHS 5)",
                          "Value": "DATA5",
                          "Amount": 5
                        },
                        {
                          "Display": "2GB Bundle (GHS 10)",
                          "Value": "DATA10",
                          "Amount": 10
                        },
                        {
                          "Display": "5GB Bundle (GHS 20)",
                          "Value": "DATA20",
                          "Amount": 20
                        },
                        {
                          "Display": "11GB Bundle (GHS 50)",
                          "Value": "DATA50",
                          "Amount": 50
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "buyAirtelTigoDataBundle",
        "summary": "Buy AirtelTigo data bundle",
        "description": "Pays for AirtelTigo data bundles from your prepaid balance; look up a phone number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The destination account to receive the data bundle value."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The cost of the data bundle being purchased. This amount is known by querying for the available data bundles to purchase."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The desired bundle being purchased. This parameter is taken from the “value” response parameter on the MTN Data Bundle Query Endpoint. Note that: if the Bundle and the amount do not correspond to what is taken from the Data Bundle Query endpoint, the transaction will fail."
                      }
                    },
                    "description": "Contains the bundle name and key.",
                    "required": [
                      "bundle"
                    ]
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference",
                  "Extradata"
                ]
              },
              "example": {
                "Destination": "233273833933",
                "Amount": 50,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestDATA01090",
                "Extradata": {
                  "bundle": "DATA50"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestDATA01090",
                        "Amount": 50,
                        "TransactionId": " 6bf810b8f7d5424a973165b36cc1817e",
                        "Meta": {
                          "Commission": "0.0560"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 50,
                              "TransactionId": "d880a1a9cdb64e6b861f06b51b4f7504",
                              "ClientReference": "TestDATA2024Ka",
                              "Description": "Operation successful.",
                              "ExternalTransactionId": "999000002777764224",
                              "Amount": 50,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0333"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/297a96656b5846ad8b00d5d41b256ea7": {
      "get": {
        "operationId": "lookUpDstvAccount",
        "summary": "Look up a DStv account",
        "description": "Confirms a smartcard or customer number exists for DStv and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "7029864396",
            "description": "The DStv account number."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of objects containing account details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the account detail. Eg: name, account, etc."
                    },
                    "Value": {
                      "type": "string",
                      "description": "This shows the actual account detail of the “Display” parameter. Eg: the Account name (John Manu) is shown under a display key of value “name”."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The amount. This parameter is usually zero."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "",
                      "Data": [
                        {
                          "Display": "name",
                          "Value": "John Barnes",
                          "Amount": 0
                        },
                        {
                          "Display": "amountDue",
                          "Value": "0.00",
                          "Amount": 0
                        },
                        {
                          "Display": "account",
                          "Value": "7029864396",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "payDstvBill",
        "summary": "Pay DStv",
        "description": "Pays for DStv from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The DStv account number."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The top-up amount, with at most 2 decimal places, for example 0.50."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "7029864396",
                "Amount": 50,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestTV0101"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key"
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestTV0101",
                        "Amount": 50,
                        "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
                        "Meta": {
                          "Commission": "0.3500"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 50,
                              "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
                              "ClientReference": "TestTV0101",
                              "Description": "Status: DSTV[7038632593] Successful; Other Details: Approved or completed successfully; Reference: 09FG05151003161426526",
                              "ExternalTransactionId": "09FG05151003161426526",
                              "Amount": 50,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.35"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/e6ceac7f3880435cb30b048e9617eb41": {
      "get": {
        "operationId": "lookUpGotvAccount",
        "summary": "Look up a GOtv account",
        "description": "Confirms a smartcard or customer number exists for GOtv and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "7032371505",
            "description": "The GOtv account number."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of objects containing account details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the account detail. Eg: name, account, etc."
                    },
                    "Value": {
                      "type": "string",
                      "description": "This shows the actual account detail of the “Display” parameter. Eg: the Account name (John Manu) is shown under a display key of value “name”."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The amount. This parameter is usually zero."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "",
                      "Data": [
                        {
                          "Display": "name",
                          "Value": "Senya Duku",
                          "Amount": 0
                        },
                        {
                          "Display": "amountDue",
                          "Value": "-201.00",
                          "Amount": 0
                        },
                        {
                          "Display": "account",
                          "Value": "7032371505",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "payGotvBill",
        "summary": "Pay GOtv",
        "description": "Pays for GOtv from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The GOtv account number."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The top-up amount, with at most 2 decimal places, for example 0.50."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "7032371505",
                "Amount": 50,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestTV0106"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees"
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key"
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestTV0106",
                        "Amount": 50,
                        "TransactionId": "9c6d65a2a7834759b44919a1621b80fd",
                        "Meta": {
                          "Commission": "0.3500"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 50,
                              "TransactionId": "f871040095cd46ca9389f1b447d80c5e",
                              "ClientReference": "TestTV0106",
                              "Description": "Status: DSTV[7032371505] Successful; Other Details: Approved or completed successfully; Reference: 09FG05151017535304132",
                              "ExternalTransactionId": "09FG05151017535304132",
                              "Amount": 50,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.3500"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/6598652d34ea4112949c93c079c501ce": {
      "get": {
        "operationId": "lookUpStartimesAccount",
        "summary": "Look up a StarTimes account",
        "description": "Confirms a smartcard or customer number exists for StarTimes and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "02190617357",
            "description": "The StarTimes TV account number."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of objects containing account details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "Account details, including the name, account number and bouquet."
                    },
                    "Value": {
                      "type": "string",
                      "description": "This shows the actual account detail of the “Display” parameter. Eg: the Account name (John Nti) is shown under a display key of value “name”."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The amount being paid for in this transaction. As this is a Query endpoint and not a POST endpoint, this parameter will usually be empty."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Successful",
                      "Data": [
                        {
                          "Display": "Name",
                          "Value": "Joe Nti",
                          "Amount": 0
                        },
                        {
                          "Display": "Account Number",
                          "Value": "02190617357",
                          "Amount": 0
                        },
                        {
                          "Display": "Bouquet",
                          "Value": "DTH_Super ",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "payStartimesBill",
        "summary": "Pay StarTimes",
        "description": "Pays for StarTimes from your prepaid balance; look up a smartcard or customer number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The StarTimes TV account number."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The top-up amount, with at most 2 decimal places, for example 0.50."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "02190617357",
                "Amount": 50,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestTV0108"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, with at most 2 decimal places, for example 0.50."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key"
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": "TestTV0108",
                        "Amount": 50,
                        "TransactionId": "0bf810b8f7d5424a973165b36cc1817e",
                        "Meta": {
                          "Commission": "0.3500"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 50,
                              "TransactionId": "0bf810b8f7d5424a973165b36cc1817e",
                              "ClientReference": "TestTV0108",
                              "Description": "Payment made was Successfully",
                              "ExternalTransactionId": "2000020594",
                              "Amount": 50,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.3500"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/e6d6bac062b5499cb1ece1ac3d742a84": {
      "get": {
        "operationId": "lookUpEcgMeter",
        "summary": "Look up a ECG prepaid meter",
        "description": "Confirms a meter number exists for ECG prepaid and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233541312238",
            "description": "The mobile number linked to a particular ECG meter whose details need to be checked."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "An array of objects containing meter details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "Meter details, including the name and account number."
                    },
                    "Value": {
                      "type": "string",
                      "description": "The meter number."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The outstanding amount to be paid on the meter."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Successful",
                      "Data": [
                        {
                          "Display": " THOMAS ANANE (G131099826)",
                          "Value": " G131099826",
                          "Amount": -1.1432
                        },
                        {
                          "Display": " ADEMAU LYDIA (24911947992)",
                          "Value": " 24911947992",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "topUpEcgMeter",
        "summary": "Pay ECG prepaid",
        "description": "Pays for ECG prepaid from your prepaid balance; look up a meter number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The mobile phone number linked to a particular ECG Meter."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The amount to be topped up on the meter."
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The reference number that is provided by the API user."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The meter or account number to top up."
                      }
                    },
                    "description": "Contains the bundle details.",
                    "required": [
                      "bundle"
                    ]
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "CallbackUrl",
                  "ClientReference",
                  "Extradata"
                ]
              },
              "example": {
                "Destination": "233541312238",
                "Amount": 1,
                "CallbackUrl": "https://webhook.site/fcad8efa-624b-44c8-a129-b1c01921191d",
                "ClientReference": "TestDATA2022052105",
                "Extradata": {
                  "bundle": "P09137104"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "Object that contains Commission key"
                        }
                      }
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state",
                      "Data": {
                        "ClientReference": " TestDATA2022052105",
                        "Amount": 1,
                        "TransactionId": " 6bf810b8f7d5424a973165b36cc1817e",
                        "Meta": {
                          "Commission": "0.0171"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 1,
                              "TransactionId": "6bf810b8f7d5424a973165b36cc1817e",
                              "ClientReference": "TestDATA2022052105",
                              "Description": "success",
                              "ExternalTransactionId": "7289775",
                              "Amount": 1,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0171"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/cs/commissionservices/{accountNumber}/6c1e8a82d2e84feeb8bfd6be2790d71d": {
      "get": {
        "operationId": "lookUpGhanaWaterMeter",
        "summary": "Look up a Ghana Water meter",
        "description": "Confirms a meter number exists for Ghana Water and returns the account holder's name and details. Show the returned name so the customer can confirm the account before paying.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "091019010006",
            "description": "The meter number to be queried."
          },
          {
            "name": "mobile",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "233242825109",
            "description": "The customer's phone number."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response code received from the response payload."
                    },
                    "Label": {
                      "type": "string",
                      "description": "The response label from the service provider. Usually the same as the message."
                    },
                    "Data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "Display": {
                            "type": "string"
                          },
                          "Value": {
                            "type": "string"
                          },
                          "Amount": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An array of objects containing account details."
                    },
                    "Display": {
                      "type": "string",
                      "description": "The display key for the account detail. E.g.: name, amount, sessionID etc. Note: The sessionID is unique per request."
                    },
                    "Value": {
                      "type": "string",
                      "description": "This shows the actual account detail of the “Display” parameter. E.g.: the Account name (Amakye Frempong) is shown under a display key of value “name”."
                    },
                    "Amount": {
                      "type": "number",
                      "description": "The amount, this parameter is usually zero."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0000",
                      "Message": "Successful",
                      "Label": "Successful",
                      "Data": [
                        {
                          "Display": "name",
                          "Value": "AMAKYE FREMPONG",
                          "Amount": 0
                        },
                        {
                          "Display": "amountDue",
                          "Value": "371.89",
                          "Amount": 371.89
                        },
                        {
                          "Display": "sessionId",
                          "Value": "3792660ccf0e687b64cdb3f776fd6e368ca4260d",
                          "Amount": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      },
      "post": {
        "operationId": "payGhanaWaterBill",
        "summary": "Pay Ghana Water",
        "description": "Pays for Ghana Water from your prepaid balance; look up a meter number first with the matching query. The response is pending and the final result arrives at your callback URL. Use a unique ClientReference to identify the transaction. Check its status before retrying an uncertain payment. You earn commission on each successful sale.",
        "tags": [
          "Commission Services"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **disbursement account number** (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the disbursement account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Destination": {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  "Amount": {
                    "type": "number",
                    "description": "The top-up amount, with at most 2 decimal places, for example 0.50."
                  },
                  "Extradata": {
                    "type": "object",
                    "properties": {
                      "bundle": {
                        "type": "string",
                        "description": "The meter account number."
                      },
                      "Email": {
                        "type": "string"
                      },
                      "SessionId": {
                        "type": "string",
                        "description": "Generated from meter query. This is unique per transaction."
                      }
                    },
                    "description": "Contains the customer’s phone number, email address and session ID.",
                    "required": [
                      "bundle",
                      "SessionId"
                    ]
                  },
                  "CallbackUrl": {
                    "type": "string",
                    "description": "Used to receive the callback for the transaction from Hubtel. See below for a sample callback."
                  },
                  "ClientReference": {
                    "type": "string",
                    "description": "The unique reference number that is provided by the API user."
                  },
                  "E-mail": {
                    "type": "string",
                    "description": "The customer’s email address."
                  }
                },
                "required": [
                  "Destination",
                  "Amount",
                  "Extradata",
                  "E-mail",
                  "CallbackUrl",
                  "ClientReference"
                ]
              },
              "example": {
                "Destination": "233548359582",
                "Amount": 1,
                "Extradata": {
                  "bundle": "080706070056",
                  "Email": "username@example.com",
                  "SessionId": "e7a113dd2f8b08b85a149d3db40854de2f13410b"
                },
                "CallbackUrl": "https://webhook.site/b630fc60-8041-470c-b13e-ee69ef15b2c2",
                "ClientReference": "275438fce23f4983b9583abdf0ded9c7e"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Business result in ResponseCode: `0001`, `2001`, `4000`, `4075`. See the response code table.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ResponseCode": {
                      "type": "string",
                      "description": "The unique response code on the status of the transaction."
                    },
                    "Message": {
                      "type": "string",
                      "description": "The description of the response received from the API call that is related to the ResponseCode."
                    },
                    "Data": {
                      "type": "object",
                      "properties": {
                        "ClientReference": {
                          "type": "string",
                          "description": "The reference number that was initially provided by the API user in the request payload."
                        },
                        "Amount": {
                          "type": "number",
                          "description": "The transaction amount, minus the charges/fees."
                        },
                        "TransactionId": {
                          "type": "string",
                          "description": "The unique ID to identify a transaction."
                        },
                        "Meta": {
                          "type": "object",
                          "properties": {
                            "Commission": {
                              "type": "string"
                            }
                          },
                          "description": "This object contains details of the commission charged."
                        }
                      },
                      "description": "Details of the initiated top-up."
                    },
                    "Commission": {
                      "type": "string",
                      "description": "The commission gained for the transaction."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "ResponseCode": "0001",
                      "Message": "Transaction pending. Expect callback request for final state.",
                      "Data": {
                        "ClientReference": "509e21d2b1104036a64ca44b30613f1ftestt",
                        "Amount": 1,
                        "TransactionId": "7304f27f559a4680a912ce7ec19e6d2a",
                        "Meta": {
                          "Commission": "0.0070"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/CallbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountDebited": {
                                "type": "integer"
                              },
                              "TransactionId": {
                                "type": "string"
                              },
                              "ClientReference": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "ExternalTransactionId": {
                                "type": "string"
                              },
                              "Amount": {
                                "type": "integer"
                              },
                              "Charges": {
                                "type": "integer"
                              },
                              "Meta": {
                                "type": "object",
                                "properties": {
                                  "Commission": {
                                    "type": "string"
                                  }
                                }
                              },
                              "RecipientName": {}
                            }
                          }
                        }
                      },
                      "examples": {
                        "callback1": {
                          "summary": "SAMPLE CALLBACK",
                          "value": {
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountDebited": 1,
                              "TransactionId": "7b4ada5714754d8bb8150712fd837ed9",
                              "ClientReference": "509e21d2b1104036a64ca44b30613f1ftesttt",
                              "Description": "Success",
                              "ExternalTransactionId": "050a9435954148e1b4e3bd112a7bc4802cee8886",
                              "Amount": 1,
                              "Charges": 0,
                              "Meta": {
                                "Commission": "0.0007"
                              },
                              "RecipientName": null
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "cs.hubtel.com",
          "alias": "cs",
          "service": "commission-services",
          "review": "curated",
          "simulated": true,
          "allowlist": true,
          "responseCodes": [
            "0001",
            "2001",
            "4000",
            "4075"
          ],
          "idempotency": "ClientReference must be unique per purchase.",
          "legacySources": [
            "business/api_documentation/payment_apis/8.commission_services.md"
          ]
        }
      }
    },
    "/v1/invoicing/api/v2.0/invoice/{accountNumber}/simple": {
      "post": {
        "operationId": "createInvoice",
        "summary": "Send an invoice",
        "description": "Creates an itemised invoice with optional discounts, fees and taxes and sends it by SMS and email with a payment link. Hubtel sends a callback when the invoice is paid.",
        "tags": [
          "Invoicing"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceNumber": {
                    "type": "string",
                    "description": "The invoice number associated with the invoice. It must not be empty and should be a maximum of 20 characters in length."
                  },
                  "dueDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "This refers to the due date for payment in ISO 8601 format. E.g. \"2027-12-31T23:59:59Z\""
                  },
                  "createdBy": {
                    "type": "string",
                    "description": "The person creating the invoice."
                  },
                  "customerName": {
                    "type": "string",
                    "description": "The name of the customer."
                  },
                  "customerPhoneNumber": {
                    "type": "string",
                    "description": "The customer’s phone number, used to deliver the invoice."
                  },
                  "customerEmail": {
                    "type": "string",
                    "description": "The customer’s email address, used to deliver the invoice."
                  },
                  "note": {
                    "type": "string",
                    "description": "This is a brief description of the invoice."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "description": "Item description."
                        },
                        "quantity": {
                          "type": "number",
                          "description": "Item quantity. Must be at least `1`."
                        },
                        "unitPrice": {
                          "type": "number",
                          "description": "Item unit price. Must be at least `0.01`."
                        }
                      },
                      "required": [
                        "quantity",
                        "unitPrice"
                      ]
                    },
                    "description": "This helps create the invoice."
                  },
                  "discounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Discount name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Discount value. Must be at least `0.01`. Flat discounts must not exceed the invoice subtotal. Percentage discounts must not exceed `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Discounts to apply to the invoice."
                  },
                  "fees": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Fee name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Fee value. Must be greater than `0`. Percentage fees must be between `0.01` and `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Fees to apply to the invoice."
                  },
                  "appliedTaxes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Tax name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Tax value. Must be greater than `0`. Percentage taxes must be between `0.01` and `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Taxes to apply to the invoice."
                  },
                  "callbackUrl": {
                    "type": "string",
                    "description": "The callback URL expected to receive the final status of the payment."
                  }
                },
                "required": [
                  "invoiceNumber",
                  "dueDate",
                  "createdBy",
                  "customerPhoneNumber",
                  "items",
                  "callbackUrl"
                ]
              },
              "example": {
                "invoiceNumber": "12345",
                "dueDate": "2026-06-02T23:59:59Z",
                "createdBy": "John",
                "customerName": "John",
                "customerPhoneNumber": "233555654321",
                "customerEmail": "username@domain.com",
                "note": "Test simple invoice",
                "items": [
                  {
                    "description": "Item",
                    "quantity": 1,
                    "unitPrice": 1
                  }
                ],
                "discounts": [
                  {
                    "name": "Discount",
                    "value": 1,
                    "isFlat": false
                  }
                ],
                "fees": [
                  {
                    "name": "Fee",
                    "value": 2,
                    "isFlat": true
                  }
                ],
                "appliedTaxes": [
                  {
                    "name": "Tax",
                    "value": 1,
                    "isFlat": false
                  }
                ],
                "callbackUrl": "https://webhook.site/4636d303-1234-440f-9920-68e34f43ebf9"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "A brief message indicating the success or failure of the invoice creation."
                    },
                    "code": {
                      "type": "number",
                      "description": "The status code"
                    },
                    "data": {
                      "type": "object",
                      "items": {},
                      "properties": {
                        "invoiceId": {
                          "type": "string",
                          "description": "A unique identifier for the generated invoice"
                        },
                        "paymentUrl": {
                          "type": "string",
                          "description": "Payments can be made via this URL."
                        }
                      },
                      "description": "An object containing the required data response from the Invoicing API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Invoice has been created.",
                      "code": 201,
                      "data": {
                        "invoiceId": "pY3HfCTXZb",
                        "paymentUrl": "https://approval.biz/pY3HfCTXZb"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "Status": {
                            "type": "string"
                          },
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountPaid": {
                                "type": "integer"
                              },
                              "InvoiceId": {
                                "type": "string"
                              },
                              "ReceiptNumber": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "PaymentMethod": {
                                "type": "string"
                              },
                              "PaymentChannel": {
                                "type": "string"
                              },
                              "PayeePhoneNumber": {
                                "type": "string"
                              },
                              "PaymentDetailId": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (successful)",
                          "value": {
                            "Status": "Successful",
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountPaid": 1,
                              "InvoiceId": "pY3HfCTXZb",
                              "ReceiptNumber": "748f4a9f0d664369899a74c820d95c21",
                              "Description": "The MTN Mobile Money payment has been approved and processed successfully.",
                              "PaymentMethod": "mobilemoney",
                              "PaymentChannel": "mtn-gh",
                              "PayeePhoneNumber": "233555654321",
                              "PaymentDetailId": "f41ce50e-a966-4bf6-87b6-869065736f01"
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (failed)",
                          "value": {
                            "Status": "Failed",
                            "ResponseCode": "0001",
                            "Data": {
                              "AmountPaid": 1,
                              "InvoiceId": "CddHP6ze87",
                              "ReceiptNumber": "0bf49eede470421985e079e22aee43d4",
                              "Description": "The MTN Mobile Money user has reached counter or balance limits, has insufficient funds or is missing permissions",
                              "PaymentMethod": "mobilemoney",
                              "PaymentChannel": "mtn-gh",
                              "PayeePhoneNumber": "233555654321",
                              "PaymentDetailId": "529f61a2-cdad-42bc-87fb-12d919f048be"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "invoicing.hubtel.com",
          "alias": "invoicing",
          "service": "invoicing",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/9.invoicing.md"
          ]
        }
      }
    },
    "/v1/invoicing/api/v2.0/invoice/{accountNumber}/repeat": {
      "post": {
        "operationId": "createRepeatInvoice",
        "summary": "Send a repeating invoice",
        "description": "Creates an invoice that is re-issued on a schedule, optionally debited automatically. Use it for rent, fees or memberships billed the same way each period.",
        "tags": [
          "Invoicing"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceNumber": {
                    "type": "string",
                    "description": "The invoice number associated with the invoice. It must not be empty and should be a maximum of 20 characters in length."
                  },
                  "dueDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "This refers to the due date for payment in ISO 8601 format. E.g. \"2027-12-31T23:59:59Z\""
                  },
                  "createdBy": {
                    "type": "string",
                    "description": "The person creating the invoice."
                  },
                  "customerName": {
                    "type": "string",
                    "description": "The name of the customer."
                  },
                  "customerPhoneNumber": {
                    "type": "string",
                    "description": "The customer’s phone number, used to deliver the invoice."
                  },
                  "customerEmail": {
                    "type": "string",
                    "description": "The customer’s email address, used to deliver the invoice."
                  },
                  "note": {
                    "type": "string",
                    "description": "This is a brief description of the invoice."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "description": "Item description."
                        },
                        "quantity": {
                          "type": "number",
                          "description": "Item quantity. Must be at least `1`."
                        },
                        "unitPrice": {
                          "type": "number",
                          "description": "Item unit price. Must be at least `0.01`."
                        }
                      },
                      "required": [
                        "quantity",
                        "unitPrice"
                      ]
                    },
                    "description": "This helps create the invoice."
                  },
                  "frequency": {
                    "type": "string",
                    "description": "Repeat frequency. Allowed values are `Daily`, `Weekly`, `Monthly`, and `Yearly`."
                  },
                  "shouldBeAutoDebited": {
                    "type": "boolean",
                    "description": "Set to `true` for auto-debit repeat invoices. Set to `false` for non-auto-debit repeat invoices."
                  },
                  "discounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Discount name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Discount value. Must be at least `0.01`. Flat discounts must not exceed the invoice subtotal. Percentage discounts must not exceed `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Discounts to apply to the invoice."
                  },
                  "fees": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Fee name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Fee value. Must be greater than `0`. Percentage fees must be between `0.01` and `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Fees to apply to the invoice."
                  },
                  "appliedTaxes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Tax name."
                        },
                        "value": {
                          "type": "number",
                          "description": "Tax value. Must be greater than `0`. Percentage taxes must be between `0.01` and `100`."
                        },
                        "isFlat": {
                          "type": "boolean",
                          "description": "`true` when `value` is a fixed amount. `false` when `value` is a percentage."
                        }
                      },
                      "required": [
                        "name",
                        "value",
                        "isFlat"
                      ]
                    },
                    "description": "Taxes to apply to the invoice."
                  },
                  "callbackUrl": {
                    "type": "string",
                    "description": "The callback URL expected to receive the final status of the payment."
                  }
                },
                "required": [
                  "invoiceNumber",
                  "dueDate",
                  "createdBy",
                  "customerPhoneNumber",
                  "items",
                  "frequency",
                  "shouldBeAutoDebited",
                  "callbackUrl"
                ]
              },
              "example": {
                "invoiceNumber": "12345",
                "dueDate": "2026-06-02T23:59:59Z",
                "createdBy": "John",
                "customerName": "John",
                "customerPhoneNumber": "233555654321",
                "customerEmail": "username@domain.com",
                "note": "Test repeat invoice",
                "items": [
                  {
                    "description": "Item",
                    "quantity": 1,
                    "unitPrice": 1
                  }
                ],
                "frequency": "Daily",
                "shouldBeAutoDebited": false,
                "discounts": [
                  {
                    "name": "Discount",
                    "value": 1,
                    "isFlat": false
                  }
                ],
                "fees": [
                  {
                    "name": "Fee",
                    "value": 2,
                    "isFlat": true
                  }
                ],
                "appliedTaxes": [
                  {
                    "name": "Tax",
                    "value": 1,
                    "isFlat": false
                  }
                ],
                "callbackUrl": "https://webhook.site/4636d303-1234-440f-9920-68e34f43ebf9"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "A brief message indicating the success or failure of the invoice creation."
                    },
                    "code": {
                      "type": "number",
                      "description": "The status code"
                    },
                    "data": {
                      "type": "object",
                      "items": {},
                      "properties": {
                        "invoiceId": {
                          "type": "string",
                          "description": "A unique identifier for the generated invoice"
                        },
                        "paymentUrl": {
                          "type": "string",
                          "description": "Payments can be made via this URL."
                        }
                      },
                      "description": "An object containing the required data response from the Invoicing API."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Invoice has been created.",
                      "code": 201,
                      "data": {
                        "invoiceId": "pY3HfCTXZb",
                        "paymentUrl": "https://approval.biz/pY3HfCTXZb"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "callbacks": {
          "finalStatus": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "Final status callback",
                "description": "Hubtel sends the final result to this URL in a POST request. Callbacks aren't signed: accept them only from Hubtel's callback address and confirm with a status check. See /docs/callbacks.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "Status": {
                            "type": "string"
                          },
                          "ResponseCode": {
                            "type": "string"
                          },
                          "Data": {
                            "type": "object",
                            "properties": {
                              "AmountPaid": {
                                "type": "integer"
                              },
                              "InvoiceId": {
                                "type": "string"
                              },
                              "ReceiptNumber": {
                                "type": "string"
                              },
                              "Description": {
                                "type": "string"
                              },
                              "PaymentMethod": {
                                "type": "string"
                              },
                              "PaymentChannel": {
                                "type": "string"
                              },
                              "PayeePhoneNumber": {
                                "type": "string"
                              },
                              "PaymentDetailId": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      },
                      "examples": {
                        "successful": {
                          "summary": "SAMPLE CALLBACK (successful)",
                          "value": {
                            "Status": "Successful",
                            "ResponseCode": "0000",
                            "Data": {
                              "AmountPaid": 1,
                              "InvoiceId": "pY3HfCTXZb",
                              "ReceiptNumber": "748f4a9f0d664369899a74c820d95c21",
                              "Description": "The MTN Mobile Money payment has been approved and processed successfully.",
                              "PaymentMethod": "mobilemoney",
                              "PaymentChannel": "mtn-gh",
                              "PayeePhoneNumber": "233555654321",
                              "PaymentDetailId": "f41ce50e-a966-4bf6-87b6-869065736f01"
                            }
                          }
                        },
                        "failed": {
                          "summary": "SAMPLE CALLBACK (failed)",
                          "value": {
                            "Status": "Failed",
                            "ResponseCode": "0001",
                            "Data": {
                              "AmountPaid": 1,
                              "InvoiceId": "CddHP6ze87",
                              "ReceiptNumber": "0bf49eede470421985e079e22aee43d4",
                              "Description": "The MTN Mobile Money user has reached counter or balance limits, has insufficient funds or is missing permissions",
                              "PaymentMethod": "mobilemoney",
                              "PaymentChannel": "mtn-gh",
                              "PayeePhoneNumber": "233555654321",
                              "PaymentDetailId": "529f61a2-cdad-42bc-87fb-12d919f048be"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Acknowledged."
                  }
                }
              }
            }
          }
        },
        "x-hubtel": {
          "host": "invoicing.hubtel.com",
          "alias": "invoicing",
          "service": "invoicing",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/9.invoicing.md"
          ]
        }
      }
    },
    "/v1/invoicing/api/v2.0/invoice/{accountNumber}/{invoiceId}/status-check": {
      "get": {
        "operationId": "getInvoiceStatus",
        "summary": "Get an invoice's status",
        "description": "Returns whether an invoice is paid or unpaid and the payment details. Use it to reconcile if the invoice callback didn't arrive.",
        "tags": [
          "Invoicing"
        ],
        "parameters": [
          {
            "name": "accountNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench."
          },
          {
            "name": "invoiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "The description of response received from the API that is related to the response code."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The response code of the API after the request."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "description": "Indicates whether a particular transaction is Paid, Pending or Failed."
                        },
                        "payments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "amountPaid": {
                                "type": "integer"
                              },
                              "amountDue": {
                                "type": "integer"
                              },
                              "paymentMethod": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              },
                              "paymentDate": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "orderId": {
                                "type": "string"
                              },
                              "receiptNumber": {
                                "type": "string"
                              }
                            }
                          },
                          "description": "Provides details about individual transactions."
                        }
                      },
                      "description": "An object containing the required data response from the API."
                    },
                    "id": {
                      "type": "string",
                      "description": "The unique ID used to identify a Hubtel transaction."
                    },
                    "amountPaid": {
                      "type": "number",
                      "description": "The amount paid."
                    },
                    "amountDue": {
                      "type": "number",
                      "description": "The total amount the customer is expected to pay."
                    },
                    "paymentMethod": {
                      "type": "string",
                      "description": "The payment method used."
                    },
                    "paymentDate": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The payment date."
                    },
                    "orderId": {
                      "type": "number",
                      "description": "Another identifier for the payment. It can be null."
                    },
                    "receiptNumber": {
                      "type": "string",
                      "description": "The receipt Number associated with the payment. It can be null."
                    }
                  }
                },
                "examples": {
                  "paid": {
                    "summary": "SAMPLE RESPONSE (Paid)",
                    "value": {
                      "message": "Success",
                      "code": 200,
                      "data": {
                        "status": "Fully Paid",
                        "payments": [
                          {
                            "id": "f41ce50e-a966-4bf6-87b6-869065736f01",
                            "amountPaid": 1,
                            "amountDue": 1,
                            "paymentMethod": "mobilemoney",
                            "status": "Paid",
                            "paymentDate": "2026-06-01T13:28:49.456255",
                            "orderId": "6cf9a542-7fff-459f-afcf-a4b42207e7d2",
                            "receiptNumber": "748f4a9f0d664369899a74c820d95c21"
                          }
                        ]
                      }
                    }
                  },
                  "unpaid": {
                    "summary": "SAMPLE RESPONSE (Unpaid)",
                    "value": {
                      "message": "Success",
                      "code": 200,
                      "data": {
                        "status": "Not Paid",
                        "paymentDetails": [
                          {
                            "id": "53243fca-64e1-4525-9861-2998d4d65f7f",
                            "amountPaid": 0,
                            "amountDue": 1,
                            "paymentMethod": null,
                            "status": "Pending",
                            "paymentDate": "0001-01-01T00:00:00",
                            "orderId": null,
                            "receiptNumber": null
                          },
                          {
                            "id": "e75511bc-bfeb-48d5-8376-478dc81dea9b",
                            "amountPaid": 1,
                            "amountDue": 1,
                            "paymentMethod": "mobilemoney",
                            "status": "Failed",
                            "paymentDate": "2026-06-01T13:27:15.342735",
                            "orderId": "91695f47-d3d6-4ab5-bb21-97f63d5b35c1",
                            "receiptNumber": "b9ab09a04ec54cdd87e75f9409149c54"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "invoicing.hubtel.com",
          "alias": "invoicing",
          "service": "invoicing",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/payment_apis/9.invoicing.md"
          ]
        }
      }
    },
    "/v1/gs-callback/callback": {
      "post": {
        "operationId": "reportServiceFulfilment",
        "summary": "Report service fulfilment",
        "description": "Tells Hubtel whether your programmable service delivered what the customer paid for in a USSD session. Report whether fulfilment succeeded or failed so the payment can be settled or reversed.",
        "tags": [
          "Programmable Services"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "SessionId": {
                    "type": "string"
                  },
                  "OrderId": {
                    "type": "string"
                  },
                  "ServiceStatus": {
                    "type": "string"
                  },
                  "MetaData": {}
                }
              },
              "example": {
                "SessionId": "3c796dac28174f739de4262d08409c51",
                "OrderId": "ac3307bcca7445618071e6b0e41b50b5",
                "ServiceStatus": "success",
                "MetaData": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "gs-callback.hubtel.com:9055",
          "alias": "gs-callback",
          "service": "programmable-services",
          "review": "curated",
          "simulated": false,
          "allowlist": false,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/programmable_services/1.documentation.md"
          ]
        }
      }
    },
    "/v1/mcs-score/api/v1/score-check": {
      "post": {
        "operationId": "checkCreditScore",
        "summary": "Check a credit score",
        "description": "Returns a consumer's credit score and a basic debt summary from the credit bureau. Requires a lending agreement and the customer's consent; operated by mycreditscore.com.gh.",
        "tags": [
          "Lending: credit data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ghanaCard": {
                    "type": "string",
                    "description": "Ghana Card ID."
                  },
                  "identifierName": {
                    "type": "string",
                    "description": "Full name of the individual."
                  },
                  "identifierNationality": {
                    "type": "string",
                    "description": "Nationality of the individual."
                  },
                  "identifierDob": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date of birth in ISO 8601 format."
                  },
                  "identifierMobileNumber": {
                    "type": "string",
                    "description": "Mobile phone number."
                  },
                  "currencyOfCredit": {
                    "type": "string",
                    "description": "Currency of the credit (e.g., GHS)."
                  },
                  "creditAmount": {
                    "type": "number",
                    "description": "Amount of credit requested."
                  },
                  "purposeOfCheck": {
                    "type": "string",
                    "description": "Purpose for requesting the check."
                  },
                  "typeOfCreditFacility": {
                    "type": "string",
                    "description": "Type of credit facility (e.g., Personal Loan)."
                  },
                  "lenderReferenceId": {
                    "type": "string",
                    "description": "Unique reference ID provided by the lender."
                  },
                  "voterId": {
                    "type": "string",
                    "description": "Voter ID number of the borrower."
                  },
                  "passportNumber": {
                    "type": "string",
                    "description": "Passport number of the borrower."
                  },
                  "driverLicenseNumber": {
                    "type": "string",
                    "description": "Driver’s license number of the borrower."
                  },
                  "ssnitNumber": {
                    "type": "string",
                    "description": "Social Security and National Insurance Trust number."
                  },
                  "nhisNumber": {
                    "type": "string",
                    "description": "National Health Insurance Scheme number."
                  },
                  "tin": {
                    "type": "string",
                    "description": "Tax Identification Number."
                  }
                },
                "required": [
                  "ghanaCard",
                  "identifierDob",
                  "creditAmount"
                ]
              },
              "example": {
                "ghanaCard": "GHA-000000000-0",
                "identifierName": "John Doe",
                "identifierNationality": "Ghanaian",
                "identifierDob": "1999-06-15T00:00:00Z",
                "identifierMobileNumber": "2330000000",
                "currencyOfCredit": "GHS",
                "creditAmount": 100,
                "purposeOfCheck": "Loan Application",
                "typeOfCreditFacility": "Personal Loan",
                "lenderReferenceId": "LOAN-REF-12345",
                "voterId": "VO678232",
                "passportNumber": "PAS67894",
                "driverLicenseNumber": "234286382",
                "ssnitNumber": "E10089883497",
                "nhisNumber": "N49834984",
                "tin": "T19892323"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message."
                    },
                    "code": {
                      "type": "number",
                      "description": "HTTP status code."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "isCreditScoreActivated": {
                          "type": "string",
                          "description": "Indicates if credit score is activated."
                        },
                        "creditScoreIfActive": {
                          "type": "number",
                          "description": "Credit score value if activated."
                        },
                        "name": {
                          "type": "string",
                          "description": "Full name of the individual."
                        },
                        "minScore": {
                          "type": "number",
                          "description": "Lowest score in score range."
                        },
                        "maxScore": {
                          "type": "number",
                          "description": "Highest score in score range."
                        },
                        "scoreBand": {
                          "type": "string",
                          "description": "A simple label that shows how good the person's credit score is."
                        },
                        "scoreBandInterpretation": {
                          "type": "string",
                          "description": "A short explanation of what that credit score level means to lenders."
                        }
                      },
                      "description": "Contains score check result."
                    },
                    "subCode": {
                      "type": "string",
                      "description": "Sub-code indicating further status."
                    },
                    "errors": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Error details, if any."
                    },
                    "responseCode": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Additional response code info, if available."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Your score check request was successful",
                      "code": 200,
                      "data": {
                        "isCreditScoreActivated": "true",
                        "creditScoreIfActive": 711,
                        "name": "John Doe",
                        "minScore": 300,
                        "maxScore": 850,
                        "scoreBand": "Very Good",
                        "scoreBandInterpretation": "Shows lenders that you are a good investment with a strong credit history and qualify for very favorable interest rates and loan terms. Lenders will consider you a reliable borrower."
                      },
                      "subCode": "0",
                      "errors": null,
                      "responseCode": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "score-api.mycreditscore.com.gh",
          "alias": "mcs-score",
          "service": "lending",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/lending_apis/1.credit_score_check.md"
          ]
        }
      }
    },
    "/v1/mcs-profile/api/v1/consumer-identity-report": {
      "post": {
        "operationId": "getConsumerIdentityReport",
        "summary": "Get a consumer identity report",
        "description": "Returns the identity details the credit bureau holds for a consumer, to support identity verification. Requires the customer's consent; operated by mycreditscore.com.gh.",
        "tags": [
          "Lending: credit data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nationalIds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "identityType": {
                          "type": "string"
                        },
                        "identityNumber": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "ID(s) of the individual."
                  },
                  "names": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Names of the individual."
                  },
                  "numberAndEmail": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mobileNumber": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Mobile phone number and email of the individual."
                  },
                  "dateOfBirth": {
                    "type": "string",
                    "description": "Date of birth (YYYY-MM-DD)."
                  },
                  "gender": {
                    "type": "string",
                    "description": "Gender of the individual."
                  },
                  "reasonForRequest": {
                    "type": "string",
                    "description": "Purpose for consumer identity report request (e.g., KYC)."
                  },
                  "requestVerification": {
                    "type": "boolean",
                    "description": "True or False."
                  },
                  "ghanaCardNumber": {
                    "type": "string",
                    "description": "Ghana Card ID number of the borrower (e.g., GHA-000000000-2)."
                  },
                  "identitySource": {
                    "type": "string",
                    "description": "Source of consumer identity report (e.g., General Report)."
                  },
                  "reportType": {
                    "type": "string",
                    "description": "Type of report (e.g., CreditReport)."
                  },
                  "requestedBy": {
                    "type": "string",
                    "description": "Name of person submitting the identity report request."
                  },
                  "requestedTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Datetime in ISO 8601 format."
                  }
                },
                "required": [
                  "nationalIds",
                  "names",
                  "numberAndEmail",
                  "dateOfBirth",
                  "gender",
                  "reasonForRequest",
                  "requestVerification",
                  "ghanaCardNumber",
                  "identitySource",
                  "reportType",
                  "requestedBy"
                ]
              },
              "example": {
                "nationalIds": [
                  {
                    "identityType": "passport",
                    "identityNumber": "0000000"
                  },
                  {
                    "identityType": "driverlicense",
                    "identityNumber": "0000000"
                  },
                  {
                    "identityType": "ghanacard",
                    "identityNumber": "GHA-000000000-2"
                  }
                ],
                "names": [
                  {
                    "firstName": "John",
                    "lastName": "Doe",
                    "middleName": ""
                  }
                ],
                "numberAndEmail": [
                  {
                    "mobileNumber": "233000000000",
                    "email": "John.Doe@example.com"
                  }
                ],
                "dateOfBirth": "2007-11-21",
                "gender": "male",
                "reasonForRequest": "KYC",
                "requestVerification": true,
                "ghanaCardNumber": "GHA-000000000-2",
                "identitySource": "General Report",
                "reportType": "CreditReport",
                "requestedBy": "John Doe",
                "requestedTime": "2025-11-28T14:01:22.2373367Z"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message."
                    },
                    "code": {
                      "type": "number",
                      "description": "HTTP status code."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "primaryIdentities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "identifier": {
                                "type": "string",
                                "description": "Type of identity attribute."
                              },
                              "dataValue": {
                                "type": "string",
                                "description": "Value of the identity attribute."
                              },
                              "dataProvider": {
                                "type": "string",
                                "description": "Source institution providing the data."
                              },
                              "dataSource": {
                                "type": "string",
                                "description": "Originating system source."
                              },
                              "discoveryDate": {
                                "type": "string",
                                "description": "Date when the data was first reported."
                              },
                              "status": {
                                "type": "string",
                                "description": "Identity status."
                              }
                            }
                          },
                          "description": "Primary identity records."
                        },
                        "associatedIdentities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "identifier": {
                                "type": "string"
                              },
                              "dataValue": {
                                "type": "string"
                              },
                              "dataProvider": {
                                "type": "string"
                              },
                              "dataSource": {
                                "type": "string"
                              },
                              "discoveryDate": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "description": "Linked or supporting identities ."
                        }
                      },
                      "description": "Contains score check result."
                    },
                    "subCode": {
                      "type": "string",
                      "description": "Sub-code indicating further status."
                    },
                    "errors": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Error details, if any."
                    },
                    "responseCode": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Additional response code info, if available."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Your request for consumer identity report was successful",
                      "code": 200,
                      "data": {
                        "primaryIdentities": [
                          {
                            "identifier": "First Name",
                            "dataValue": "John Doe",
                            "dataProvider": "Prudential Bank Limited",
                            "dataSource": "Prudential Bank Limited",
                            "discoveryDate": "2025-11-01",
                            "status": "Active"
                          }
                        ],
                        "associatedIdentities": [
                          {
                            "identifier": "Forename",
                            "dataValue": "John Doe",
                            "dataProvider": "NIA",
                            "dataSource": "NIA",
                            "discoveryDate": "2019 December 14",
                            "status": "Active"
                          }
                        ]
                      },
                      "subCode": "0",
                      "errors": null,
                      "responseCode": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "profile-api.mycreditscore.com.gh",
          "alias": "mcs-profile",
          "service": "lending",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/lending_apis/2.consumer_identity_report.md"
          ]
        }
      }
    },
    "/v1/mcs-basic-credit-report/api/v1/consumer-profile-detail": {
      "post": {
        "operationId": "getConsumerProfile",
        "summary": "Get a consumer credit profile",
        "description": "Returns a detailed credit profile: accounts, balances and payment behaviour. Requires customer consent; operated by mycreditscore.com.gh.",
        "tags": [
          "Lending: credit data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ghanaCard": {
                    "type": "string",
                    "description": "Ghana Card ID."
                  },
                  "identifierName": {
                    "type": "string",
                    "description": "Full name of the individual."
                  },
                  "identifierNationality": {
                    "type": "string",
                    "description": "Nationality of the individual."
                  },
                  "identifierDob": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date of birth in ISO 8601 format."
                  },
                  "identifierMobileNumber": {
                    "type": "string",
                    "description": "Mobile phone number."
                  },
                  "currencyOfCredit": {
                    "type": "string",
                    "description": "Currency of the credit (e.g., GHS)."
                  },
                  "creditAmount": {
                    "type": "number",
                    "description": "Amount of credit requested."
                  },
                  "purposeOfCheck": {
                    "type": "string",
                    "description": "Purpose for performing the score check."
                  },
                  "typeOfCreditFacility": {
                    "type": "string",
                    "description": "Type of credit facility (e.g., Personal Loan)."
                  },
                  "lenderReferenceId": {
                    "type": "string",
                    "description": "Unique reference ID provided by the lender."
                  },
                  "voterId": {
                    "type": "string",
                    "description": "Voter ID number of the borrower."
                  },
                  "passportNumber": {
                    "type": "string",
                    "description": "Passport number of the borrower."
                  },
                  "driverLicenseNumber": {
                    "type": "string",
                    "description": "Driver’s license number of the borrower."
                  },
                  "ssnitNumber": {
                    "type": "string",
                    "description": "Social Security and National Insurance Trust number."
                  },
                  "nhisNumber": {
                    "type": "string",
                    "description": "National Health Insurance Scheme number."
                  },
                  "tin": {
                    "type": "string",
                    "description": "Tax Identification Number."
                  }
                },
                "required": [
                  "ghanaCard",
                  "identifierDob",
                  "creditAmount"
                ]
              },
              "example": {
                "ghanaCard": "GHA-000000000-0",
                "identifierName": "",
                "identifierNationality": "",
                "identifierDob": "1999-06-15T00:00:00Z",
                "identifierMobileNumber": "",
                "currencyOfCredit": "",
                "creditAmount": 1,
                "purposeOfCheck": "",
                "typeOfCreditFacility": "",
                "lenderReferenceId": "",
                "voterId": "",
                "passportNumber": "",
                "driverLicenseNumber": "",
                "ssnitNumber": "",
                "nhisNumber": "",
                "tin": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message."
                    },
                    "code": {
                      "type": "number",
                      "description": "HTTP status code."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "records": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "demographicData": {
                                "type": "object",
                                "properties": {
                                  "ghanaCard": {
                                    "type": "string",
                                    "description": "Ghana Card number."
                                  },
                                  "fullName": {
                                    "type": "string",
                                    "description": "Full legal name."
                                  },
                                  "dateOfBirth": {
                                    "type": "string",
                                    "description": "Date of birth."
                                  },
                                  "gender": {
                                    "type": "string",
                                    "description": "Gender."
                                  },
                                  "address": {
                                    "type": "string",
                                    "description": "Residential address."
                                  },
                                  "phoneNumbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "List of mobile numbers."
                                  },
                                  "email": {
                                    "type": "string",
                                    "description": "Email address."
                                  }
                                },
                                "description": "Core consumer demographic details."
                              },
                              "employmentHistory": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "employmentType": {
                                      "type": "string",
                                      "description": "Nature of employment."
                                    },
                                    "employerName": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Employer name."
                                    },
                                    "employerAddress1": {},
                                    "employerAddress2": {},
                                    "employerAddress3": {},
                                    "employerAddress4": {},
                                    "employerAddressPostalCode": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Postal code."
                                    },
                                    "dateOfEmployment": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Employment start date."
                                    },
                                    "occupation": {
                                      "type": "string",
                                      "description": "Job role."
                                    },
                                    "employeePayrollNumber": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Payroll reference."
                                    },
                                    "incomeCurrency": {
                                      "type": "string"
                                    },
                                    "income": {
                                      "type": "string",
                                      "description": "Income value (may be numeric formatted as string)."
                                    },
                                    "workTelephone": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "Employer contact."
                                    },
                                    "employerAddress1-4": {
                                      "type": "string",
                                      "description": "Address components."
                                    }
                                  }
                                },
                                "description": "Employment history records."
                              },
                              "borrowerAddressHistory": {
                                "type": "array",
                                "items": {},
                                "description": "Historical address details."
                              },
                              "nationalId": {
                                "type": "string",
                                "description": "Primary Ghana Card number."
                              },
                              "tin": {
                                "type": "array",
                                "items": {},
                                "description": "Tax Identification Numbers."
                              },
                              "nhis": {
                                "type": "array",
                                "items": {},
                                "description": "NHIS numbers."
                              },
                              "ssnit": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "SSNIT numbers."
                              },
                              "driverLicense": {
                                "type": "array",
                                "items": {},
                                "description": "Driver license numbers."
                              },
                              "passport": {
                                "type": "array",
                                "items": {},
                                "description": "Passport numbers."
                              },
                              "voterId": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Voter ID numbers."
                              }
                            }
                          },
                          "description": "List of consumer profile detail records."
                        }
                      },
                      "description": "Contains score check result."
                    },
                    "subCode": {
                      "type": "string",
                      "description": "Sub-code indicating further status."
                    },
                    "errors": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Error details, if any."
                    },
                    "responseCode": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Additional response code info, if available."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Your request for profile detail was successful",
                      "code": 200,
                      "data": {
                        "records": [
                          {
                            "demographicData": {
                              "ghanaCard": "GHA-000000000-0",
                              "fullName": "John Doe",
                              "dateOfBirth": "1999-11-17",
                              "gender": "Male",
                              "address": "North, Eastern",
                              "phoneNumbers": [
                                "233000000000"
                              ],
                              "email": "john.doe@gmail.com"
                            },
                            "employmentHistory": [
                              {
                                "employmentType": "Self Employed",
                                "employerName": null,
                                "employerAddress1": null,
                                "employerAddress2": null,
                                "employerAddress3": null,
                                "employerAddress4": null,
                                "employerAddressPostalCode": null,
                                "dateOfEmployment": null,
                                "occupation": "Senior Software Engineer",
                                "employeePayrollNumber": null,
                                "incomeCurrency": "GHS",
                                "income": "1000",
                                "workTelephone": null
                              }
                            ],
                            "borrowerAddressHistory": [],
                            "nationalId": "GHA-0000000000-0",
                            "tin": [],
                            "nhis": [],
                            "ssnit": [
                              "E242489898902"
                            ],
                            "driverLicense": [],
                            "passport": [],
                            "voterId": [
                              "0000000000"
                            ]
                          }
                        ]
                      },
                      "subCode": "0",
                      "errors": null,
                      "responseCode": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "basic-credit-report-api.mycreditscore.com.gh",
          "alias": "mcs-basic-credit-report",
          "service": "lending",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/lending_apis/3.consumer_profile_detail.md"
          ]
        }
      }
    },
    "/v1/mcs-basic-credit-report/api/v1/credit-profile-summary": {
      "post": {
        "operationId": "getCreditProfileSummary",
        "summary": "Get a compact credit report",
        "description": "Returns a summary of a consumer's credit profile. Requires consent; operated by mycreditscore.com.gh.",
        "tags": [
          "Lending: credit data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ghanaCard": {
                    "type": "string",
                    "description": "Ghana Card ID."
                  },
                  "identifierName": {
                    "type": "string",
                    "description": "Full name of the individual."
                  },
                  "identifierNationality": {
                    "type": "string",
                    "description": "Nationality of the individual."
                  },
                  "identifierDob": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date of birth in ISO 8601 format."
                  },
                  "identifierMobileNumber": {
                    "type": "string",
                    "description": "Mobile phone number."
                  },
                  "currencyOfCredit": {
                    "type": "string",
                    "description": "Currency of the credit (e.g., GHS)."
                  },
                  "creditAmount": {
                    "type": "number",
                    "description": "Amount of credit requested."
                  },
                  "purposeOfCheck": {
                    "type": "string",
                    "description": "Purpose for performing the score check."
                  },
                  "typeOfCreditFacility": {
                    "type": "string",
                    "description": "Type of credit facility (e.g., Personal Loan)."
                  },
                  "lenderReferenceId": {
                    "type": "string",
                    "description": "Unique reference ID provided by the lender."
                  },
                  "voterId": {
                    "type": "string",
                    "description": "Voter ID number of the borrower."
                  },
                  "passportNumber": {
                    "type": "string",
                    "description": "Passport number of the borrower."
                  },
                  "driverLicenseNumber": {
                    "type": "string",
                    "description": "Driver’s license number of the borrower."
                  },
                  "ssnitNumber": {
                    "type": "string",
                    "description": "Social Security and National Insurance Trust number."
                  },
                  "nhisNumber": {
                    "type": "string",
                    "description": "National Health Insurance Scheme number."
                  },
                  "tin": {
                    "type": "string",
                    "description": "Tax Identification Number."
                  }
                },
                "required": [
                  "ghanaCard",
                  "identifierDob",
                  "creditAmount"
                ]
              },
              "example": {
                "ghanaCard": "GHA-000000000-2",
                "identifierName": "",
                "identifierNationality": "",
                "identifierDob": "1997-06-04T00:00:00Z",
                "identifierMobileNumber": "",
                "currencyOfCredit": "",
                "creditAmount": 1,
                "purposeOfCheck": "",
                "typeOfCreditFacility": "",
                "lenderReferenceId": "",
                "voterId": "",
                "passportNumber": "",
                "driverLicenseNumber": "",
                "ssnitNumber": "",
                "nhisNumber": "",
                "tin": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message."
                    },
                    "code": {
                      "type": "number",
                      "description": "HTTP status code."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "records": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "creditProfileSummary": {
                                "type": "object",
                                "properties": {
                                  "totalAccounts": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Total number of accounts per currency (values are number)."
                                  },
                                  "totalActiveAccounts": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Total number of active accounts (values are number)."
                                  },
                                  "totalClosedAccounts": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Total number of closed accounts (values are number)."
                                  },
                                  "totalMonthlyInstallment": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Total installment amount (values are number)."
                                  },
                                  "totalOutstandingDebt": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Total outstanding debt (values are number)."
                                  },
                                  "totalAccountsInArrears": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Accounts in arrears (values are number)."
                                  },
                                  "totalArrearAmount": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Arrear amounts (values are number)."
                                  },
                                  "totalAccountsInGoodStanding": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Good standing accounts (values are number)."
                                  },
                                  "totalJudgementDebts": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Judgment debt count (values are number)."
                                  },
                                  "totalJudgementAmount": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Judgment debt amount (values are number)."
                                  },
                                  "lastJudgementDate": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {},
                                      "GHS": {},
                                      "USD": {},
                                      "GBP": {},
                                      "EUR": {}
                                    },
                                    "description": "Last judgment date per currency (values are date or null)."
                                  },
                                  "totalDishonouredCheques": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Number of dishonoured cheques (values are number)."
                                  },
                                  "totalDishonouredChequeAmount": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {
                                        "type": "integer"
                                      },
                                      "GHS": {
                                        "type": "integer"
                                      },
                                      "USD": {
                                        "type": "integer"
                                      },
                                      "GBP": {
                                        "type": "integer"
                                      },
                                      "EUR": {
                                        "type": "integer"
                                      }
                                    },
                                    "description": "Dishonoured cheque amount (values are number)."
                                  },
                                  "lastBouncedChequeDate": {
                                    "type": "object",
                                    "properties": {
                                      "OTHERS": {},
                                      "GHS": {},
                                      "USD": {},
                                      "GBP": {},
                                      "EUR": {}
                                    },
                                    "description": "Last cheque bounce date per currency (values are date or null)."
                                  }
                                },
                                "description": "Currency-based credit summary metrics."
                              },
                              "nationalId": {
                                "type": "string",
                                "description": "Ghana Card number."
                              },
                              "tin": {
                                "type": "array",
                                "items": {},
                                "description": "Tax Identification Numbers."
                              },
                              "nhis": {
                                "type": "array",
                                "items": {},
                                "description": "NHIS numbers."
                              },
                              "ssnit": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "SSNIT numbers."
                              },
                              "driverLicense": {
                                "type": "array",
                                "items": {},
                                "description": "Driver license numbers."
                              },
                              "passport": {
                                "type": "array",
                                "items": {},
                                "description": "Passport numbers."
                              },
                              "voterId": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Voter ID list."
                              }
                            }
                          },
                          "description": "List of consumer profile summary records."
                        }
                      },
                      "description": "Contains score check result."
                    },
                    "subCode": {
                      "type": "string",
                      "description": "Sub-code indicating further status."
                    },
                    "errors": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Error details, if any."
                    },
                    "responseCode": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Additional response code info, if available."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Your request for credit profile summary was successful",
                      "code": 200,
                      "data": {
                        "records": [
                          {
                            "creditProfileSummary": {
                              "totalAccounts": {
                                "OTHERS": 0,
                                "GHS": 240,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalActiveAccounts": {
                                "OTHERS": 0,
                                "GHS": 3,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalClosedAccounts": {
                                "OTHERS": 0,
                                "GHS": 237,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalMonthlyInstallment": {
                                "OTHERS": 0,
                                "GHS": 740,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalOutstandingDebt": {
                                "OTHERS": 0,
                                "GHS": 243,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalAccountsInArrears": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalArrearAmount": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalAccountsInGoodStanding": {
                                "OTHERS": 0,
                                "GHS": 240,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalJudgementDebts": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalJudgementAmount": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "lastJudgementDate": {
                                "OTHERS": null,
                                "GHS": null,
                                "USD": null,
                                "GBP": null,
                                "EUR": null
                              },
                              "totalDishonouredCheques": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "totalDishonouredChequeAmount": {
                                "OTHERS": 0,
                                "GHS": 0,
                                "USD": 0,
                                "GBP": 0,
                                "EUR": 0
                              },
                              "lastBouncedChequeDate": {
                                "OTHERS": null,
                                "GHS": null,
                                "USD": null,
                                "GBP": null,
                                "EUR": null
                              }
                            },
                            "nationalId": "GHA-000000000-2",
                            "tin": [],
                            "nhis": [],
                            "ssnit": [
                              "E10876767220019"
                            ],
                            "driverLicense": [],
                            "passport": [],
                            "voterId": [
                              "880000003358"
                            ]
                          }
                        ]
                      },
                      "subCode": "0",
                      "errors": null,
                      "responseCode": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "basic-credit-report-api.mycreditscore.com.gh",
          "alias": "mcs-basic-credit-report",
          "service": "lending",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/lending_apis/4.consumer_compact_report.md"
          ]
        }
      }
    },
    "/v1/mcs-score-debt/api/v1/repayment-history": {
      "post": {
        "operationId": "getRepaymentHistory",
        "summary": "Get repayment history",
        "description": "Returns a consumer's history of repaying credit, month by month. Requires customer consent; operated by mycreditscore.com.gh.",
        "tags": [
          "Lending: credit data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ghanaCard": {
                    "type": "string",
                    "description": "Ghana Card ID."
                  },
                  "identifierName": {
                    "type": "string",
                    "description": "Full name of the individual."
                  },
                  "identifierNationality": {
                    "type": "string",
                    "description": "Nationality of the individual."
                  },
                  "identifierDob": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Date of birth in ISO 8601 format."
                  },
                  "identifierMobileNumber": {
                    "type": "string",
                    "description": "Mobile phone number."
                  },
                  "currencyOfCredit": {
                    "type": "string",
                    "description": "Currency of the credit (e.g., GHS)."
                  },
                  "creditAmount": {
                    "type": "number",
                    "description": "Amount of credit requested."
                  },
                  "purposeOfCheck": {
                    "type": "string",
                    "description": "Purpose for performing the score check."
                  },
                  "typeOfCreditFacility": {
                    "type": "string",
                    "description": "Type of credit facility (e.g., Personal Loan)."
                  },
                  "lenderReferenceId": {
                    "type": "string",
                    "description": "Unique reference ID provided by the lender."
                  },
                  "voterId": {
                    "type": "string",
                    "description": "Voter ID number of the borrower."
                  },
                  "passportNumber": {
                    "type": "string",
                    "description": "Passport number of the borrower."
                  },
                  "driverLicenseNumber": {
                    "type": "string",
                    "description": "Driver’s license number of the borrower."
                  },
                  "ssnitNumber": {
                    "type": "string",
                    "description": "Social Security and National Insurance Trust number."
                  },
                  "nhisNumber": {
                    "type": "string",
                    "description": "National Health Insurance Scheme number."
                  },
                  "tin": {
                    "type": "string",
                    "description": "Tax Identification Number."
                  }
                },
                "required": [
                  "ghanaCard",
                  "identifierDob",
                  "creditAmount"
                ]
              },
              "example": {
                "ghanaCard": "GHA-000000000-2",
                "identifierName": "",
                "identifierNationality": "",
                "identifierDob": "1997-06-04T00:00:00Z",
                "identifierMobileNumber": "",
                "currencyOfCredit": "",
                "creditAmount": 1,
                "purposeOfCheck": "",
                "typeOfCreditFacility": "",
                "lenderReferenceId": "",
                "voterId": "",
                "passportNumber": "",
                "driverLicenseNumber": "",
                "ssnitNumber": "",
                "nhisNumber": "",
                "tin": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message."
                    },
                    "code": {
                      "type": "number",
                      "description": "HTTP status code."
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "records": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "repaymentHistory": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "lenderName": {
                                      "type": "string",
                                      "description": "Name of the lending institution"
                                    },
                                    "accountNumber": {
                                      "type": "string",
                                      "description": "Account identifier."
                                    },
                                    "purposeOfFacility": {
                                      "type": "string",
                                      "description": "Purpose of credit facility."
                                    },
                                    "facilityType": {
                                      "type": "string",
                                      "description": "Credit facility type code."
                                    },
                                    "reportedDate": {
                                      "type": "string",
                                      "description": "Reporting date (YYYY-MM-DD)."
                                    },
                                    "lenderLogoUrl": {
                                      "type": "string",
                                      "description": "URL to lender logo."
                                    },
                                    "numberOfTimesOverdue": {
                                      "type": "object",
                                      "properties": {
                                        "days1To30": {
                                          "type": "number"
                                        },
                                        "days31To60": {
                                          "type": "number"
                                        },
                                        "days61To90": {
                                          "type": "number"
                                        },
                                        "days91To120": {
                                          "type": "number"
                                        },
                                        "days121To150": {
                                          "type": "number"
                                        },
                                        "days151To180": {
                                          "type": "number"
                                        },
                                        "days180Plus": {
                                          "type": "number"
                                        }
                                      },
                                      "description": "Aggregated overdue counts."
                                    },
                                    "repaymentHistory": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "date": {
                                            "type": "string",
                                            "format": "date-time"
                                          },
                                          "status": {
                                            "type": "string"
                                          },
                                          "amountOverdue": {
                                            "type": "integer"
                                          }
                                        }
                                      },
                                      "description": "Monthly repayment performance timeline."
                                    }
                                  }
                                },
                                "description": "List of repayment account entries."
                              },
                              "nationalId": {
                                "type": "string",
                                "description": "Ghana Card number."
                              },
                              "tin": {
                                "type": "array",
                                "items": {},
                                "description": "Tax Identification Numbers."
                              },
                              "nhis": {
                                "type": "array",
                                "items": {},
                                "description": "NHIS numbers."
                              },
                              "ssnit": {
                                "type": "array",
                                "items": {},
                                "description": "SSNIT numbers."
                              },
                              "driverLicense": {
                                "type": "array",
                                "items": {},
                                "description": "Driver license numbers."
                              },
                              "passport": {
                                "type": "array",
                                "items": {},
                                "description": "Passport numbers."
                              },
                              "voterId": {
                                "type": "array",
                                "items": {},
                                "description": "Voter ID list."
                              }
                            }
                          },
                          "description": "List of repayment history records."
                        }
                      },
                      "description": "Contains score check result."
                    },
                    "subCode": {
                      "type": "string",
                      "description": "Sub-code indicating further status."
                    },
                    "errors": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Error details, if any."
                    },
                    "responseCode": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Additional response code info, if available."
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "summary": "SAMPLE RESPONSE",
                    "value": {
                      "message": "Your request for repayment history was successful",
                      "code": 200,
                      "data": {
                        "records": [
                          {
                            "repaymentHistory": [
                              {
                                "lenderName": "Micro Money Lending Limited",
                                "accountNumber": "0000000",
                                "purposeOfFacility": "P",
                                "facilityType": "119",
                                "reportedDate": "20250930",
                                "lenderLogoUrl": "http://logo.png",
                                "numberOfTimesOverdue": {
                                  "days1To30": 0,
                                  "days31To60": 0,
                                  "days61To90": 0,
                                  "days91To120": 0,
                                  "days121To150": 0,
                                  "days151To180": 0,
                                  "days180Plus": 0
                                },
                                "repaymentHistory": [
                                  {
                                    "date": "2025-09-01T00:00:00Z",
                                    "status": "OK",
                                    "amountOverdue": 0
                                  }
                                ]
                              },
                              {
                                "lenderName": "Micro Money Lending Limited",
                                "accountNumber": "0000000",
                                "purposeOfFacility": "P",
                                "facilityType": "119",
                                "reportedDate": "20251110",
                                "lenderLogoUrl": "http://logo.png",
                                "numberOfTimesOverdue": {
                                  "days1To30": 0,
                                  "days31To60": 0,
                                  "days61To90": 0,
                                  "days91To120": 0,
                                  "days121To150": 0,
                                  "days151To180": 0,
                                  "days180Plus": 0
                                },
                                "repaymentHistory": [
                                  {
                                    "date": "2025-10-01T00:00:00Z",
                                    "status": "ND",
                                    "amountOverdue": null
                                  },
                                  {
                                    "date": "2025-11-01T00:00:00Z",
                                    "status": "OK",
                                    "amountOverdue": 0
                                  }
                                ]
                              }
                            ],
                            "nationalId": "GHA-000000000-6",
                            "tin": [],
                            "nhis": [],
                            "ssnit": [],
                            "driverLicense": [],
                            "passport": [],
                            "voterId": []
                          }
                        ]
                      },
                      "subCode": "0",
                      "errors": null,
                      "responseCode": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "x-hubtel": {
          "host": "score-debt-api.mycreditscore.com.gh",
          "alias": "mcs-score-debt",
          "service": "lending",
          "review": "curated",
          "simulated": false,
          "allowlist": true,
          "responseCodes": [],
          "idempotency": null,
          "legacySources": [
            "business/api_documentation/lending_apis/5.repayment_history.md"
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "Base64 of `API ID:API Key`."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid credentials.",
        "content": {
          "application/json": {
            "example": {
              "Message": "Client request keys do not match API keys on business",
              "ResponseCode": "4101",
              "Data": ""
            }
          }
        }
      },
      "Forbidden": {
        "description": "The caller's IP is not allowlisted for this service (production may time out instead), or a sandbox key lacks the scope.",
        "content": {
          "application/json": {
            "example": {
              "ResponseCode": "4030",
              "Message": "Requests from <your-ip> are not allowed for this service. Add the IP in Workbench → IP allowlist.",
              "code": "ip_not_allowlisted",
              "your_ip": "<your-ip>"
            }
          }
        }
      }
    }
  }
}