Trying out Taxjar, but need a little help to get started.

I'm currently sending the following to https://api.taxjar.com (or
api.sandbox.taxjar.com)
$vt_HTTP_Request:=\
"GET /v2/rates/"+$vt_Zip+<>CRLF+\
"Host: "+$vt_Service_URL+<>CRLF+\
"Connection: close"+<>CRLF+\
"Cache-Control: no-cache"+<>CRLF+\
"Content-type: text/html; charset=utf-8"+<>CRLF+\
"Content-length: "+String($vi_Content_Length)+<>CRLF+\
"Authorization: Bearer "+$vt_API_Key+<>CRLF+<>CRLF+\
$vt_HTTP_Request

The actual HTTP request is blank, it's just all header.

The service is returning:
{"error":"Unauthorized","detail":"Not authorized for route 'GET
/v2/rates/98052'","status":401}

I feel like the zip should be part of the request, but the cURL example has
it in the address.

Any ideas what I'm doing wrong?



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to