---
updatedAt: 2025-11-10T23:56:26.000Z
agentTools:
  projectIndex: https://docs.interswitchgroup.com/llms.txt
---

# Create Bill

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "invoice",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://qa.interswitchng.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/paymentgateway/api/v1/paybill": {
      "post": {
        "summary": "Create Bill",
        "description": "",
        "operationId": "create-bill",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOlsicGFzc3BvcnQiLCJwcm9qZWN0LXgtbWVyY2hhbnQiXSwic2NvcGUiOlsicHJvZmlsZSJdLCJ2aXJ0dWFsX2FjY291bnRfcHJvdmlkZXIiOiJXRU1BX1BST0QiLCJjbGllbnRfbmFtZSI6IldFTUEgVVNTRCIsImp0aSI6ImZmNWQ2NGIzLWQyZDYtNDc2ZC05NmVlLTUzZTAzYjE4ZmE2YiIsImNsaWVudF9pZCI6IklLSUE3ODlEQkNFRkZGMTIxNkI5NUY1NkFGNDIzNDlERTY2QTlGOUZGQzA1In0.SiLNe80_MERRYrC_Zjz3Pv8nzeK2qYS6o1gNdYoWd3pIaY7JsMo-sZKCyseZae3jXqMwhpSfyAvCM85UkzgsywPFx4oJK_KGt-eqzZbSEiDLXQb-3qsjNCDCqUYxRGfkGesodWvoh22oot196kSlnyLheH6k_TYgV8Ud84lwnAuwz8ydidaubue42vFMeYEfrIy99E2rhP2KJjcg0XGVzUh4RvDu1IR9BSSFN8zWjVcX5EOHEUzxt9CsioojiXKfdQ6YGGh7iLjb1qT8VWzu_CmewhuIFPHdDoTS0mJfulbykSWN3_5m_TFZpR7G3Ybwd5DVTfX9xLbwNJm_C3TL-Q"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "merchantCode",
                  "payableCode",
                  "amount",
                  "redirectUrl",
                  "currencyCode",
                  "customerEmail"
                ],
                "properties": {
                  "merchantCode": {
                    "type": "string",
                    "description": "Your merchant code",
                    "default": "MX6072"
                  },
                  "payableCode": {
                    "type": "string",
                    "description": "Your payable code/pay item id",
                    "default": "9405967"
                  },
                  "amount": {
                    "type": "string",
                    "default": "5000"
                  },
                  "redirectUrl": {
                    "type": "string",
                    "description": "The URL you want the customer to be redirected to after a successful payment",
                    "default": "https://webpay-ui.k8.isw.la/demo-response"
                  },
                  "transactionReference": {
                    "type": "string",
                    "description": "Transaction Reference on your system you want the payment to be linked to if successful"
                  },
                  "customerId": {
                    "type": "string",
                    "description": "The customer id on your system",
                    "default": "johndoe@gmail.com"
                  },
                  "currencyCode": {
                    "type": "string",
                    "default": "566"
                  },
                  "customerEmail": {
                    "type": "string",
                    "description": "The email address of the customer",
                    "default": "johndoe@gmail.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 10275,\n    \"merchantCode\": \"MX6072\",\n    \"payableCode\": \"9405967\",\n    \"amount\": 5000,\n    \"surcharge\": null,\n    \"code\": \"200\",\n    \"transactionReference\": \"abcefdjaaajaa1\",\n    \"redirectUrl\": \"https://webpay-ui.k8.isw.la/demo-response\",\n    \"customerId\": \"ibro_07@yahoo.com\",\n    \"reference\": \"NSzaOhxSJNVspGz\",\n    \"customerEmail\": \"ibro_07@yahoo.com\",\n    \"currencyCode\": \"566\",\n    \"createdOn\": null,\n    \"enabled\": true,\n    \"paymentUrl\": \"https://project-x-merchant.k8.isw.la/paymentgateway/paybill/NSzaOhxSJNVspGz\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 10275,
                      "default": 0
                    },
                    "merchantCode": {
                      "type": "string",
                      "example": "MX6072"
                    },
                    "payableCode": {
                      "type": "string",
                      "example": "9405967"
                    },
                    "amount": {
                      "type": "integer",
                      "example": 5000,
                      "default": 0
                    },
                    "surcharge": {},
                    "code": {
                      "type": "string",
                      "example": "200"
                    },
                    "transactionReference": {
                      "type": "string",
                      "example": "abcefdjaaajaa1"
                    },
                    "redirectUrl": {
                      "type": "string",
                      "example": "https://webpay-ui.k8.isw.la/demo-response"
                    },
                    "customerId": {
                      "type": "string",
                      "example": "ibro_07@yahoo.com"
                    },
                    "reference": {
                      "type": "string",
                      "example": "NSzaOhxSJNVspGz"
                    },
                    "customerEmail": {
                      "type": "string",
                      "example": "ibro_07@yahoo.com"
                    },
                    "currencyCode": {
                      "type": "string",
                      "example": "566"
                    },
                    "createdOn": {},
                    "enabled": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "paymentUrl": {
                      "type": "string",
                      "example": "https://project-x-merchant.k8.isw.la/paymentgateway/paybill/NSzaOhxSJNVspGz"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```