Skip to content

Get landingpage

/marketing/landingpage

Target audience: Developers

1
Release version: 4.3.8

Attention

This API is still in active development and changes may occur to the response received.

Get landingpage

Introduction

This endpoint returns a configured landingpage. Read more on landingpages here.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v2/marketing/landingpage
Production https://backend.worldoftulo.com/external/api/v2/marketing/landingpage

Requirements

Feature needs to be enabled by Adeprimo. Please contact support to enable.

Identity Scope
No /external/marketing/r

Parameters

Name Required Type Description
group Yes String The group key
Size range: 1..50 Allowed values: "/^[a-zA-Z-_.0-9]+$/"
key Yes String The marketplace key
Size range: 1..50 Allowed values: "/^[a-zA-Z-_.0-9]+$/"

Curl Example

1
2
3
4
curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v2/marketing/landingpage?group=MP&key=M1 \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token>'

Response

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
HTTP 200
{
  "item": {
    "group": {
      "name": "group 1",
      "key": "ADE"
    },
    "landingpage": {
      "name": "title",
      "header": "header",
      "description": "[länk](http://www.google.fi) with  \\nlinebreak",
      "key": "LP",
      "template": "template",
      "image_name": "image-name.jpg",
      "image_url": "https://cdn_url/Image/adeprimo/image-name.jpg"
    },
    "offers": [
      {
        "id": "6093a11609c04c0ad94a4b9b",
        "valid_from": "2020-05-06T09:56:06+02:00",
        "valid_to": "2022-05-06T09:56:06+02:00",
        "expired": false,
        "product_code": "campaign_code",
        "integration_code": "campaign_integration_code",
        "title_code": "TITLE_CODE",
        "name": "Adeprimo summer campaign",
        "description": "Please buy our nice summer campaign, it is very nice and gives you news.",
        "additional_short_description": null,
        "image_url": "https://cdn_url/Image/adeprimo/campaign_code",
        "vat_code": 25,
        "type": "campaign",
        "transform_to_package": false,
        "customer_can_cancel": false,
        "tags": [],
        "price_periods": [
          {
            "id": "6093a11609c04c0ad94a4b9e",
            "payment_method": "invoice",
            "type": "recurring",
            "enabled": true,
            "iteration_type": "month",
            "iteration_length": 1,
            "price": 210,
            "price_description": {
              "period_id": "6093a11609c04c0ad94a4b9e",
              "transition_period_id": null,
              "price": "210 kr",
              "price_specification": "",
              "total_price": "210 kr",
              "description_without_price": "första månaden, därefter avslutas prenumerationen",
              "localized_description": "210 kr första månaden, därefter avslutas prenumerationen",
              "localized_per_type_description": "210 kr / månad"
            }
          }
        ],
        "based_on_package": {
          "id": "6093a11609c04c0ad94a4b95",
          "valid_from": "2020-05-06T09:56:06+02:00",
          "valid_to": "2022-05-06T09:56:06+02:00",
          "expired": false,
          "product_code": "package_code",
          "integration_code": "package_integration_code",
          "title_code": "TITLE_CODE",
          "name": "Adeprimo summer package",
          "description": "Please buy our nice summer package, it is very nice and gives you news.",
          "additional_short_description": "Nice summer package",
          "image_url": "https://cdn_url/Image/adeprimo/package_code",
          "vat_code": 25,
          "type": "package",
          "customer_can_cancel": false,
          "products": [
            {
              "id": "6093a11609c04c0ad94a4b92",
              "product_code": "product_code",
              "name": "product_name",
              "description": "short_description",
              "image_url": "https://cdn_url/Image/organisation/product_code",
              "print_product": false
            }
          ],
          "tags": [],
          "price_periods": [
            {
              "id": "6093a11609c04c0ad94a4b97",
              "payment_method": "creditcard",
              "type": "recurring",
              "enabled": true,
              "iteration_type": "month",
              "iteration_length": 1,
              "price": 210,
              "price_description": {
                "period_id": "6093a11609c04c0ad94a4b97",
                "price": "210 kr",
                "price_specification": "",
                "localized_description": "Pris per månad"
              }
            }
          ]
        },
        "cheapest_price_period_id": "6093a11609c04c0ad94a4b9e",
        "cheapest_based_on_package_price_period_id": "6093a11609c04c0ad94a4b97"
      }
    ]
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses