Post data from custom doctype to POS

Hello everyone,

is it possible to post data from a custom doctype to POS interface?

i have a custom appointment doctype which has information like customer name, service availed, quantity, price etc. What i want is, to post these data to POS cart and then checkout and record payment using POS. something like get_mapped_doc, but for pages since POS is a page.

My use case is, i want to create appointment for my customer using custom doctype and after the appointment when he makes payment, i can post this information to POS cart. i can also add other products from stock to the cart and make payments together in a single bill. The sales invoice and payment entry will also be automatically get created.

How to achieve this? Thanks