Skip to main content

Transaction details

Get transactions

Get transactions
curl https://api.safepaynordic.dk/v2/transactions \
-X GET \
-H 'Authorization: Bearer {API_TOKEN}' \
-H 'Content-Type: application/json'

Use the skip and take query parameters to page through results and search/referenceId to filter. The count field reports the total number of matches, ignoring pagination.

Response example
{
"items": [
{
"transactionId": "a95a1320-fce8-4838-9ff2-286501b45350",
"amount": 10000.00,
"currency": "DKK",
"status": "INPROGRESS",
"created": "2026-06-22T07:29:05.751127Z",
"referenceId": "your-reference-id",
"payee": {
"safepayAccountId": "8839c3be-64f6-4901-861a-3fd15f26596b",
"name": "Jane Doe",
"phoneNumber": "+45 87654321"
},
"payer": {
"safepayAccountId": "5e2b9d7a-1f44-4c0b-9f0e-2c1a7d3e8b10",
"name": "John Doe",
"phoneNumber": "+45 12345678"
},
"title": "Adidas Campus 00s",
"payments": {
"inbound": {
"amount": 10080.00,
"currency": "DKK"
}
},
"expectedCompletion": null
}
],
"count": 20
}

Get transaction

Get transaction
curl https://api.safepaynordic.dk/v2/transactions/{TRANSACTION_ID} \
-X GET \
-H 'Authorization: Bearer {API_TOKEN}' \
-H 'Content-Type: application/json'
Response example
{
"transactionId": "a95a1320-fce8-4838-9ff2-286501b45350",
"checkoutUrl": "https://mitsafepay.dk/l/ca95a1320",
"paymentGuideUrl": "https://mitsafepay.dk/l/ga95a1320",
"status": "INPROGRESS",
"referenceId": "your-reference-id",
"amount": 10000.00,
"currency": "DKK",
"fees": {
"payee": 79.00,
"payer": 80.00,
"tenant": 1.00,
"safepay": 5.00
},
"payee": {
"amount": 9921.00,
"safepayAccountId": "8839c3be-64f6-4901-861a-3fd15f26596b",
"referenceId": null,
"name": "Jane Doe",
"phoneNumber": "+45 87654321"
},
"payer": {
"amount": 10080.00,
"safepayAccountId": "5e2b9d7a-1f44-4c0b-9f0e-2c1a7d3e8b10",
"referenceId": null,
"name": "John Doe",
"phoneNumber": "+45 12345678"
},
"title": "Adidas Campus 00s",
"payments": {
"inbound": {
"amount": 10080.00,
"payments": [
{
"paymentId": "3811b9da-dd5b-4834-b266-2414e76276aa",
"payer": {
"safepayAccountId": "5e2b9d7a-1f44-4c0b-9f0e-2c1a7d3e8b10",
"referenceId": null,
"name": "John Doe",
"phoneNumber": "+45 12345678"
},
"method": "PSD2",
"amount": {
"value": 10080.00,
"currency": "DKK"
},
"currency": "DKK",
"status": "INPROGRESS",
"created": "2026-06-22T07:29:05.751127+00:00",
"authorized": "2026-06-22T07:29:05.751127+00:00",
"failed": null
}
]
}
},
"expectedCompletion": null
}

The status field is one of:

  • CREATED — created and awaiting payment or an invitation response
  • INPROGRESS — payment received, awaiting delivery/completion
  • SUCCEEDED — completed; payout scheduled or made
  • CANCELLED — cancelled, returned or expired
  • UNKNOWN