[#555] promo field in booking detail appears redundant

Migrated from Redmine #555 | Author: Alex Collins
Status: New | Priority: Low, I can wait | Created: 2020-08-17


There is a data field of promo on each raw booking when you download into the api (getBookingDetails). But despite making test bookings using coupons that field always remains empty. It seems that the discounts are instead provided by the invoicing feature.

Am I right in saying this promo field is redundant? Is there any way to work out which coupon code has been applied to a booking?

Redmine Admin wrote:

Hi, you are absolutely right. This is redundant field.
Unfortunately there is no way to work with coupons via API (and no way to get coupon applied to a booking)

Alex Collins wrote:

Redmine Admin wrote:

Hi, you are absolutely right. This is redundant field.
Unfortunately there is no way to work with coupons via API (and no way to get coupon applied to a booking)

Is there anyone to batch download all invoices on the site? I can see text for the code there

Redmine Admin wrote:

there is no API to get list of invoices