POST /v1/payments/{paymentId}/cancels

Will cancel the payment and return the reservation.

Response Class (Status 204)

Parameters

{
  "amount": 0,
  "orderItems": [
    {
      "reference": "string",
      "name": "string",
      "quantity": 0,
      "unit": "string",
      "unitPrice": 0,
      "taxRate": 0,
      "taxAmount": 0,
      "grossTotalAmount": 0,
      "netTotalAmount": 0
    }
  ]
}
  • amount -
  • orderItems
    • reference -
    • name -
    • quantity -
    • unit -
    • unitPrice -
    • taxRate -
    • taxAmount -
    • grossTotalAmount -
    • netTotalAmount -

Response

HTTP Status Code Reason Response model
204 No content
400 Bad request
{
  "errors": {}
}
401 Unauthorized  
405 Method not allowed  
500 Unexpected error
{
  "message": "string",
  "code": "string",
  "source": "string"
}
Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00
Close menu