Pay a specific invoice

Complete a payment for a specific invoice. You need to provide the ID of the invoice you want to pay and the payment method to be used. The endpoint returns an ID needed to track the payment status in subsequent calls.

Headers

Accept Example
Content-Type Example

Body

required
application/json
invoiceId string required
cardId string required

Responses

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