Hallo,
wie so oft bringt uns der Upload eines Dokuments via API an den Rande des Wahnsinns
Über Postman funktioniert es auf anhieb, hier die cURL:
curl --location ‚https://home24.mirakl.net/api/orders/1014100077-A/documents‘
–header 'Authorization: xxxx
–form ‚files=@„/C:/Users/xxx/Downloads/5352165_invoice_RE23-44913.pdf“‘
–form 'order_documents="
<order_documents>
<order_document>
<file_name>5352165_invoice_RE23-44913.pdf</file_name>
<type_code>CUSTOMER_INVOICE</type_code>
</order_document>
</order_documents>
Mit dem Step „SpreadsheetUrlDownload“ bring ich es einfach nicht zusammen… 400 - Bad Request.
Method: POST
Body Content Type: multipart/form-data; charset=ISO-8859-1
fileParameterName: files
Body:
files=„5352165_invoice_RE23-44913.pdf“
order_documents=„<order_documents><order_document><file_name>5352165_invoice_RE23-44913.pdf</file_name><type_code>CUSTOMER_INVOICE</type_code></order_document></order_documents>“
Hilfe
LG Tim