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.
Accept Example Content-Type Example invoiceId string required cardId string required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string https://cloud.hostup.se/api/billing/pay 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"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"message": "string"
}
} {
"invoiceId": "string",
"cardId": "string"
}