Handle Swish payment confirmations

Receive and process feedback from Swish regarding completed payments. This updates invoice and order statuses and confirms payment receipt. A success ID is returned upon successful processing.

Headers

Accept Example
Content-Type Example

Body

required
application/json
id string required
payeePaymentReference string required
paymentReference any required
callbackUrl string required
payerAlias any required
payeeAlias string required
message string required
errorMessage any required
status string · enum required
ERROR
PAID
amount any required
currency string required
errorCode any · enum required
BANKIDCL
RF07
TM01
dateCreated string required
datePaid any required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/swish/callback
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/swish/callback" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "string",
    "payeePaymentReference": "string",
    "paymentReference": null,
    "callbackUrl": "string",
    "payerAlias": null,
    "payeeAlias": "string",
    "message": "string",
    "errorMessage": null,
    "status": "ERROR",
    "amount": null,
    "currency": "string",
    "errorCode": "BANKIDCL",
    "dateCreated": "string",
    "datePaid": null
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true
  }
}
Request Body
{
  "id": "string",
  "payeePaymentReference": "string",
  "paymentReference": null,
  "callbackUrl": "string",
  "payerAlias": null,
  "payeeAlias": "string",
  "message": "string",
  "errorMessage": null,
  "status": "ERROR",
  "amount": null,
  "currency": "string",
  "errorCode": "BANKIDCL",
  "dateCreated": "string",
  "datePaid": null
}