Get HTML template
/get_html_template
Target audience: Developers
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 groups.
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¶
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¶
HTTP 200
{
"item": {
"id": "AABBCC112233",
"name": "My html template",
"code": "<html></html>",
"default": false,
"template_type": "marketplace"
}
}
Errors¶
This API uses the common error conventions of the Payway API