Consolidate and pay multiple invoices

Combine multiple unpaid invoices into a single payment. This simplifies the payment process. The API returns a new invoice ID to complete the payment.

Headers

Accept Example
Content-Type Example

Body

required
application/json
primaryInvoiceId string required
invoiceIds array required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/billing/invoices/bulk-pay
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/billing/invoices/bulk-pay" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "primaryInvoiceId": "string",
    "invoiceIds": [
      "string"
    ]
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "invoiceId": "string",
    "mergedInvoices": [
      "string"
    ],
    "message": "string"
  }
}
Request Body
{
  "primaryInvoiceId": "string",
  "invoiceIds": [
    "string"
  ]
}