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.
Accept Example Content-Type Example invoiceId string required amount any required message string required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/swish/payment 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"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"paymentId": "string",
"token": "string",
"qrCode": "string",
"swishUrl": "string",
"reference": "string"
}
} {
"invoiceId": "string",
"amount": null,
"message": "string"
}