Skip to content

Me - Update purchase session

/v2/adyen/me/update_purchase_session

Target audience: Developers

Update purchase session

Release version: 4.7.5

Introduction

This endpoint locks or consumes an Adyen purchase session.

Attention

This API is not required for implementing the redirect purchase flow.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v2/adyen/me/update_purchase_session
Production https://backend.worldoftulo.com/external/api/v2/adyen/me/update_purchase_session

Requirements

Identity Scope
Yes /external/adyen/w

Curl example

curl --request POST \
  --url https://payway-api.stage.adeprimo.se/external/api/v2/adyen/me/update_purchase_session \
  --header 'authorization: Bearer <token-with-identity>' \
  --header 'content-type: application/json' \
  --data '{
    "id": "5e4bfdf209c04c50ab62669d",
    "action": "lock"
  }'

Parameters

Parameter Description Required Format Type
id Id of the purchase session Yes Size range ..24
Allowed values: "/^[a-f\d]{24}$/i"
String
action Action to take. Yes LOCK / CONSUME String

Responses

HTTP 201 Updated
{
  "id": "5ea6ed5009c04c1f1a6a9c66"
}
HTTP 204 Deleted
{ }

Errors

This API uses the common error conventions of the Payway API

See common error responses