Unable to get document_Id in sending request response.

  • 1
  • Problem
  • Updated 1 year ago
  • (Edited)
To upload my document I have made synchronous calls 

1) POST to /public/v1/sending_requests
2) PUT to /uploaded_url/
3) POST to /public/v1/sending_requests/:id/uploaded  

Now I want to get my document Id to track its status.
My request's responses is below. 
For POST /public/v1/sending_requests
response: { "sending_request": { "id": "40781408-d812-4042-8afc-8b0a4e957a3d", "status": "waiting_for_file", "status_message": null, "upload_url": "https://rightsignature-sr-production.s3.amazonaws.com/public_api/sending_requests/40781408-d812-4042-8afc-8b0a4e957a3d/DemoForRightSign.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAJKG4LL5CXJHXLGIA%2F20171211%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171211T121746Z&X-Amz-Expires=3600&X-Amz-Security-Token=FQoDYXdzEOj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDF92fBxil0Xqmko5oyK3A8bGeUgL0mcSy63mlo1wkHy0TqnDkI7ovTCSLnT1CoplBUUKHiO3JClMxJwLpF04VrGtu1swmTpMqyLtmV2Tx8IzvrztfH1PurO3AFc%2FTLhKm6wBMbXhE%2B1RRDGZ39ULRwVnkB0F58NtmKskn9RiuitkUjGjrOlsY8lxcUvOJWdaSIgI8z98mshHMz1zpXeL3i88v9Bfj3VSg7G8NVSShIs9CVYDU0f%2FsAR4ucq%2B4HMAOmpPJQGXeXKKeVaIGTswv%2F8OGawNMDBtPBxP6bbFhiM6TPz%2FEUF6w2L%2FuHw9cVPWQlorFFBCp5aDuojDEQrt6gUgvrNRuytAMZFMUo%2BNSc849LaEJ1llCEQOUJWCFbr3a6LYq7kMqHfScdQEz9j8khnAP7mP%2BvtTVeTDk3GZYXCErVv5Y%2B0pFr%2BO%2FrTPD9axNrKkT0F%2B0TPM%2FgVF4dqpS4kx%2BIOejaj9lWvBW3TDt4QOwsp3tbQCLLlXyrJScXv4kkpetjz1rpKkcVedsPdksLevtMhYvbF43zd1FrxRBFrOAiAjSVjRFNMK8mmxWQV6OlU8zE03jJBS%2F9mi4Us0sv%2FWXM5lCfco58q40QU%3D&X-Amz-Signature=2eb306acef55a78fb637ca0e7bccde9506d1047d7c82ae220fff9e632a81ed7d&X-Amz-SignedHeaders=Host&x-amz-acl=private", "document_template_id": null, "created_at": "2017-12-11T04:17:46.407-08:00", "updated_at": "2017-12-11T04:17:46.407-08:00" } }
For POST to /public/v1/sending_requests/:id/uploaded

response:
{
  "id": "40781408-d812-4042-8afc-8b0a4e957a3d",
  "status": "waiting_for_file",
  "status_message": null,
  "upload_url": "https://rightsignature-sr-production.s3.amazonaws.com/public_api/sending_requests/c2036e26-47fe-4428...;,
  "document_template_id": null,
  "created_at": "2017-12-11T04:21:46.864-08:00",
  "updated_at": "2017-12-11T04:21:46.864-08:00"
}
 
And I cant find any document_Id for these requests.
Is there any optional parameters we have to set in Request (POST to /public/v1/sending_requests) to get back the document_Id ? 

Your help would be much appreciated!

thanks,
Photo of Farqalit Nasir

Farqalit Nasir

  • 22 Posts
  • 0 Reply Likes
  • confused

Posted 1 year ago

  • 1
Photo of Deepikaa Subramaniam

Deepikaa Subramaniam

  • 3 Posts
  • 3 Reply Likes
I checked the status of this sending request and it looks like there has been no file upload. Could you tell us if you are uploading the document as part of the PUT request 
PUT to /uploaded_url/

if the upload is successful, then the response for GET /public/v1/sending_requests/:sending_request_id contains a document_template_id which is the document id
Photo of Farqalit Nasir

Farqalit Nasir

  • 22 Posts
  • 0 Reply Likes
Thank you deepikaa !
it's been very helpful for me.
(Edited)