Skip to content

Commit

Permalink
added new ednpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski committed Oct 11, 2023
1 parent b6d462c commit b441db2
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
14 changes: 14 additions & 0 deletions docs/reference-docs/LOYALTIES-API-Create-Loyalty-Tiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Create Loyalty Tiers
type: endpoint
categorySlug: voucherify-api
slug: create-loyalty-tiers
parentDocSlug: loyalties-api
hidden: false
order: 44
---
[block:html]
{
"html": "<style>\n[title=\"Toggle library\"] { \n display: none; }\n.LanguagePicker-divider { \n display: none; }\n.Playground-section3VTXuaYZivJK > .APISectionHeader3LN_-QIR0m7x {\n display: none; }\n.LanguagePicker-languages1qVVo_v6AlP9 {\n display: none; }\n</style>"
}
[/block]
42 changes: 39 additions & 3 deletions reference/OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -69998,7 +69998,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_obj_reward_object"
"$ref": "#/components/schemas/LoyaltiesGetRewardDetailsResponseBody"
},
"examples": {
"Material": {
Expand Down Expand Up @@ -70531,7 +70531,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/4_obj_reward_assignment_object"
"$ref": "#/components/schemas/LoyaltiesGetRewardAssignmentResponseBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -72615,7 +72615,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/8_res_list_loyalty_tiers"
"$ref": "#/components/schemas/LoyaltiesListTiersResponseBody"
},
"examples": {
"Example": {
Expand Down Expand Up @@ -72738,6 +72738,42 @@
}
}
}
},
"post": {
"operationId": "create-loyalty-tiers",
"tags": [
"LOYALTIES API"
],
"summary": "Create loyalty tiers",
"parameters": [],
"security": [
{
"X-App-Id-1": [],
"X-App-Token-1": []
}
],
"responses": {
"200": {
"description": "Returns created loyalty tiers.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoyaltiesCreateTiersResponseBody"
}
}
}
}
},
"requestBody": {
"description": "Provide tier definitions you want to add to existing loyalty campaign.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoyaltiesCreateTiersRequestBody"
}
}
}
}
}
},
"/v1/loyalties/{campaignId}/tiers/{tierId}": {
Expand Down

0 comments on commit b441db2

Please sign in to comment.