POST /dashboard/invoices/{id}/pay/credit

Pay invoice with credit

Pays a specific invoice using the credit balance on your account.

Parameters

NameTypeInDescription
id*
integerpathThe ID of the invoice to pay with credit

Response

200
400
403
404
422
successboolean

Request

curl -X POST "https://api.royalehosting.net/dashboard/invoices/{id}/pay/credit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "success": true
}