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

# Self-billing

Issue invoices on behalf of your suppliers. Solvimon calculates what you owe a supplier from a subscription, and creates the invoice in the supplier's name with you as the buyer.

---

## Why this matters

Some platforms pay their partners instead of billing them: commission to resellers, royalties to creators, a revenue share to a marketplace seller. With self-billing, you create that invoice for the partner. The partner does not need to send you an invoice. You use the same meters, pricing plans and billing runs that you use for your customers.

## How it works

A self-billing invoice is a normal invoice where the two parties trade places. The customer in Solvimon is your **supplier**. Your billing entity is the **buyer** that issues the invoice on the supplier's behalf.

|                             | Standard invoice                        | Self-billing invoice         |
| --------------------------- | --------------------------------------- | ---------------------------- |
| Supplier (seller)           | Your billing entity                     | The customer                 |
| Buyer (bill to)             | The customer                            | Your billing entity          |
| Who pays                    | The customer pays you                   | You pay the customer         |
| Bank details on the invoice | Your billing entity's payment acceptors | The customer's bank accounts |
| Invoice numbers             | One series per billing entity           | One series per customer      |
| Invoice `billing_type`      | `DEFAULT`                               | `SELF_BILLING`               |

The customer must have the role `SELF_BILLING`. An invoice for that customer then becomes a self-billing invoice in one of two ways:

* The subscription has the variant `SELF_BILLING`. Every invoice from that subscription gets `billing_type: SELF_BILLING`.
* You create a one-off invoice with `billing_type: SELF_BILLING`.

The rest is the same as for a standard invoice. Solvimon prices the usage, runs the billing period and moves the invoice through `DRAFT` and `FINAL`.

```mermaid
sequenceDiagram
    participant P as Your platform
    participant S as Solvimon
    participant Sup as Supplier
    P->>S: Usage events for the supplier
    S->>S: Price usage on the self-billing subscription
    S->>Sup: Self-billing invoice (supplier → your billing entity)
    Sup-->>P: Checks the invoice
    P->>Sup: Bank transfer
    P->>S: Mark the invoice as paid
```

> **Note**
>
> Solvimon does not send money to the supplier. You pay the supplier from your own bank or payment provider. See [Paying the supplier](#paying-the-supplier).

## Before you start

* **Turn on self-billing for Desk.** The self-billing options in Desk show only when self-billing is turned on for your platform. Contact Solvimon support to turn it on. The API does not need this setting.
* **Create the supplier as an organisation.** The `SELF_BILLING` role is not allowed for a customer of type `INDIVIDUAL`. Give the supplier a `legal_name` and a `registered_address`, because Solvimon prints them as the seller and uses them to calculate tax. Add the supplier's VAT number in `tax_id` or `tax_ids`.

## Set up self-billing

### Via API

### Give the supplier the `SELF_BILLING` role

Create the supplier with [POST /v1/customers](https://docs.solvimon.com/api-docs/configuration-api/customers/post-customers), or add the role to an existing customer with [PATCH /v1/customers/\{id}](https://docs.solvimon.com/api-docs/configuration-api/customers/patch-customers-by-resource-id-or-reference). `roles` replaces the full list, so send every role the customer must keep.

**`Create a self-billing supplier`**

```bash Create a self-billing supplier
curl -X POST https://test.api.solvimon.com/v1/customers \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "northwind_voices",
    "type": "ORGANIZATION",
    "status": "ACTIVE",
    "email": "finance@northwind-voices.example.com",
    "roles": ["SELF_BILLING"],
    "organization": {
      "legal_name": "Northwind Voices Ltd",
      "tax_id": "GB123456789",
      "registered_address": {
        "line1": "12 Wharf Road",
        "city": "London",
        "postal_code": "N1 7GR",
        "country": "GB"
      }
    }
  }'
```

**`Response (shortened)`**

```json Response (shortened)
{
  "object_type": "CUSTOMER",
  "id": "cust_AwDeeN0veHDiTjApeK1w",
  "reference": "northwind_voices",
  "status": "ACTIVE",
  "type": "ORGANIZATION",
  "roles": ["SELF_BILLING"],
  "organization": {
    "legal_name": "Northwind Voices Ltd",
    "tax_id": "GB123456789"
  }
}
```

A customer can have more than one role. Send `["DEFAULT", "SELF_BILLING"]` when the same company also buys from you. Each subscription then decides which way the invoice goes.

### Add the supplier's bank account

Create a payment acceptor with [POST /v1/payment-acceptors](https://docs.solvimon.com/api-docs/configuration-api/payment-acceptors/post-payment-acceptors) and set `customer_id` instead of `billing_entity_id`. Solvimon prints this bank account on the supplier's invoices as the account that you pay into.

**`Add a bank account to the supplier`**

```bash Add a bank account to the supplier
curl -X POST https://test.api.solvimon.com/v1/payment-acceptors \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "northwind_voices_gbp",
    "name": "Northwind Voices GBP account",
    "customer_id": "cust_AwDeeN0veHDiTjApeK1w",
    "type": "BANK_ACCOUNT",
    "bank_account": {
      "type": "IBAN",
      "iban": "GB33BUKB20201555555555",
      "bic": "BUKBGB22",
      "country": "GB"
    }
  }'
```

**`Response (shortened)`**

```json Response (shortened)
{
  "object_type": "PAYMENT_ACCEPTOR",
  "id": "paya_RwDeeN0vxxHxNDCUNS1G",
  "reference": "northwind_voices_gbp",
  "customer_id": "cust_AwDeeN0veHDiTjApeK1w",
  "type": "BANK_ACCOUNT",
  "status": "ACTIVE"
}
```

* Set exactly one of `customer_id` or `billing_entity_id`.
* A customer-owned payment acceptor must be of type `BANK_ACCOUNT`, and the customer must have the `SELF_BILLING` role.
* `reference` must be unique across your platform.
* The status is `ACTIVE` when you leave it out. You can also create it as `DRAFT`.

### Create a self-billing subscription

Create the subscription with [POST /v1/pricing-plan-subscriptions/init](https://docs.solvimon.com/api-docs/configuration-api/pricing-plan-subscriptions/post-pricing-plan-subscriptions-init) and set `variant` to `SELF_BILLING`. The pricing plan holds the rates that you pay the supplier, for example a price per minute of usage.

**`Create a self-billing subscription`**

```bash Create a self-billing subscription
curl -X POST https://test.api.solvimon.com/v1/pricing-plan-subscriptions/init \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "pricing_plan_subscription": {
      "reference": "northwind_voices_royalties",
      "customer_reference": "northwind_voices",
      "billing_entity_id": "bile_iwDeeN0vxxHxNDCUNS1G",
      "variant": "SELF_BILLING",
      "payment_acceptor_ids": ["paya_RwDeeN0vxxHxNDCUNS1G"],
      "billing_period": { "type": "MONTH", "value": 1 },
      "billing_currency": "GBP"
    },
    "pricing_plan_schedules": [
      {
        "pricing_plan_version_selector": { "pricing_plan_reference": "voice_royalties" },
        "start_at": "2026-12-01T00:00:00Z",
        "pricing_currency": "GBP"
      }
    ]
  }'
```

**`Response (shortened)`**

```json Response (shortened)
{
  "pricing_plan_subscription": {
    "object_type": "PRICING_PLAN_SUBSCRIPTION",
    "id": "ppsu_KwDeeN0vxxHykcCOpL1d",
    "reference": "northwind_voices_royalties",
    "customer_id": "cust_AwDeeN0veHDiTjApeK1w",
    "variant": "SELF_BILLING",
    "payment_acceptor_ids": ["paya_RwDeeN0vxxHxNDCUNS1G"],
    "status": "ACTIVE"
  }
}
```

* `variant: SELF_BILLING` is only accepted when the customer has the `SELF_BILLING` role.
* `payment_acceptor_ids` can only contain `ACTIVE` bank accounts of this customer. When you leave the field out, each invoice gets all bank accounts of the supplier that are `ACTIVE` when Solvimon creates the invoice.
* You can change `variant` only while the subscription is in `DRAFT`.

### Send the supplier's usage

Solvimon prices the events of the subscription's customer. Usage that your own customers generate is attributed to those customers, not to the supplier. To pay the supplier for that usage, send it again with [POST /v1/events/ingest](https://docs.solvimon.com/api-docs/event-api/ingest/post-events-ingest) and the supplier's `customer_reference`. You can send it per event or as one total per period.

**`Usage event for the supplier`**

```bash Usage event for the supplier
curl -X POST https://test.api.solvimon.com/v1/events/ingest \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "voice_usage_northwind_2026_12_01_0001",
    "customer_reference": "northwind_voices",
    "meter_reference": "voice_minutes",
    "timestamp": "2026-12-01T10:15:00Z",
    "meter_values": [{ "reference": "minutes", "number": "12" }]
  }'
```

See [Event ingestion API](/platform-guides/meter-and-event-design/usage-events/event-ingestion-api) for the full event format.

### Via Desk

| Task                                  | Where in Desk                                                                                                                                                                                                                        |
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Give the supplier the role            | Create or edit the customer, then select **Self billing customer** under **Customer role(s)**. The option shows for organisations only.                                                                                              |
| Add the supplier's bank account       | Open the customer. Use the **Payment acceptors** block on the right. The block shows for self-billing customers only.                                                                                                                |
| Create the subscription               | Create a subscription for the supplier. Under **Additional settings**, set **Variant** to **Self billing**. The option shows only when the customer has the role. The payment acceptor list then shows the supplier's bank accounts. |
| Change invoice numbering              | **Settings > Invoices**, sections **Self-billing invoices numbering** and **Self-billing credit invoices numbering**.                                                                                                                |
| Create a one-off self-billing invoice | **Invoices > Create one-off invoice**, select the supplier, then turn on **Self billing invoice**.                                                                                                                                   |

You can filter the customer list on the **Self billing customer** role.

## The self-billing invoice

Solvimon makes these changes on a self-billing invoice:

* **Title.** The invoice PDF has the title "Self billing invoice". Self-billing credit notes have this title too.
* **Parties.** The supplier's legal name, address and tax ID show in the seller block. Your billing entity shows as the buyer. Desk shows the same order on the invoice page.
* **Bank details.** `payment_actions` contains the bank accounts set on the invoice that are still `ACTIVE`. The account holder name is the payment acceptor's `beneficiary_name`, or else the supplier's legal name. The payment reference is the invoice number.
* **Separate invoices.** Solvimon never combines a self-billing invoice with the customer's standard invoices. Several self-billing subscriptions of the same supplier can combine into one self-billing invoice when `combine` is on.
* **Tax per line.** A per-line tax breakdown often adds no information on a self-billing invoice. Set `show_tax_per_line_item` to `false` on the subscription to show tax only in the totals. See [Invoice operations](/platform-guides/invoicing/invoices/invoice-operations#show-or-hide-the-tax-breakdown-per-line-item).

### Invoice numbering

Self-billing invoices and self-billing credit notes have their own number formats, set on the platform. Each supplier has its own counter. Two suppliers can therefore both receive `INV-SELF-2026-12-000001`. A number is unique per supplier, not across your platform.

| Setting                                            | Default                                                                                              |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `self_billing_invoice_number_configuration`        | `INV-SELF-YYYY-MM-000001`: prefix `INV-SELF`, year and month, six digits, counter resets every month |
| `self_billing_credit_invoice_number_configuration` | `CR-SELF-YYYY-MM-000001` with the same rules                                                         |

Change a format with [PATCH /v1/platforms/\{id}](https://docs.solvimon.com/api-docs/configuration-api/platforms/patch-platforms-by-resource-id):

**`Change the self-billing invoice number format`**

```bash Change the self-billing invoice number format
curl -X PATCH https://test.api.solvimon.com/v1/platforms/<platformId> \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "invoice_settings": {
      "self_billing_invoice_number_configuration": {
        "prefix": "SB-{{billing_entity.registered_address.country}}",
        "dynamic_prefix": ["YEAR", "MONTH"],
        "separator": "-",
        "increment_by": 1,
        "first_number": 1,
        "minimum_number_of_digits": 6,
        "reset_period": { "type": "MONTHLY" }
      }
    }
  }'
```

The prefix takes the same placeholders as the standard numbering. See [Customising invoices](/platform-guides/platform-configuration/customising-invoices). Solvimon rejects a self-billing format that produces the same numbers as your standard invoice or credit note format. [GET /v1/platforms/\{id}](https://docs.solvimon.com/api-docs/configuration-api/platforms/get-platforms-by-resource-id) returns the defaults when you have not set a format.

### Tax

Solvimon calculates tax as a sale from the supplier to your billing entity:

* The supplier's registered address sets the seller country and the tax rates.
* The supplier's tax IDs and tax registrations are used. Your billing entity's tax settings are not.
* The usual domestic, EU and reverse-charge rules apply with the supplier as the seller. This also applies when you use a [tax calculation integration](/platform-guides/invoicing/tax/tax-calculation-integrations).
* When the supplier and your billing entity are both in the United Kingdom, Solvimon adds the [tax note](/platform-guides/invoicing/tax#tax-notes) `SELF_BILLING_UK_DOMESTIC`: "The VAT shown is your output tax due to HMRC". HMRC requires this text on a domestic self-billed VAT invoice.

> **Warning**
>
> Solvimon cannot calculate tax for a self-billing invoice when the supplier is not an organisation or has no registered address. Complete the supplier's details before the billing run.

## Paying the supplier

Solvimon creates the invoice and shows the supplier's bank details on it. It does not send the payment. Pay the supplier from your own bank or payment provider, and then record the payment on the invoice with [PATCH /v1/invoices/\{id}](https://docs.solvimon.com/api-docs/transaction-api/invoices/patch-invoices-by-resource-id):

### Request

PATCH [https://test.api.solvimon.com/v\{version}/invoices/\{resourceId}](https://test.api.solvimon.com/v\{version}/invoices/\{resourceId})

**`Mark a final invoice as paid`**

```curl Mark a final invoice as paid
curl -X PATCH https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d \
     -H "X-API-KEY: <apiKey>" \
     -H "Content-Type: application/json" \
     -d '{
  "payment_status": "PAID"
}'
```

**`Mark a final invoice as paid`**

```python Mark a final invoice as paid
import requests

url = "https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d"

payload = { "payment_status": "PAID" }
headers = {
    "X-API-KEY": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

**`Mark a final invoice as paid`**

```javascript Mark a final invoice as paid
const url = 'https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d';
const options = {
  method: 'PATCH',
  headers: {'X-API-KEY': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"payment_status":"PAID"}'
};

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

**`Mark a final invoice as paid`**

```go Mark a final invoice as paid
package main

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

func main() {

	url := "https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d"

	payload := strings.NewReader("{\n  \"payment_status\": \"PAID\"\n}")

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

	req.Header.Add("X-API-KEY", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

**`Mark a final invoice as paid`**

```ruby Mark a final invoice as paid
require 'uri'
require 'net/http'

url = URI("https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d")

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

request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"payment_status\": \"PAID\"\n}"

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

**`Mark a final invoice as paid`**

```java Mark a final invoice as paid
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d")
  .header("X-API-KEY", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"payment_status\": \"PAID\"\n}")
  .asString();
```

**`Mark a final invoice as paid`**

```php Mark a final invoice as paid
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d', [
  'body' => '{
  "payment_status": "PAID"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-KEY' => '<apiKey>',
  ],
]);

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

**`Mark a final invoice as paid`**

```csharp Mark a final invoice as paid
using RestSharp;

var client = new RestClient("https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-API-KEY", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"payment_status\": \"PAID\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

**`Mark a final invoice as paid`**

```swift Mark a final invoice as paid
import Foundation

let headers = [
  "X-API-KEY": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["payment_status": "PAID"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://test.api.solvimon.com/v1/invoices/invo_JwDeeN0vxxHykcCOpL1d")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
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()
```

The invoice must be `FINAL`. See [Invoice payment status](/platform-guides/invoicing/invoices/invoice-payment-status).

## One-off self-billing invoices

To pay a supplier an amount outside a subscription, create a [one-off invoice](/platform-guides/invoicing/invoices/one-off-invoices) with `billing_type: SELF_BILLING`:

**`Create a one-off self-billing invoice`**

```bash Create a one-off self-billing invoice
curl -X POST https://test.api.solvimon.com/v1/invoices \
  -H "X-API-KEY: <apiKey>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "ONE_OFF",
    "billing_type": "SELF_BILLING",
    "customer_id": "cust_AwDeeN0veHDiTjApeK1w",
    "billing_entity_id": "bile_iwDeeN0vxxHxNDCUNS1G",
    "billing_currency": "GBP"
  }'
```

Solvimon rejects `billing_type: SELF_BILLING` when the customer does not have the `SELF_BILLING` role. If you set `payment_acceptor_ids`, they must be bank accounts of that customer. When you leave them out, Solvimon uses the supplier's active bank accounts.

## Credit notes

A [credit note](/platform-guides/invoicing/invoice-corrections/credit-invoices) on a self-billing invoice is also a self-billing document. It keeps the swapped parties, the supplier's bank details and the supplier's tax treatment, and it takes its number from the self-billing credit note series. The PDF title of the credit note is also "Self billing invoice", not "Credit".

## Finding self-billing invoices

* Filter invoices on `billing_type` with the [search endpoint](/platform-guides/for-developers/searching-resources). Filter customers on `role: SELF_BILLING`.
* The invoice, invoice header, invoice lines and invoice tax [reports](/platform-guides/analytics-reporting/report-downloads) have an **Invoice Billing Type** column. On self-billing rows, the sold-from columns contain the supplier and the sold-to columns contain your billing entity.

## Edge cases

* **Emails and workflows.** Solvimon sends invoice emails and runs invoice workflows for self-billing invoices in the same way as for standard invoices. The recipient is the supplier. Check that the text of your overdue and payment-reminder emails also fits an invoice that you pay.
* **Removing the role.** Without the `SELF_BILLING` role, you cannot create new self-billing subscriptions, one-off invoices or bank accounts for the customer.
* **Quotes.** A quote can create a subscription with the variant `SELF_BILLING`. The same role check applies.

---

See also: [Payment options](/platform-guides/platform-configuration/payment-options), [Customising invoices](/platform-guides/platform-configuration/customising-invoices) and [Tax](/platform-guides/invoicing/tax).