younifyd
Menu

Update a payment session

Update a payment session

PATCH/sessions/{sessionId}

Use it in a workflow

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

Request

Path parameters

sessionIdstringrequired

Request body

Enter the body as JSON in the step's Body field.

amountobjectrequired
currencystringrequired

The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).

valueinteger (int64)required

The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).

payableboolean

Indicates if the session is payable. If the payment amount is final, set this to **true** to indicate that the session is payable, so that the shopper can proceed to submit the payment. When you set this to **true**, you can no longer update the session. If you set this to **false**, you must make another request to update the session and set this to **true** before the shopper can submit the payment.

sessionDatastringrequired

The encoded payment session data from the `beforeSubmit` callback from [Drop-in](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Web&integration=Drop-in#update-the-session-amount) or [the Component](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Web&integration=Components#update-the-session-amount).

json
{
  "amount": {
    "currency": "string",
    "value": 0
  },
  "sessionData": "string",
  "payable": false
}

Response

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

sessionDatastring
json
{
  "sessionData": "string"
}

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