Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API Reference/Guides] Update the Checking eligibility page #475

Closed
kasjankotyniarsp opened this issue Sep 26, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@kasjankotyniarsp
Copy link
Collaborator

Please note - I'm still working on this issue. I needed to drop it for a second.

Please change the following data on the page https://docs.voucherify.io/docs/checking-eligibility

Case 1 not logged in request:

{ "scenario": "ALL", "mode": "BASIC", "order": { "items": [ { "source_id": "bosch_product_1", "quantity": "1", "price": 10000, "related_object": "product", "product": { "name": "BOSCH GDR 120-LI Cordless Impact Driver / Wrench" } }, { "source_id": "digital_book", "quantity": "1", "price": 1500, "related_object": "product", "product": { "name": "Digital Book" } } ] }, "options": { "expand": [ "redeemable" ] } }

Case 1 Response:
{ "redeemables": { "object": "list", "data_ref": "data", "data": [ { "id": "promo_Fwbf1FWCQdqHIY3xlu6XDliB", "object": "promotion_tier", "created_at": "2023-09-26T09:48:44.948Z", "result": { "discount": { "type": "PERCENT", "effect": "APPLY_TO_ORDER", "percent_off": 10, "is_dynamic": false } }, "order": { "amount": 11500, "discount_amount": 1150, "total_discount_amount": 1150, "total_amount": 10350, "applied_discount_amount": 1150, "total_applied_discount_amount": 1150, "items": [ { "object": "order_item", "source_id": "bosch_product_1", "related_object": "product", "quantity": 1, "amount": 10000, "price": 10000, "subtotal_amount": 10000, "product": { "name": "BOSCH GDR 120-LI Cordless Impact Driver / Wrench" } }, { "object": "order_item", "source_id": "digital_book", "related_object": "product", "quantity": 1, "amount": 1500, "price": 1500, "subtotal_amount": 1500, "product": { "name": "Digital Book" } } ], "metadata": {}, "customer_id": null, "referrer_id": null, "object": "order" }, "applicable_to": { "data": [], "total": 0, "data_ref": "data", "object": "list" }, "inapplicable_to": { "data": [], "total": 0, "data_ref": "data", "object": "list" }, "metadata": {}, "name": "10% off for Everything", "campaign_id": "camp_nkcYmFDpw6fmzAOZQbqjXGzf", "campaign_name": "Promotions for everyone" } ], "total": 1, "has_more": false }, "order": { "items": [ { "object": "order_item", "source_id": "bosch_product_1", "related_object": "product", "quantity": 1, "price": 10000, "product": { "name": "BOSCH GDR 120-LI Cordless Impact Driver / Wrench" } }, { "object": "order_item", "source_id": "digital_book", "related_object": "product", "quantity": 1, "price": 1500, "product": { "name": "Digital Book" } } ], "metadata": {}, "customer_id": null, "referrer_id": null, "object": "order" }, "stacking_rules": { "redeemables_limit": 30, "applicable_redeemables_limit": 5 } }

Case 1 logged in request:
{ "scenario": "ALL", "mode": "BASIC", "order": { "items": [ { "source_id": "bosch_product_1", "quantity": "1", "price": 10000, "related_object": "product", "product": { "name": "BOSCH GDR 120-LI Cordless Impact Driver / Wrench" } }, { "source_id": "digital_book", "quantity": "1", "price": 1500, "related_object": "product", "product": { "name": "Digital Book" } } ] }, "options": { "expand": [ "redeemable" ] } }

Case 1 not logged in response:

@kasjankotyniarsp kasjankotyniarsp added the bug Something isn't working label Sep 26, 2023
@janiksam janiksam pinned this issue Sep 27, 2023
@janiksam janiksam unpinned this issue Sep 27, 2023
@janiksam
Copy link
Collaborator

#477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants