Migrated from Redmine #799 | Author: Antonio Graterol Status: Feedback | Priority: Normal | Created: 2021-10-08
Hi you Guys, recently I did a query related to get the connection between a coupon title and its invoices, thanks to you it worked like a charm.
Following that thread, this time I need to get the data that appears inside the red rectangle of this image (https://ibb.co/HpTF1Gw), I already know that some of them can be fetched using ‘https://user-api-v2.simplybook.me/admin/promotions’ but I can relate only a few of them and I’m not really sure of what I’m getting.
Next, I’ll show a comparison from what I’m looking for and what I get from API call
Simplybook interface | API Call’s JSON object
Code | Not found
Usage limit | seems to be represented by this attribute - “is_unlimited”: true
Valid From - To | Not found
Discount | Found - “discount”: 100.0
Used discount | Not found
The requests:
I want to confirm if the “is_unlimited” attribute coming from the API call is the same value as Usage limit from the web interface
Hi Dmitry, I still not getting anything, most of all I need the code, which is called in UI jargon “Redeemable Code”. Looking at the links you’ve sent they have the same URL structure, though I did try with both even with no filters and retrieved empty objects…