Create a payment link to complete a payment

Generate a secure payment link via Stripe for a specific invoice or service. Use this when a customer wants to complete a payment initiated earlier. The returned link is needed to redirect the user to the payment process.

Path Parameters

uuid string required Example

UUID for uuid

Headers

Accept Example
Content-Type Example

Body

required
application/json
paymentMethod string · enum required
stripe
swish

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/billing/payment-link/{uuid}/pay
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/billing/payment-link/b8110b85-728a-44c5-b49c-4208ac407d3d/pay" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentMethod": "stripe"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "stripeSessionUrl": "string",
    "sessionId": "string",
    "paymentMethod": "string"
  }
}
Request Body
{
  "paymentMethod": "stripe"
}