younifyd
Menu

Get the result of a payment session

Get the result of a payment session

GET/sessions/{sessionId}

Use it in a workflow

  1. Add a step and choose the Adyen connector.
  2. Pick the Get the result of a payment session action (under Payments).
  3. Fill in the fields below, then reference the result from later steps as {{getTheResultOfAPaymentSession.response.data}}.

Request

Path parameters

sessionIdstringrequired

A unique identifier of the session.

Query parameters

sessionResultstringrequired

The `sessionResult` value from the Drop-in or Component.

Response

Returns 200 with an object. Read it in later steps with {{getTheResultOfAPaymentSession.response.data.<field>}}.

additionalDataobject

Contains additional information about the payment. Some fields are included only if you enable them. To enable these fields in your Customer Area, go to **Developers** > **Additional data**.

idstring

A unique identifier of the session.

paymentsarray<object>

A list of all authorised payments done for this session.

amountobject2 fields
paymentMethodobject2 fields
pspReferencestring

Adyen's 16-character reference associated with the transaction/request. This value is globally unique. Use this reference when you communicate with us about this request.

resultCodestring

The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Received** – Indicates the payment request was successfully received by Adyen, and will be processed. This is the initial state for all payments. * **Pending** – The payment order was successfully received but the final status of the payment is not available yet. This is common for payment methods with an asynchronous flow.

One ofAuthorisedReceivedPending

referencestring

The unique reference that you provided in the original `/sessions` request. This identifies the payment and is used in all communication with you about the payment status.

statusstring

The status of the session. The status included in the response doesn't get updated. Don't make the request again to check for payment status updates. Possible values: * **completed**: the shopper completed the payment, and the payment was authorized. * **paymentPending**: the shopper is in the process of making the payment. This applies to payment methods with an asynchronous flow, like voucher payments where the shopper completes the payment in a physical shop. * **refused**: the session has been refused, because of too many refused payment attempts. The shopper can no longer complete the payment with this session. * **canceled**: the shopper canceled the payment. * **expired**: the session expired. The shopper can no longer complete the payment with this session. By default, the session expires one hour after it is created.

One ofactivecanceledcompletedexpiredpaymentPendingrefused

json
{
  "additionalData": {},
  "id": "string",
  "payments": [
    {
      "amount": {
        "currency": "string",
        "value": 0
      },
      "paymentMethod": {
        "brand": "string",
        "type": "string"
      },
      "pspReference": "string",
      "resultCode": "Authorised"
    }
  ],
  "reference": "string",
  "status": "active"
}

Need more? See the Adyen guide for connection setup and behaviour shared by every action.

Get the result of a payment session — Adyen — Documentation