Create a payment link for a specific invoice

Generate a unique payment link for a specific invoice. It returns a link the customer can use to complete the payment. You need to provide the invoice ID in the call. The ID returned in the response ('uuid') can be used for subsequent payment status checks or actions.

Path Parameters

id integer · min: 1 required Example

Unique id identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/billing/invoice/{id}/payment-link
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/billing/invoice/46090/payment-link" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "paymentUrl": "string",
    "uuid": "string",
    "expiresAt": "string",
    "created": "string",
    "message": "string"
  }
}