Check Swish payment status

Check the status of a completed Swish payment. Returns payment reference and date received. This endpoint is crucial for verifying successful payments and triggering subsequent processes or user confirmations.

Query Parameters

id string required

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/swish/payment
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/swish/payment?id=string" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "status": "string",
    "paymentReference": "string",
    "datePaid": "string",
    "errorCode": "string",
    "errorMessage": "string"
  }
}