voucherify 8.1.0 β 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/ENDPOINTS-COVERAGE.md +55 -55
- data/Gemfile.lock +2 -2
- data/README.md +5 -0
- data/docs/CampaignsApi.md +7 -7
- data/docs/ClientSideApi.md +2 -2
- data/docs/CustomersApi.md +5 -5
- data/docs/ErrorError.md +1 -1
- data/docs/ExportParameters.md +2 -2
- data/docs/ExportsApi.md +6 -6
- data/docs/ExportsCreateRequestBodyParameters.md +2 -2
- data/docs/ExportsCreateResponseBodyParameters.md +2 -2
- data/docs/ExportsGetResponseBodyParameters.md +2 -2
- data/docs/LoyaltiesApi.md +52 -52
- data/docs/ManagementApi.md +26 -26
- data/docs/MetadataSchemasApi.md +2 -2
- data/docs/OrdersApi.md +2 -2
- data/docs/ProductCollectionsApi.md +1 -1
- data/docs/ProductsApi.md +4 -4
- data/docs/PublicationsApi.md +3 -3
- data/docs/QualificationsApi.md +1 -1
- data/docs/RedemptionRewardResultParametersCoin.md +1 -1
- data/docs/RedemptionsApi.md +3 -3
- data/docs/RedemptionsRedeemRequestBodyOptions.md +1 -0
- data/docs/ReferralsApi.md +4 -4
- data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
- data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
- data/docs/SegmentsApi.md +1 -1
- data/docs/TemplatesApi.md +7 -7
- data/docs/ValidationRulesApi.md +2 -2
- data/docs/ValidationsValidateRequestBodyOptions.md +1 -0
- data/docs/VouchersApi.md +8 -8
- data/lib/VoucherifySdk/api/campaigns_api.rb +14 -14
- data/lib/VoucherifySdk/api/client_side_api.rb +4 -4
- data/lib/VoucherifySdk/api/customers_api.rb +10 -10
- data/lib/VoucherifySdk/api/exports_api.rb +8 -8
- data/lib/VoucherifySdk/api/loyalties_api.rb +104 -104
- data/lib/VoucherifySdk/api/management_api.rb +52 -52
- data/lib/VoucherifySdk/api/metadata_schemas_api.rb +4 -4
- data/lib/VoucherifySdk/api/orders_api.rb +4 -4
- data/lib/VoucherifySdk/api/product_collections_api.rb +2 -2
- data/lib/VoucherifySdk/api/products_api.rb +8 -8
- data/lib/VoucherifySdk/api/publications_api.rb +6 -6
- data/lib/VoucherifySdk/api/qualifications_api.rb +2 -2
- data/lib/VoucherifySdk/api/redemptions_api.rb +6 -6
- data/lib/VoucherifySdk/api/referrals_api.rb +8 -8
- data/lib/VoucherifySdk/api/segments_api.rb +2 -2
- data/lib/VoucherifySdk/api/templates_api.rb +14 -14
- data/lib/VoucherifySdk/api/validation_rules_api.rb +4 -4
- data/lib/VoucherifySdk/api/vouchers_api.rb +16 -16
- data/lib/VoucherifySdk/models/error_error.rb +2 -2
- data/lib/VoucherifySdk/models/export.rb +1 -1
- data/lib/VoucherifySdk/models/export_parameters.rb +3 -3
- data/lib/VoucherifySdk/models/exports_create_request_body.rb +1 -1
- data/lib/VoucherifySdk/models/exports_create_request_body_parameters.rb +3 -3
- data/lib/VoucherifySdk/models/exports_create_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/exports_create_response_body_parameters.rb +3 -3
- data/lib/VoucherifySdk/models/exports_get_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/exports_get_response_body_parameters.rb +3 -3
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +1 -1
- data/lib/VoucherifySdk/models/redemptions_redeem_request_body_options.rb +28 -6
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +1 -1
- data/lib/VoucherifySdk/models/validations_redeemable_skipped_result_details.rb +1 -1
- data/lib/VoucherifySdk/models/validations_validate_request_body_options.rb +28 -6
- data/lib/VoucherifySdk/version.rb +1 -1
- metadata +32 -32
data/docs/ManagementApi.md
CHANGED
|
@@ -50,7 +50,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
50
50
|
|
|
51
51
|
Assign User
|
|
52
52
|
|
|
53
|
-
Assigns a user to a given project. The user must be an existing user in Voucherify.
|
|
53
|
+
Assigns a user to a given project. The user must be an existing user in Voucherify. <Warning> <Badge color yellow>Correct Use of Data</Badge> To avoid errors, use the role key with either id or login keys. </Warning>
|
|
54
54
|
|
|
55
55
|
### Examples
|
|
56
56
|
|
|
@@ -112,7 +112,7 @@ end
|
|
|
112
112
|
|
|
113
113
|
Create Brand
|
|
114
114
|
|
|
115
|
-
Creates a new brand configuration. You can have only one brand configured for a project.
|
|
115
|
+
Creates a new brand configuration. You can have only one brand configured for a project. <Note> <Badge color blue>White Labelling</Badge> The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface. </Note>
|
|
116
116
|
|
|
117
117
|
### Examples
|
|
118
118
|
|
|
@@ -174,7 +174,7 @@ end
|
|
|
174
174
|
|
|
175
175
|
Create Custom Event Schema
|
|
176
176
|
|
|
177
|
-
Creates a custom event schema. The properties object is required, but it can be empty, however. This object is for optional custom properties (metadata).
|
|
177
|
+
Creates a custom event schema. The properties object is required, but it can be empty, however. This object is for optional custom properties (metadata). <Note> <Badge color blue>Custom Event Documentation</Badge> Read [Custom Events](/prepare/custom-events) article to learn how custom events work in Voucherify. Read also the details about the [Track Custom Event](/api-reference/events/track-custom-event) endpoint and the [Custom Event Object](/api-reference/events/event-object). </Note>
|
|
178
178
|
|
|
179
179
|
### Examples
|
|
180
180
|
|
|
@@ -236,7 +236,7 @@ end
|
|
|
236
236
|
|
|
237
237
|
Create Metadata Schema
|
|
238
238
|
|
|
239
|
-
Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint.
|
|
239
|
+
Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
240
240
|
|
|
241
241
|
### Examples
|
|
242
242
|
|
|
@@ -358,7 +358,7 @@ end
|
|
|
358
358
|
|
|
359
359
|
Create Stacking Rules
|
|
360
360
|
|
|
361
|
-
Overwrites the default stacking rules. If new stacking rules have been created for the project earlier (e.g. in the user interface), it returns an error. Use [Update stacking rules](/api-reference/management/update-stacking-rules) endpoint to change the rules.
|
|
361
|
+
Overwrites the default stacking rules. If new stacking rules have been created for the project earlier (e.g. in the user interface), it returns an error. Use [Update stacking rules](/api-reference/management/update-stacking-rules) endpoint to change the rules. <Note> <Badge color blue>Stacking rules documentation</Badge> Read [the Stacking rules article](/orchestrate/stacking-rules) to learn how they work. </Note>
|
|
362
362
|
|
|
363
363
|
### Examples
|
|
364
364
|
|
|
@@ -420,7 +420,7 @@ end
|
|
|
420
420
|
|
|
421
421
|
Create Webhook
|
|
422
422
|
|
|
423
|
-
Creates a new webhook configuration.
|
|
423
|
+
Creates a new webhook configuration. <Note> <Badge color blue>Webhook Documentation</Badge> Read [Introduction to webhooks](/api-reference/introduction-to-webhooks) article to learn how webhooks work in Voucherify. </Note>
|
|
424
424
|
|
|
425
425
|
### Examples
|
|
426
426
|
|
|
@@ -541,7 +541,7 @@ nil (empty response body)
|
|
|
541
541
|
|
|
542
542
|
Delete Custom Event Schema
|
|
543
543
|
|
|
544
|
-
Deletes permanently the custom event schema with its custom properties (metadata).
|
|
544
|
+
Deletes permanently the custom event schema with its custom properties (metadata). <Note> <Badge color blue>Custom Event Documentation</Badge> Read [Custom Events](/prepare/custom-events) article to learn how custom events work in Voucherify. Read also the details about the [Track Custom Event](/api-reference/events/track-custom-event) endpoint and the [Custom Event Object](/api-reference/events/event-object). </Note>
|
|
545
545
|
|
|
546
546
|
### Examples
|
|
547
547
|
|
|
@@ -600,7 +600,7 @@ nil (empty response body)
|
|
|
600
600
|
|
|
601
601
|
Delete Metadata Schema
|
|
602
602
|
|
|
603
|
-
Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint.
|
|
603
|
+
Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint. <Warning> <Badge color yellow>Metadata Purging</Badge> This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. </Warning> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
604
604
|
|
|
605
605
|
### Examples
|
|
606
606
|
|
|
@@ -659,7 +659,7 @@ nil (empty response body)
|
|
|
659
659
|
|
|
660
660
|
Delete Project
|
|
661
661
|
|
|
662
|
-
Deletes an existing project. The users currently using the deleted project will be automatically logged out.
|
|
662
|
+
Deletes an existing project. The users currently using the deleted project will be automatically logged out. <Warning> <Badge color yellow>Sandbox Project</Badge> The sandbox project cannot be deleted. </Warning>
|
|
663
663
|
|
|
664
664
|
### Examples
|
|
665
665
|
|
|
@@ -716,7 +716,7 @@ nil (empty response body)
|
|
|
716
716
|
|
|
717
717
|
Delete Stacking Rules
|
|
718
718
|
|
|
719
|
-
Deletes permanently the current settings for the stacking rules. The stacking rules are restored to default values.
|
|
719
|
+
Deletes permanently the current settings for the stacking rules. The stacking rules are restored to default values. <Note> <Badge color blue>Stacking Rules Documentation</Badge> Read [the Stacking rules article](/orchestrate/stacking-rules) to learn how they work. </Note>
|
|
720
720
|
|
|
721
721
|
### Examples
|
|
722
722
|
|
|
@@ -775,7 +775,7 @@ nil (empty response body)
|
|
|
775
775
|
|
|
776
776
|
Delete Webhook
|
|
777
777
|
|
|
778
|
-
Deletes a webhook configuration.
|
|
778
|
+
Deletes a webhook configuration. <Note> <Badge color blue>Webhook Documentation</Badge> Read [Introduction to webhooks](/api-reference/introduction-to-webhooks) article to learn how webhooks work in Voucherify. </Note>
|
|
779
779
|
|
|
780
780
|
### Examples
|
|
781
781
|
|
|
@@ -894,7 +894,7 @@ end
|
|
|
894
894
|
|
|
895
895
|
Get Custom Event Schema
|
|
896
896
|
|
|
897
|
-
Retrieves a custom event schema.
|
|
897
|
+
Retrieves a custom event schema. <Note> <Badge color blue>Custom Event Documentation</Badge> Read [Custom Events](/prepare/custom-events) article to learn how custom events work in Voucherify. Read also the details about the [Track Custom Event](/api-reference/events/track-custom-event) endpoint and the [Custom Event Object](/api-reference/events/event-object). </Note>
|
|
898
898
|
|
|
899
899
|
### Examples
|
|
900
900
|
|
|
@@ -954,7 +954,7 @@ end
|
|
|
954
954
|
|
|
955
955
|
Get Metadata Schema
|
|
956
956
|
|
|
957
|
-
Retrieves a metadata schema.
|
|
957
|
+
Retrieves a metadata schema. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
958
958
|
|
|
959
959
|
### Examples
|
|
960
960
|
|
|
@@ -1072,7 +1072,7 @@ end
|
|
|
1072
1072
|
|
|
1073
1073
|
Get Stacking Rules
|
|
1074
1074
|
|
|
1075
|
-
Retrieves the stacking rules for the project.
|
|
1075
|
+
Retrieves the stacking rules for the project. <Note> <Badge color blue>Stacking Rules Documentation</Badge> Read [the Stacking rules article](/orchestrate/stacking-rules) to learn how they work. </Note>
|
|
1076
1076
|
|
|
1077
1077
|
### Examples
|
|
1078
1078
|
|
|
@@ -1192,7 +1192,7 @@ end
|
|
|
1192
1192
|
|
|
1193
1193
|
Get Webhook
|
|
1194
1194
|
|
|
1195
|
-
Retrieves a webhook configuration.
|
|
1195
|
+
Retrieves a webhook configuration. <Note> <Badge color blue>Webhook Documentation</Badge> Read [Introduction to webhooks](/api-reference/introduction-to-webhooks) article to learn how webhooks work in Voucherify. </Note>
|
|
1196
1196
|
|
|
1197
1197
|
### Examples
|
|
1198
1198
|
|
|
@@ -1369,7 +1369,7 @@ end
|
|
|
1369
1369
|
|
|
1370
1370
|
List Custom Event Schemas
|
|
1371
1371
|
|
|
1372
|
-
Lists all custom event schemas available in the project.
|
|
1372
|
+
Lists all custom event schemas available in the project. <Note> <Badge color blue>Custom Event Documentation</Badge> Read [Custom Events](/prepare/custom-events) article to learn how custom events work in Voucherify. Read also the details about the [Track Custom Event](/api-reference/events/track-custom-event) endpoint and the [Custom Event Object](/api-reference/events/event-object). </Note>
|
|
1373
1373
|
|
|
1374
1374
|
### Examples
|
|
1375
1375
|
|
|
@@ -1427,7 +1427,7 @@ end
|
|
|
1427
1427
|
|
|
1428
1428
|
List Metadata Schemas
|
|
1429
1429
|
|
|
1430
|
-
Lists all metadata schemas available in the project.
|
|
1430
|
+
Lists all metadata schemas available in the project. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
1431
1431
|
|
|
1432
1432
|
### Examples
|
|
1433
1433
|
|
|
@@ -1540,7 +1540,7 @@ This endpoint does not need any parameter.
|
|
|
1540
1540
|
|
|
1541
1541
|
List Stacking Rules
|
|
1542
1542
|
|
|
1543
|
-
Lists all stacking rules. Returns always a list with one item. This endpoint can be used to retrieve the default stacking rules. The default stacking rules do not have an ID that could be used with the [Get Stacking Rules](/api-reference/management/get-stacking-rules) or [Update Stacking Rules](/api-reference/management/update-stacking-rules) endpoints.
|
|
1543
|
+
Lists all stacking rules. Returns always a list with one item. This endpoint can be used to retrieve the default stacking rules. The default stacking rules do not have an ID that could be used with the [Get Stacking Rules](/api-reference/management/get-stacking-rules) or [Update Stacking Rules](/api-reference/management/update-stacking-rules) endpoints. <Note> <Badge color blue>Stacking Rules Documentation</Badge> Read [the Stacking rules article](/orchestrate/stacking-rules) to learn how they work. </Note>
|
|
1544
1544
|
|
|
1545
1545
|
### Examples
|
|
1546
1546
|
|
|
@@ -1656,7 +1656,7 @@ end
|
|
|
1656
1656
|
|
|
1657
1657
|
List Webhooks
|
|
1658
1658
|
|
|
1659
|
-
Lists all webhook configurations for the project.
|
|
1659
|
+
Lists all webhook configurations for the project. <Note> <Badge color blue>Webhook Documentation</Badge> Read [Introduction to webhooks](/api-reference/introduction-to-webhooks) article to learn how webhooks work in Voucherify. </Note>
|
|
1660
1660
|
|
|
1661
1661
|
### Examples
|
|
1662
1662
|
|
|
@@ -1714,7 +1714,7 @@ end
|
|
|
1714
1714
|
|
|
1715
1715
|
Copy Campaign Template to a Project
|
|
1716
1716
|
|
|
1717
|
-
Copies a campaign template to another project. The resources, like validation rules or products, will not be copied to the destination project yet. When the template is used to create a new campaign or add a new promotion tier, the resources will be created in the destination project.
|
|
1717
|
+
Copies a campaign template to another project. The resources, like validation rules or products, will not be copied to the destination project yet. When the template is used to create a new campaign or add a new promotion tier, the resources will be created in the destination project. <Note> <Badge color blue>Campaign Templates β Documentation</Badge> Read the [Campaign Templates documentation](/build/campaign-templates) to learn more about this feature. </Note>
|
|
1718
1718
|
|
|
1719
1719
|
### Examples
|
|
1720
1720
|
|
|
@@ -1778,7 +1778,7 @@ end
|
|
|
1778
1778
|
|
|
1779
1779
|
List Campaign Templates
|
|
1780
1780
|
|
|
1781
|
-
Lists all campaign templates available in the project.
|
|
1781
|
+
Lists all campaign templates available in the project. <Tip> <Badge color green>List Campaign Templates</Badge> This endpoint works in the same way as the [List Campaign Templates endpoint](/api-reference/templates/list-campaign-templates). </Tip> <Note> <Badge color blue>Campaign Templates β Documentation</Badge> Read the [Campaign Templates documentation](/build/campaign-templates) to learn more about this feature. </Note>
|
|
1782
1782
|
|
|
1783
1783
|
### Examples
|
|
1784
1784
|
|
|
@@ -1907,7 +1907,7 @@ nil (empty response body)
|
|
|
1907
1907
|
|
|
1908
1908
|
Update Brand
|
|
1909
1909
|
|
|
1910
|
-
Updates a brand configuration. Only the fields sent in the request will be updated. The fields omitted in the request will remain unchanged.
|
|
1910
|
+
Updates a brand configuration. Only the fields sent in the request will be updated. The fields omitted in the request will remain unchanged. <Note> <Badge color blue>White Labelling</Badge> The white labelling settings which can be found in Project Settings > Brand Details and which are available only for Enterprise clients as a separate service can be configured only in the user interface. </Note>
|
|
1911
1911
|
|
|
1912
1912
|
### Examples
|
|
1913
1913
|
|
|
@@ -1971,7 +1971,7 @@ end
|
|
|
1971
1971
|
|
|
1972
1972
|
Update Custom Event Schema
|
|
1973
1973
|
|
|
1974
|
-
Updates a custom event schema. With this request, you can: - Add a nonexistent property to a custom event schema. - Update an existing property. In the request, you can provide only those properties you want to add or update. Definitions omitted in the request remain unchanged.
|
|
1974
|
+
Updates a custom event schema. With this request, you can: - Add a nonexistent property to a custom event schema. - Update an existing property. In the request, you can provide only those properties you want to add or update. Definitions omitted in the request remain unchanged. <Tip> <Badge color green>Additional Notes</Badge> - You can change the type of an existing property, e.g. from string to number. - You can remove a custom property with this endpoint by providing deleted: true in the request. However, you cannot permanently remove an event definition or its property with this endpoint. </Tip> <Note> <Badge color blue>Custom Event Documentation</Badge> Read [Custom Events](/prepare/custom-events) article to learn how custom events work in Voucherify. Read also the details about the [Track Custom Event](/api-reference/events/track-custom-event) endpoint and the [Custom Event Object](/api-reference/events/event-object). </Note>
|
|
1975
1975
|
|
|
1976
1976
|
### Examples
|
|
1977
1977
|
|
|
@@ -2035,7 +2035,7 @@ end
|
|
|
2035
2035
|
|
|
2036
2036
|
Update Metadata Schema
|
|
2037
2037
|
|
|
2038
|
-
Updates a metadata schema. With this request, you can: - Add a nonexistent attribute definition to the metadata schema. - Update an existing attribute definition by overwriting its current values. In the request, you can provide only those definitions you want to add or update. Definitions omitted in the request remain unchanged. However, if you want to update a definition, you will have to add all its current key-value pairs as well. Only the pairs sent in the request are saved for this definition. This means that the key-value pairs that are not sent in a request are restored to default values. For example, if your definition has an array with values and it is not sent in an update request, the array values will be deleted.
|
|
2038
|
+
Updates a metadata schema. With this request, you can: - Add a nonexistent attribute definition to the metadata schema. - Update an existing attribute definition by overwriting its current values. In the request, you can provide only those definitions you want to add or update. Definitions omitted in the request remain unchanged. However, if you want to update a definition, you will have to add all its current key-value pairs as well. Only the pairs sent in the request are saved for this definition. This means that the key-value pairs that are not sent in a request are restored to default values. For example, if your definition has an array with values and it is not sent in an update request, the array values will be deleted. <Tip> <Badge color green>Additional Notes</Badge> - You cannot change the type of an existing schema, e.g. from string to number. - You can remove a definition with this endpoint by providing deleted: true in the request. It will be moved to the Removed definitions section in the user interface. However, you cannot permanently remove a definition with this endpoint. </Tip> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
2039
2039
|
|
|
2040
2040
|
### Examples
|
|
2041
2041
|
|
|
@@ -2161,7 +2161,7 @@ end
|
|
|
2161
2161
|
|
|
2162
2162
|
Update Stacking Rules
|
|
2163
2163
|
|
|
2164
|
-
Updates the stacking rules. Only the provided fields will be updated. However, if you update an array, the content of the array is overwritten. This means that if you want to add new values to an array and retain existing ones, you need to provide both the existing and new values in the request.
|
|
2164
|
+
Updates the stacking rules. Only the provided fields will be updated. However, if you update an array, the content of the array is overwritten. This means that if you want to add new values to an array and retain existing ones, you need to provide both the existing and new values in the request. <Note> <Badge color blue>Stacking Rules Documentation</Badge> Read [the Stacking rules article](/orchestrate/stacking-rules) to learn how they work. </Note>
|
|
2165
2165
|
|
|
2166
2166
|
### Examples
|
|
2167
2167
|
|
|
@@ -2289,7 +2289,7 @@ end
|
|
|
2289
2289
|
|
|
2290
2290
|
Update Webhook
|
|
2291
2291
|
|
|
2292
|
-
Updates a webhook configuration. The events listed in the request are overwritten. If you want to add more events, provide also the events that are already in the webhook configuration.
|
|
2292
|
+
Updates a webhook configuration. The events listed in the request are overwritten. If you want to add more events, provide also the events that are already in the webhook configuration. <Note> <Badge color blue>Webhook Documentation</Badge> Read [Introduction to webhooks](/api-reference/introduction-to-webhooks) article to learn how webhooks work in Voucherify. </Note>
|
|
2293
2293
|
|
|
2294
2294
|
### Examples
|
|
2295
2295
|
|
data/docs/MetadataSchemasApi.md
CHANGED
|
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
14
14
|
|
|
15
15
|
Get Metadata Schema
|
|
16
16
|
|
|
17
|
-
Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details.
|
|
17
|
+
Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [Get Metadata Schemas](/api-reference/management/get-metadata-schema) endpoint to retrieve a metadata schema using its ID. </Note>
|
|
18
18
|
|
|
19
19
|
### Examples
|
|
20
20
|
|
|
@@ -72,7 +72,7 @@ end
|
|
|
72
72
|
|
|
73
73
|
List Metadata Schema Definitions
|
|
74
74
|
|
|
75
|
-
Retrieve metadata schema definitions.
|
|
75
|
+
Retrieve metadata schema definitions. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [List Metadata Schemas](/api-reference/management/list-metadata-schemas) endpoint to list all metadata schemas. </Note>
|
|
76
76
|
|
|
77
77
|
### Examples
|
|
78
78
|
|
data/docs/OrdersApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
18
18
|
|
|
19
19
|
Create Order
|
|
20
20
|
|
|
21
|
-
Creates an order object and triggers an order creation event.
|
|
21
|
+
Creates an order object and triggers an order creation event. <Note> <Badge color blue>Upsert Mode</Badge> If you pass an id or a source_id that already exists in the order database, Voucherify will return a related order object with updated fields. </Note>
|
|
22
22
|
|
|
23
23
|
### Examples
|
|
24
24
|
|
|
@@ -196,7 +196,7 @@ end
|
|
|
196
196
|
|
|
197
197
|
Import Orders
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
<Warning> <Badge color yellow>Historical orders</Badge> This endpoint should only be used to import historical orders into Voucherify. For on-going synchronization, the [update order](/api-reference/orders/update-order) endpoint should be used. This is critical because this endpoint does not store events or launch distributions. </Warning> The orders will also have a created_at date thats assigned when theyve been imported to Voucherify. To keep track of the actual order creation date, add an order metadata in ISO 8601 date or date time format to each imported order. # Limitations ## Import volume There can be only a single on-going order import per tenant per project at a given time. The user can schedule more imports but those extra imports will be scheduled to run in sequence one by one. ## Maximum count of orders in single import There is a 2000 limit of orders per one request. # Notifications There are no notifications on the Dashboard because this import is launched via the API. # Triggered actions If you import orders with customers, then a logic will be scheduled responsible for placing these customers into segments and refreshing the segments summary. Consequently, this update will trigger - Customers entering into segments - Distributions based on any rules tied to customer entering segment(s) - Earning rules based on the customer entering segment(s) # What is not triggered 1. No webhooks are triggered during the import of orders - for both orders and upserted products / SKUs. 2. Distributions based on Order Update, Order Paid, Order Created and Order Cancelled. In other words if you have a distribution based on Order Paid and you import an order with a PAID status, the distribution is not going to be triggered. 3. No events are created during the import of orders - for both orders and upserted products / SKUs. In other words you wont see any events in the Activity tab in the Dashboard such as Order created or Order paid. If you are additionally upserting products / SKUs, then you wont see the Product created events listed, etc. 4. Earning rules based on Order Paid wont be triggered. This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request with [GET Async Action](/api-reference/async-actions/get-async-action) endpoint.
|
|
200
200
|
|
|
201
201
|
### Examples
|
|
202
202
|
|
data/docs/ProductsApi.md
CHANGED
|
@@ -26,7 +26,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
26
26
|
|
|
27
27
|
Create Product
|
|
28
28
|
|
|
29
|
-
Creates a product object.
|
|
29
|
+
Creates a product object. <Note> <Badge color blue>Upsert Mode</Badge> If you pass an id or a source_id that already exists in the product database, Voucherify will return a related product object with updated fields. </Note>
|
|
30
30
|
|
|
31
31
|
### Examples
|
|
32
32
|
|
|
@@ -86,7 +86,7 @@ end
|
|
|
86
86
|
|
|
87
87
|
Create SKU
|
|
88
88
|
|
|
89
|
-
This method adds product variants to a [created product](/api-reference/products/create-product).
|
|
89
|
+
This method adds product variants to a [created product](/api-reference/products/create-product). <Note> <Badge color blue>Upsert Mode</Badge> If you pass an id or a source_id that already exists in the sku database, Voucherify will return a related sku object with updated fields. </Note>
|
|
90
90
|
|
|
91
91
|
### Examples
|
|
92
92
|
|
|
@@ -388,7 +388,7 @@ end
|
|
|
388
388
|
|
|
389
389
|
Import Products using CSV
|
|
390
390
|
|
|
391
|
-
Import products into the repository using a CSV file. The CSV file has to include headers in the first line.
|
|
391
|
+
Import products into the repository using a CSV file. The CSV file has to include headers in the first line. <Note> <Badge color blue>Standard product fields mapping</Badge> - Create a **comma separated value (CSV) file** or download our CSV import template. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b82ed68d51e779443f550/Import_products_template.csv). - Supported CSV file headers: name,source_id,price,attributes,image_url,Metadata_property_name - **Name** is a **required** field. The remaining fields in the CSV template are optional. - Override/Update products **names** in Voucherify using this method. Data will be updated for each product included in the CSV file whose **source_id** matches a source ID in Voucherify. No other data can be updated other than the product name. - Note that dates and date-time attributes need to be provided in compliance with the **ISO 8601 standard**. For example, 2022-03-11T09:00:00.000Z or 2022-03-11 - YYYY-MM-DD - YYYY-MM-DDTHH - YYYY-MM-DDTHH:mm - YYYY-MM-DDTHH:mm:ss - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ssZ - YYYY-MM-DDTHH:mm:ss.SSSZ - Columns that cannot be mapped to standard fields, will be mapped to **Custom attributes** and added as **products metadata**. There is no limit on the number of custom attributes that you can import as metadata. - To provide the proper data type, you need to add all custom attributes to the metadata schema **before importing the file**. Read more [here](/prepare/metadata#add-metadata). - **Product attributes** (not custom attributes) need to be separated by a comma and enclosed in double quotes, i.e attribute1,attribute2. - Headers with metadata names **cant contain white-space characters**. - If you import metadata defined in the schema as **arrays (multiple)**, you need to separate each value using a comma, for example: - array of strings: subscribed,premium - array of numbers: 123,234. - array of dates: 2000-01-01,2000-01-02 </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action).
|
|
392
392
|
|
|
393
393
|
### Examples
|
|
394
394
|
|
|
@@ -448,7 +448,7 @@ end
|
|
|
448
448
|
|
|
449
449
|
Import SKUs using CSV
|
|
450
450
|
|
|
451
|
-
Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv).
|
|
451
|
+
Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv). <Warning> <Badge color yellow>Import sequence</Badge> First import products using the [dedicated endpoint](/api-reference/products/import-products-using-csv), then import SKUs using this endpoint to properly match SKUs to products. </Warning> <Note> <Badge color blue>Standard SKU fields mapping</Badge> - **Required** fields are source_id and product_id. - Supported CSV file headers: product_id,sku,source_id,price,image_url,attributes - SKU **source_id** must be unique in the entire product catalog, no duplicates are allowed. - SKU attributes need to be in the form of a stringy-fied json, i.e.{color:blue}. These attributes must be defined in the **product** beforehand so you can import them to the SKU. - You can use this method to update the following parameters in bulk: **sku** and the sku **price**. - Columns that cannot be mapped to standard fields will be mapped to Custom attributes and added as product metadata. There is no limit on the number of custom attributes that you can import as metadata. </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action).
|
|
452
452
|
|
|
453
453
|
### Examples
|
|
454
454
|
|
data/docs/PublicationsApi.md
CHANGED
|
@@ -15,7 +15,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
15
15
|
|
|
16
16
|
Create Publication
|
|
17
17
|
|
|
18
|
-
This method selects vouchers that are suitable for publication, adds a publish entry and returns the publication. A voucher is suitable for publication when its active and hasnt been published yet.
|
|
18
|
+
This method selects vouchers that are suitable for publication, adds a publish entry and returns the publication. A voucher is suitable for publication when its active and hasnt been published yet. <Warning> <Badge color yellow>Clearly define the source of the voucher</Badge> You must clearly define which source you want to publish the voucher code from. It can either be a code from a campaign or a specific voucher identified by a code. </Warning> <Warning> <Badge color yellow>Publish multiple vouchers</Badge> In case you want to publish multiple vouchers within a single publication, you need to specify the campaign name and number of vouchers you want to publish. </Warning> <Note> <Badge color blue>Auto-update campaign</Badge> In case you want to ensure the number of publishable codes increases automatically with the number of customers, you should use an **auto-update** campaign. </Note>
|
|
19
19
|
|
|
20
20
|
### Examples
|
|
21
21
|
|
|
@@ -77,7 +77,7 @@ end
|
|
|
77
77
|
|
|
78
78
|
Create Publication with GET
|
|
79
79
|
|
|
80
|
-
This method selects vouchers that are suitable for publication, adds a publish entry and returns the publication. A voucher is suitable for publication when its active and hasnt been published yet.
|
|
80
|
+
This method selects vouchers that are suitable for publication, adds a publish entry and returns the publication. A voucher is suitable for publication when its active and hasnt been published yet. <Danger> <Badge color red>Limited access</Badge> Access to this endpoint is limited. This endpoint is designed for specific integrations and the API keys need to be configured to access this endpoint. Navigate to the **Dashboard** → **Project Settings** → **General** → **Integration Keys** to set up a pair of API keys and use them to send the request. </Danger> <Warning> <Badge color yellow>Clearly define the source of the voucher</Badge> You must clearly define which source you want to publish the voucher code from. It can either be a code from a campaign or a specific voucher identified by a code. </Warning> <Warning> <Badge color yellow>Publish multiple vouchers</Badge> This endpoint does not support the publishing of multiple vouchers from a single campaign. In case you want to publish multiple vouchers within a single publication, you need to use a [dedicated endpoint](/api-reference/publications/create-publication). </Warning> <Note> <Badge color blue>Auto-update campaign</Badge> In case you want to ensure the number of publishable codes increases automatically with the number of customers, you should use an **auto-update** campaign. </Note> # Example Request <Danger> <Badge color red>Required</Badge> Query param voucher OR campaign MUST be filled out. If you provide both, campaign param will be skipped. </Danger>
|
|
81
81
|
|
|
82
82
|
### Examples
|
|
83
83
|
|
|
@@ -147,7 +147,7 @@ end
|
|
|
147
147
|
|
|
148
148
|
List Publications
|
|
149
149
|
|
|
150
|
-
Retrieve a list of publications. To return a **particular** publication, you can use the source_id query parameter and provide the source_id of the publication you are looking for specifically. # Pagination
|
|
150
|
+
Retrieve a list of publications. To return a **particular** publication, you can use the source_id query parameter and provide the source_id of the publication you are looking for specifically. # Pagination <Warning> <Badge color yellow>Important!</Badge> If you want to scroll through a huge set of records, it is recommended to use the [Exports API](/api-reference/exports/create-export). This API will return an error page_over_limit if you reach a page above 1000. </Warning> # Filter Query The filters query parameter allows for joining multiple parameters with logical operators. The syntax looks as follows: ## Examples
|
|
151
151
|
|
|
152
152
|
### Examples
|
|
153
153
|
|
data/docs/QualificationsApi.md
CHANGED
|
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
13
13
|
|
|
14
14
|
Check Eligibility
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
<Warning> The Qualifications endpoint ignores the rules checking: - Limit of total redeemed discount amount per campaign - Limit of total redemptions count per campaign - Redemptions per customer - Redemptions per customer in a campaign - Total amount before discount </Warning> Generate a list of redeemables that are applicable in the context of the customer and order. The new qualifications method is an improved version of [Campaign Qualifications](/api-reference/campaigns/examine-campaign-qualification), [Voucher Qualifications](/api-reference/vouchers/examine-voucher-qualification) API requests. The new qualification method introduces the following improvements: - Qualification results are returned faster - No limit on the number of returned redeemables - Introduces new qualification scenarios, not available in the previous version <Tip> <Badge color green>Scenario Guide</Badge> Read [the dedicated guide](/guides/checking-eligibility) to learn about some use cases this endpoint can cover. </Tip> # Paging The Voucherify Qualifications API request will return to you all of the redeemables available for the customer in batches of up to 50 redeemables per page. To get the next batch of redeemables, you need to use the starting_after cursor. To process of paging the redeemables works in the following manner: - You send the first API request for Qualifications without the starting_after parameter. - The response will contain a parameter named has_more. If the parameters value is set to true, then more redeemables are available. - Get the value of the created_at parameter of the last returned redeemable. The value of this parameter will be used as a cursor to retrieve the next page of redeemables. - Send another API request for Qualification with the starting_after parameter set to the value taken from the created_at parameter from the last returned redeemable. - Voucherify will return the next page of redeemables. - If the has_more parameter is set to true, apply steps 3-5 to get the next page of redeemables. # Caching Qualification has a 5-minute cache for the returned results. If you change your campaign settings or validation rules, the changes will apply to qualification results after the cache refreshes.
|
|
17
17
|
|
|
18
18
|
### Examples
|
|
19
19
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_ratio** | **
|
|
7
|
+
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the `points_ratio` property. | [optional] |
|
|
8
8
|
| **points_ratio** | **Integer** | The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
9
9
|
|
data/docs/RedemptionsApi.md
CHANGED
|
@@ -208,7 +208,7 @@ end
|
|
|
208
208
|
|
|
209
209
|
Redeem Stackable Discounts
|
|
210
210
|
|
|
211
|
-
In the table below, you can see the logic the API follows to calculate discounts and amounts: API keys with a Merchant role cant use this endpoint.
|
|
211
|
+
In the table below, you can see the logic the API follows to calculate discounts and amounts: API keys with a Merchant role cant use this endpoint. <Note> <Badge color blue>Rollbacks</Badge> You cant roll back a child redemption. When you call rollback on a stacked redemption, all child redemptions will be rolled back. You need to refer to a parent redemption ID in your [rollback request](/api-reference/redemptions/rollback-stackable-redemptions). </Note> <Note> <Badge color blue>Also available on client-side</Badge> This method is also accessible through public keys which you can use in client-sideβ apps: mobile and web browser apps. Go to the dedicated [endpoint](/api-reference/client-side/redeem-stackable-discounts-client-side) to learn more. </Note>
|
|
212
212
|
|
|
213
213
|
### Examples
|
|
214
214
|
|
|
@@ -268,7 +268,7 @@ end
|
|
|
268
268
|
|
|
269
269
|
Rollback Redemption
|
|
270
270
|
|
|
271
|
-
Your business logic may include a case when you need to undo a redemption. You can revert a redemption by calling this API endpoint. This endpoint rolls back only single redemptions, meaning those that are not stacked. Stacked redemptions belong to a parent redemption. To roll back a parent redemption, including all of its individual redemptions, use the [POST Rollback Stackable Redemptions](/api-reference/redemptions/rollback-stackable-redemptions)
|
|
271
|
+
Your business logic may include a case when you need to undo a redemption. You can revert a redemption by calling this API endpoint. This endpoint rolls back only single redemptions, meaning those that are not stacked. Stacked redemptions belong to a parent redemption. To roll back a parent redemption, including all of its individual redemptions, use the [POST Rollback Stackable Redemptions](/api-reference/redemptions/rollback-stackable-redemptions) <Warning> You can roll back a redemption up to 3 months back. </Warning> # Effect The operation - creates a rollback entry in vouchers redemption history (redemption.redemption_entries) and - gives 1 redemption back to the pool (decreases redeemed_quantity by 1). # Returned funds In case of *gift card vouchers*, this method returns funds back according to the source redemption. In case of *loyalty card vouchers*, this method returns points back according to the source redemption.
|
|
272
272
|
|
|
273
273
|
### Examples
|
|
274
274
|
|
|
@@ -334,7 +334,7 @@ end
|
|
|
334
334
|
|
|
335
335
|
Rollback Stackable Redemptions
|
|
336
336
|
|
|
337
|
-
Rollback a stackable redemption. When you roll back a stacked redemption, all child redemptions will be rolled back. Provide the parent redemption ID as the path parameter. However, you can use this endpoint to roll back a single redemption that does not have a parent, similarly to [POST Rollback redemption](/api-reference/redemptions/rollback-redemption).
|
|
337
|
+
Rollback a stackable redemption. When you roll back a stacked redemption, all child redemptions will be rolled back. Provide the parent redemption ID as the path parameter. However, you can use this endpoint to roll back a single redemption that does not have a parent, similarly to [POST Rollback redemption](/api-reference/redemptions/rollback-redemption). <Warning> You can roll back a redemption up to 3 months back. </Warning>
|
|
338
338
|
|
|
339
339
|
### Examples
|
|
340
340
|
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **expand** | **Array<String>** | Expand array lets you configure params included in the response. Depending on the strings included in the array, the response will contain different details. | **Expand Option** | **Response Body** | |:---|:---| | [\"order\"] | - Same response as fallback response (without an options object).<br />- Order data with calculated discounts are listed in each child redeemable object.<br />- Metadata not included for each discount type. | | [\"redeemable\"] | Expands redeemable objects by including `metadata` for each discount type. | | [\"order\", \"redeemable\"] | - Order data with calculated discounts are listed in each child redeemable object.<br />- Includes `metadata` for each discount type. | | [\"redeemable\", \"redemption\", \"category\"] | - Returns each discount type's `metadata` in each child redemption object.<br />- Returns redemption object `metadata`.<br />- Returns an expanded `categories` object, showing details about the category. | | [optional] |
|
|
8
|
+
| **language** | **String** | Selects the language for the custom validation-rule error message. Returns the message in this language when a validation rule fails. Falls back to the Error Message Library default language when omitted or when the requested language has no message. Omits the custom error when no message can be resolved. | [optional] |
|
|
8
9
|
|
data/docs/ReferralsApi.md
CHANGED
|
@@ -18,7 +18,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
18
18
|
|
|
19
19
|
Add Referral Code Holders
|
|
20
20
|
|
|
21
|
-
Adds new holders to a referral code as **referees**. The data sent in the request is upserted into the customer data. If the request returns an error even for one customer, you have to resend the whole request. Customer data is upserted if the data for all customers is correct. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish)
|
|
21
|
+
Adds new holders to a referral code as **referees**. The data sent in the request is upserted into the customer data. If the request returns an error even for one customer, you have to resend the whole request. Customer data is upserted if the data for all customers is correct. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish) <Tip> To add a holder as a referrer, use the [Create Publication](/api-reference/publications/create-publication) endpoint. </Tip> <Note> <Badge color blue>Alternative endpoint</Badge> This endpoint is an alternative to the [Add Referral Code Holders endpoint](/api-reference/referrals/add-referral-code-holders-with-campaign-id). The URL was re-designed to retrieve the referral member holders without providing the campaignId as a path paremeter. </Note>
|
|
22
22
|
|
|
23
23
|
### Examples
|
|
24
24
|
|
|
@@ -80,7 +80,7 @@ end
|
|
|
80
80
|
|
|
81
81
|
Add Referral Code Holders with Campaign ID
|
|
82
82
|
|
|
83
|
-
Adds new holders to a referral code as **referees**. The data sent in the request is upserted into the customer data. If the request returns an error even for one customer, you have to resend the whole request. Customer data is upserted if the data for all customers is correct. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish)
|
|
83
|
+
Adds new holders to a referral code as **referees**. The data sent in the request is upserted into the customer data. If the request returns an error even for one customer, you have to resend the whole request. Customer data is upserted if the data for all customers is correct. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish) <Tip> To add a holder as a referrer, use the [Create Publication](/api-reference/publications/create-publication) endpoint. </Tip>
|
|
84
84
|
|
|
85
85
|
### Examples
|
|
86
86
|
|
|
@@ -214,7 +214,7 @@ end
|
|
|
214
214
|
|
|
215
215
|
List Referral Code Holders
|
|
216
216
|
|
|
217
|
-
Retrieves the holders of the referral code from a referral campaign. To use this endpoint, you must have the following permissions: - Read Customers (customers.details.read)
|
|
217
|
+
Retrieves the holders of the referral code from a referral campaign. To use this endpoint, you must have the following permissions: - Read Customers (customers.details.read) <Note> <Badge color blue>Alternative endpoint</Badge> This endpoint is an alternative to the [List Member Holders endpoint](/api-reference/referrals/list-referral-code-holders-with-campaign-id). The URL was re-designed to retrieve the referral member holders without providing the campaignId as a path paremeter. </Note>
|
|
218
218
|
|
|
219
219
|
### Examples
|
|
220
220
|
|
|
@@ -282,7 +282,7 @@ end
|
|
|
282
282
|
|
|
283
283
|
Remove Referral Card Holder
|
|
284
284
|
|
|
285
|
-
Removes the holder from a referral card. You can remove a referee only. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish)
|
|
285
|
+
Removes the holder from a referral card. You can remove a referee only. To use this endpoint, you must have the following permissions: - Create and modify Customers and Segments (customers.modify) - Publish Voucher (vouchers.publish) <Note> <Badge color blue>Alternative endpoint</Badge> This endpoint is an alternative to the [Remove Referral Card Holder endpoint](/api-reference/referrals/remove-referral-card-holder-with-campaign-id). The URL was re-designed to retrieve the referral member holders without providing the campaignId as a path paremeter. </Note>
|
|
286
286
|
|
|
287
287
|
### Examples
|
|
288
288
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_ratio** | **
|
|
7
|
+
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the `points_ratio` property. | [optional] |
|
|
8
8
|
| **points_ratio** | **String** | The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
9
9
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_ratio** | **
|
|
7
|
+
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the `points_ratio` property. | [optional] |
|
|
8
8
|
| **points_ratio** | **String** | The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
9
9
|
|
data/docs/SegmentsApi.md
CHANGED
|
@@ -15,7 +15,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
15
15
|
|
|
16
16
|
Create Segment
|
|
17
17
|
|
|
18
|
-
Create a customer segment.
|
|
18
|
+
Create a customer segment. <Warning> <Badge color yellow>Limit on static segments</Badge> There is a cap on the number of customers that you can assign to a static segment: **20,000**. If you would like to create a bigger segment, then you can use the unlimited auto-update or passive segment instead and use some customer metadata to build this segment. </Warning> <Warning> <Badge color yellow>Limit on Active and Passive segments</Badge> You can create a maximum of 100 passive and active segments. </Warning>
|
|
19
19
|
|
|
20
20
|
### Examples
|
|
21
21
|
|