Get Transaction

You can use this call to retrieve details of an iDEAL QR transaction.

Prerequisite

Get an access_token and use it as 'Bearer' token in your request. Find more details here.

Request

GET https://api.pay.cm.com/api/v1/paymentmethods/idealqr/v1/transactions/{transactionId}

Response

{
  "id": "8db1e7fa-ba8a-4189-92fd-67a20217443d",
  "amountChangeable": {
    "min": 1,
    "max": 50000
  },
  "reference": "20210623130413",
  "amount": 1200,
  "currency": "EUR",
  "purchaseId": "order123",
  "description": "Order at yourdomain.tld",
  "size": 200,
  "expiresAt": "2006-01-02T15:04:05Z",
  "reusable": false,
  "language": "nl",
  "webhooks": [
    {
      "url": "https://yourdomain.tld/order-webhooks?purchaseId=order123",
      "events": [
        "FINALSTATUS"
      ]
    },
    {
      "url": "https://yourdomain.tld/order-webhooks?purchaseId=order123",
      "events": [
        "STATUS_CHANGE"
      ]
    },
    {
      "url": "https://yourdomain.tld/payment-webhooks?purchaseId=order123",
      "events": [
        "QR_PAYMENT_CREATED"
      ]
    }
  ],
  "status": "OPEN",
  "action": {
    "qrcode": {
      "id": "213981209381209390821-123",
      "url": "https://qrbackend.tld/images/213981209381209390821-123.png"
    }
  },
  "createdAt": "2006-01-02T15:04:05Z",
  "returnUrls": {
    "success": "https://yourdomain.tld/order/payment-success.html",
    "cancelled": "https://yourdomain.tld/order/payment-cancelled.html",
    "expired": "https://yourdomain.tld/order/payment-expired.html",
    "failed": "https://yourdomain.tld/order/payment-failed.html"
  }
}

Parameters

ParameterTypeDescriptionConstraints
idString(36)Transaction unique identifier.
referenceString(1...255)An identifier specified by you. If webhooks were specified in the request this identifier is added to the webhook request payload.
amountInt(1...99999999)Integer representing the amount of the checkout. Denomination in the smallest currency subunit (e.g. eurocents).
currencyString (ISO 4217)Currency code.ISO 4217 currency code.
purchaseIdString(1...35)Identification of the order within your system. Ultimately appears on the payment confirmation (statement and confirmation screen).
descriptionString(1...255)Description of the transaction.
sizeInt(100...2000)Determines the size of the image in pixels. (e.g. A size of 200 will produce an image of ~200x200 pixels)
expiresAtString(RFC3339)Expiration time.
statusStringOPEN - Transaction has been created. This is the initial status.
SUCCESS - Transaction successfully paid.
CANCELLED - Transaction has been cancelled by your customers.
EXPIRED - Transaction has not succeeded; expired.
FAILURE - Transaction has not succeeded; unknown reason.
actionaction ObjectThe next action to be performed by you for this transaction. This includes the URL of the iDEAL QR code image to be shown to your customer.This parameter is nullable, and it is only available while the transaction is OPEN.
createdAtString(RFC3339)Creation time.ISO 8601 date and time.
returnUrlString(2000)Specifies the URL where your customers will be redirected to when the payment process is completed.Either returnUrl or returnUrls must be specified, but not both.
returnUrlsreturnUrls ObjectSpecifies a URL where your customers will be redirected to (per transaction status) when the payment process is completed. For example, your customers will be redirected to returnUrls.success when the status of the transaction changes to SUCCESS.Either returnUrl or returnUrls must be specified, but not both.

Optional parameters

ParameterTypeDescriptionConstraints
amountChangeableamountChangeable ObjectContains the minimum and maximum values for the amount of a QR code that your customers can set themselves after scanning the code.
reusableBooleanIndicates the QR code's ability to accept multiple successful payments.
languageString(ISO 639-1)Preferred language of the user interface.ISO 639-1 language.
webhooksArray of objectsWebhooks enable receiving a web request once a given event occurs.Find more details here .

Response codes

HTTP statusDescription
200Transaction details are successfully retrieved.
4XXClient error response (See message for details). This response is given when the User input was incorrect or something illegal was attempted (eg. using a service without having that service configured for the user, or not being authorized).
5XXServer error response (See message for details).