signnow / SignNowPHPSDK

The Official SignNow PHP SDK library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.
https://www.signnow.com/developers
MIT License
9 stars 12 forks source link

Api error when trying to Get/Downlaod a document #48

Open lotfio opened 1 month ago

lotfio commented 1 month ago

Hello there, We are trying to integrate signNow. we were able to upload a template pdf generate documents from the template & create signing links. However when trying to get/download a signed document we are getting some response errors

image

the ssue seems to be related to the response manager as we can see the response showing fine at guzzle http but when it reaches signNow response manager (validate & map) it throws the error

image

we are also suspecting it related to the custom added fields to the template. here is an example of a field we are adding:

  // 2. Add fields to the document
  $fields = new FieldCollection();
  $fields->add(
      new Field(
          x: 100,
          y: 640,
          width: 200,
          height: 100,
          type: 'signature',
          pageNumber: 0,
          required: true,
          role: 'Linguist',
          name: 'signature_field',
          label: 'Signature',
      )
  );

  $request = new DocumentPut(
      fields: $fields,
  );
  $request->withDocumentId($response->getId());
  $response = $apiClient->send($request);

Any suggestions or help is mutch appreciated ? Thank you @JiSoft