Create a Swish payment for an invoice

Initiate a Swish payment for a given invoice. Submit the invoice ID and amount to receive a QR code and Swish URL for customer completion. Also returns a 'requestId' for follow-up API calls.

Headers

Accept Example
Content-Type Example

Body

required
application/json
invoiceId string required
amount any required
message string required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/swish/payment
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/swish/payment" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "invoiceId": "string",
    "amount": null,
    "message": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "paymentId": "string",
    "token": "string",
    "qrCode": "string",
    "swishUrl": "string",
    "reference": "string"
  }
}
Request Body
{
  "invoiceId": "string",
  "amount": null,
  "message": "string"
}