Get payment link for a specific invoice

Retrieve a payment link for a specific invoice. The ID returned from this endpoint can be used to fetch the payment link at a later stage. Use this endpoint when a customer wants to pay a specific invoice or if the system needs to generate a payment link.

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
GET https://cloud.hostup.se/api/billing/invoice/{id}/payment-link
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/billing/invoice/48192/payment-link" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "hasActiveLink": true,
    "paymentUrl": "string",
    "uuid": "string",
    "expiresAt": "string",
    "viewCount": 0,
    "lastViewed": "string"
  }
}