[#647] Bookings having the same ID causing a payment error

Dmytro Bondarev wrote:

You adding comment to booking, and accept payment for offer/invoice.
It is different types of objects.

Redmine Admin wrote:

first result is booking id, second - payment id. It is different objects and they may have same ids of course

Dmytro Bondarev wrote:

You have

invoice_id: 366

in booking details to accept payment for this booking please use this field.

Amit Duggal wrote:

Ok but why do they have same ids?? How can there be 2 ids with same number

Dmytro Bondarev wrote:

Because they are different objects and can have the same ids.

Amit Duggal wrote:

So the payment API accepts invoice id as the Id in API link while the comment api accepts the booking id in the API link??

Dmytro Bondarev wrote:

correct.

(Short original content)

Amit Duggal wrote:

Ok thanks

It would have been really helpful if it had been mention in the documentation of Rest API’s only.