[#1295] Issue with creating an invoice when creating a booking with the rest API.

Migrated from Redmine #1295 | Author: Pavel Naydenov
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-10-28


When I create a booking with this endpoint POST https://user-api-v2.simplybook.me/admin/bookings I don’t seem to be able to create an invoice that goes along with the booking. If i create the booking directly form the calendar i have the option “Receive payment” and when I select it I create the invoice, however I can not achieve the same using the rest API. Is there a way to create the invoice using the API, i don’t seem to find such endpoint in the docs ?

Dmytro Bondarev wrote:

Hi,

You can add options to your request
{

“accept_payment”: true,
“payment_processor”: “manual”
}

please use payment_processor=“delay” if you want to accept payment later.