TeknooSoftware / sellsy-client

PHP library to connect your applications to your Sellsy account account using the Sellsy API and build your websites and your platforms on the Sellsy technology.
https://teknoo.software/libraries/sellsy
MIT License
17 stars 16 forks source link

doctype is invalid #29

Closed MatthieuMan closed 2 years ago

MatthieuMan commented 2 years ago
$payload = [
            'method' => 'Document.sendDocByMail',
            'params' => [
                'docid' => 20791894,
                'email' => [
                    'doctype' => 'invoice',
                    'emails' => ["test@test.com", "tests@test.com"]
                ]
            ]
        ];
$sellsyClient->Document()->sendDocByMail($payload);

keeps tellming me that message: "doctype is invalid"

frenchcomp commented 2 years ago

Hi, This error is thrown by the Sellsy API, it is not an error from the client. I invite you to check the sellsy api documentation : This client is only compatible with the V1 of the sellsy api : https://api.sellsy.fr/documentation/methodes. (The client encodes only your paylod in the body request)

This library is independant from Sellsy.