curl https://api.thanxsandbox.com/upload_url \ -X GET \ -H "Content-Type: application/json" \ -H "Accept-Version: v4.0" \ -H "Accept: application/json" \ -H "Authorization: Bearer ${token}" \ -H "X-ClientId: ${client_id}"
{ "upload_url": { "url": "https://thanx.s3.amazonaws.com/uploads/receipts/image_5051555_1534872299.jpeg?AWS-PARAMS", "file_path": "uploads/receipts/image_5051555_1534872299.jpeg" } }
This endpoint provides a pre-signed url where an image or file can be uploaded.
POST /receipts
file_path
receipt