Pricing Plan API Guest Checkout

Does Guest Checkout not work from the pricing plans api? I have guest checkout enabled for my pricing plans, but when I call checkout.cr eateOnlineOrder(…) the user is redirected to a login/signup page.

Is it possible to use Guest Checkout from the API?