Skip to content

Unable to call book POST, receiving 400 error #108

Answered by Alkaar
teddywagner asked this question in Q&A
Discussion options

You must be logged in to vote

Based on your error message @teddywagner, my assumption is that you didn't set the Content-Type header to application/x-www-form-urlencoded. What this does is escape special characters before your payload is sent over the web. Likely your book_token was not escaped so it was not received correctly on the other side which is why you are getting an An invalid book token was provided. error message.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@teddywagner
Comment options

@pja66
Comment options

@pja66
Comment options

@bfiegoli
Comment options

Answer selected by teddywagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants