> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.sare.africa/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.sare.africa/_mcp/server.

# Create Bill Provider

POST http://localhost:8080/api/v3/bill-providers
Content-Type: multipart/form-data

Multipart request - device-signature filter is skipped regardless of method for multipart bodies.

Reference: https://apidocs.sare.africa/sare-core-api/wallet/bills-accounts-providers/create-bill-provider

## Request

### Body (multipart/form-data)

This endpoint expects a multipart form containing a file.

- `data` (string, required)
- `logo` (file, required)

## Response

### 201

Created

- `code` (integer, required)
- `data` (object, required)
  - `id` (string, required)
  - `name` (string, required)
  - `logoUrl` (string, required)
  - `category` (string, required)
  - `isActive` (boolean, required)
  - `createdAt` (datetime, required)
  - `updatedAt` (datetime, required)
  - `accountType` (string, required)
  - `mediumLogoUrl` (string, required)
  - `approvalStatus` (string, required)
  - `businessNumber` (string, required)
  - `shortDescription` (string, required)
  - `thumbnailLogoUrl` (string, required)
- `message` (string, required)

## Examples

**Request**

```json
{
  "data": "string",
  "logo": "<file: string>"
}
```

**Response**

```json
{
  "code": 201,
  "data": {
    "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
    "name": "Kenya Power",
    "logoUrl": "https://cdn.sare.africa/bill-providers/kplc.png",
    "category": "ELECTRICITY",
    "isActive": false,
    "createdAt": "2026-09-17T10:00:00Z",
    "updatedAt": "2026-09-17T10:00:00Z",
    "accountType": "METER_NO",
    "mediumLogoUrl": "https://cdn.sare.africa/bill-providers/kplc-medium.png",
    "approvalStatus": "PENDING",
    "businessNumber": "888880",
    "shortDescription": "Postpaid electricity token top-up",
    "thumbnailLogoUrl": "https://cdn.sare.africa/bill-providers/kplc-thumb.png"
  },
  "message": "Bill provider created successfully"
}
```

**SDK Code**

```python Wallet_Bills - Accounts & Providers_Create Bill Provider_example
import requests

url = "http://localhost:8080/api/v3/bill-providers"

files = { "logo": "open('string', 'rb')" }
payload = { "data": "string" }

response = requests.post(url, data=payload, files=files)

print(response.json())
```

```javascript Wallet_Bills - Accounts & Providers_Create Bill Provider_example
const url = 'http://localhost:8080/api/v3/bill-providers';
const form = new FormData();
form.append('data', 'string');
form.append('logo', 'string');

const options = {method: 'POST'};

options.body = form;

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Wallet_Bills - Accounts & Providers_Create Bill Provider_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:8080/api/v3/bill-providers"

	payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"data\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"logo\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")

	req, _ := http.NewRequest("POST", url, payload)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Wallet_Bills - Accounts & Providers_Create Bill Provider_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8080/api/v3/bill-providers")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"data\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"logo\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n"

response = http.request(request)
puts response.read_body
```

```java Wallet_Bills - Accounts & Providers_Create Bill Provider_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("http://localhost:8080/api/v3/bill-providers")
  .body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"data\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"logo\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n")
  .asString();
```

```php Wallet_Bills - Accounts & Providers_Create Bill Provider_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'http://localhost:8080/api/v3/bill-providers', [
  'multipart' => [
    [
        'name' => 'data',
        'contents' => 'string'
    ],
    [
        'name' => 'logo',
        'filename' => 'string',
        'contents' => null
    ]
  ]
]);

echo $response->getBody();
```

```csharp Wallet_Bills - Accounts & Providers_Create Bill Provider_example
using RestSharp;

var client = new RestClient("http://localhost:8080/api/v3/bill-providers");
var request = new RestRequest(Method.POST);
request.AddParameter("undefined", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"data\"\r\n\r\nstring\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"logo\"; filename=\"string\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Wallet_Bills - Accounts & Providers_Create Bill Provider_example
import Foundation
let parameters = [
  [
    "name": "data",
    "value": "string"
  ],
  [
    "name": "logo",
    "fileName": "string"
  ]
]

let boundary = "---011000010111000001101001"

var body = ""
var error: NSError? = nil
for param in parameters {
  let paramName = param["name"]!
  body += "--\(boundary)\r\n"
  body += "Content-Disposition:form-data; name=\"\(paramName)\""
  if let filename = param["fileName"] {
    let contentType = param["content-type"]!
    let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)
    if (error != nil) {
      print(error as Any)
    }
    body += "; filename=\"\(filename)\"\r\n"
    body += "Content-Type: \(contentType)\r\n\r\n"
    body += fileContent
  } else if let paramValue = param["value"] {
    body += "\r\n\r\n\(paramValue)"
  }
}

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8080/api/v3/bill-providers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```