/product_purchase_information

/adyen/product_purchase_info

Target audience: Developers

1
Release version: 4.2.0

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

1
2
3
4
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
HTTP 200
{
  "item": {
    "product_name": "Adeprimo summer package",
    "price_description": "Pris per månad",
    "price": "210 kr",
    "price_specification": "",
    "is_campaign": false
  }
}

Errors

The error response is sent as application/JSON and will have an HTTP status code ranging between 400-500.

An error message will contain these properties in every response.

Error example

1
2
3
4
5
{
  "code": "error_code",
  "field": "field",
  "message": "error message"
}