Unable to call book POST, receiving 400 error #108
-
I have been reading through this repository and its resources for the last couple of weeks and would like to say that this is a very cool community and I have so much respect for the project and creator. I've been working through the Api myself as a sort of side-project and have hit a wall in regard to the /book request. I'm sure I'm using the right parameters for this with book_token and struct_payment_id, but the error I'm receiving is
I'm extracting the token from /details via Lastly, I've been using Postman for the requests, which may be a reason for the issue? Could missing request headers be a cause for the issue? I appreciate any insight anyone could provide! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Based on your error message @teddywagner, my assumption is that you didn't set the |
Beta Was this translation helpful? Give feedback.
Based on your error message @teddywagner, my assumption is that you didn't set the
Content-Type
header toapplication/x-www-form-urlencoded
. What this does is escape special characters before your payload is sent over the web. Likely yourbook_token
was not escaped so it was not received correctly on the other side which is why you are getting anAn invalid book token was provided.
error message.