Skip to main content

Hey there 👋

 

I’m using the Webhook Custom Request to patch an entry in an ERP system with a receipt (pdf document) that wasn’t available at the time the purchase was created.

Below you’ll find the api documentation of the ERP I’m using. How would I need to configure the Webhook Custom Request in order to patch the entry with a PDF receipt that’s stored in webdrive and can be accessed through a URL?

Thanks in advance,

Philipp

 

PATCH /purchases/{id}/store_document

Submits the purchase’s document using multipart/form-data format if it has to be changed afterwards or was not submitted with the initial creation.

curl -X PATCH \
'https://{domain}.mocoapp.com/api/v1/purchases/{id}/store_document' \
-H 'Authorization: Token token=YOUR_API_KEY' \
-F file=@/path/to/file.pdf
  • file* – path to the document to store