Skip to content

Get HTML template

/get_html_template

Target audience: Developers

1
Release version: 4.4.7

Get HTML template

Introduction

This endpoint returns a HTML template using a given ID. HTML templates are used in the marketplace and marketplace groupings.

URI

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

Requirements

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

Identity Scope
No /external/marketing/r

Parameters

Name Required Type Description
id Yes String The ID of the html template that is to be fetched.
Size range: 24

Curl Example

1
2
3
4
curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v3/marketing/get_html_template?id=AAABBB123 \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token>'

Response

1
2
3
4
5
6
7
8
9
HTTP 200
{
  "item": {
    "id": "AABBCC112233",
    "name": "My html template",
    "code": "<html></html>",
    "default": false
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses