Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Q&A

About package available call:(POST https://hhstaging.hungryhub.com/api/v5/restaurants/1552/find_available_packages.json)

  1. I heard there are two different type of packages, one is payment on arrival, another is payment at booking moment, could you advise which field I can know the payment type? Answer:
"charge_type": "on_charge", we have 2 charge types (on_charge and on_hold)
on_hold : when user pay their booking, the money will be held from their account, and it will successfully pay when the reservation was complete by coming to the restaurant (usually for a credit card)
on_charge : when user pays it will charge directly from user's card, or pay at the restaurant
"payment_type": "qrcode_and_creditcard", 
you can find what payment types the package used on this parameter

And about create booking by calling API:(POST https://hhstaging.hungryhub.com/api/v5/reservations.json)

  1. Does packages field only need to pass these 3 parameters for all restaurant booking?
  2. Any other case need more or less parameters than this? If yes, any example restaurant in staging and call format for reference?
  3. Is menu_sections essential for the call or just optional? Answer:
for 1st question let me clarify two types of package menus I heard: Type 1 : customer can make booking with menu, and no need to pay immediately, customer will pay the bill when they physically go to restaurant Type 2: customer need to pay immediately while make booking with menu, this one should go further online payment process So in the response of package available API, how can we classify package belongs to which one? **Answer:** yeah, but this is related to different about credit card (on\_hold)/debit card (on\_charge) payments, not option of physically go to restaurant (such as pay by cash) Or do you mean all packages need to go to process of online payment? **Answer:** I wonder if I can see the boolean field "pay\_now", to determine if customer need to go online payment immediately ![](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/357f8292-0afe-4262-b282-08c00c7e97a7/image_(21).png) **Answer:**