mirakl / sdk-php-shop

Mirakl PHP SDK for sellers
30 stars 16 forks source link

Invalid Field Type DR74 #64

Closed akkushopJK closed 7 months ago

akkushopJK commented 7 months ago

Hi we use the implementation of DR74 as in the example here https://github.com/mirakl/sdk-php-shop/blob/d178632cd1f0bb065a7819ab9df5d70acd8b72a1/src/Mirakl/MMP/Shop/Request/DocumentRequest/UploadAccountingDocumentsRequest.php#L7

We get the following error { "errors" : [ { "code" : "INVALID_FIELD_TYPE", "field" : "requests[0].files", "message" : "Field type is invalid" } ] }

akkushopJK commented 7 months ago

Ok found the issue for me it worked to do the setFiles

$doc->setFiles([['format' => 'PDF', 'name' => 'invoice.pdf']]);