Empty SLIP in Rated response
Hello, I have a problem. I'm making rated request for a specific item, but SLIP field is empty string. What I do wrong?
Request URI:
https://mycompany.checkfront.com/api/3.0/item/1?start_date=20171017&end_date=20171017¶m[adult]=2
rate object content (from response body):
Request URI:
https://mycompany.checkfront.com/api/3.0/item/1?start_date=20171017&end_date=20171017¶m[adult]=2
rate object content (from response body):
rate: {
status: 'AVAILABLE',
available: 300,
slip: '',
summary: {
title: 'Available',
details: null,
price: { total: '$0.00', title: [], unit: null, param: [] },
date: 'Tue Oct 17, 2017'
},
sub_total: '0.00',
event: [{ adult: '27.00', child: '13.50' }],
start_date: '20171017',
end_date: '20171017'
},
Comments
Thank you for reaching out on our forum!
When booking parent grouped items via the API, the flow is a little different than the UI. I have sent you an email to clarify a few things about your setup, however in short you would make the rated request to the child item first, and get the SLIP in the rated response that is returned. From there, you can pass in the SLIP to the booking/session with a line_id parameter, and then proceed to create the booking as normal.
Let me know if there is anything else that I can help you with!
Best Regards,
Brett - Checkfront Support Team
Thanks in advance.
Thanks for your reply! I added a note regarding booking parent/child items to our API documentation here: http://api.checkfront.com/guide/how_to.html#add-items-to-a-booking-session. Hopefully this will help reduce confusion in the future.
Also, please note that our API Documentation is open source, and available on GitHub at https://github.com/Checkfront/API. Feel free to submit a pull request if there is anything that you notice could be improved!
Best Regards,
Brett - Checkfront Support Team