Skip to content

Get product purchase information

/adyen/product_purchase_info

Target audience: Developers

Release version: 4.2.0

Get product purchase information

Introduction

This endpoint returns product information for an Adyen purchase.

Attention

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

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v1/adyen/product_purchase_info
Production https://backend.worldoftulo.com/external/api/v1/adyen/product_purchase_info

Requirements

Identity Scope
No /external/adyen/r

Curl example

curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v1/adyen/product_purchase_info?period_id=585a4768edce2c5e6f000001&product_code=adeprimo_digital \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <token>'
Parameter Description Required Format Type
product_code The product code for a package/campaign. Yes Size range: 1..50 Allowed values: "/^[a-zA-Z-_0-9]+$/" String
period_id Id of the selected payment period Yes Size range ..24
Allowed values: "/^[a-f\d]{24}$/i"
String

Response

HTTP 200
{
  "item": {
    "product_name": "Adeprimo summer package",
    "price_description": "Pris per månad",
    "price": "210 kr",
    "price_specification": "",
    "is_campaign": false
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses