צירוף מסמך (AttachToDoc)
רשימת שדות
| Field | Remarks | Type | Max length | |
|---|---|---|---|---|
| stockid Required | numeric | 12 | מזהה מלאי | |
| Reference Required | numeric | 9 | מספר אסמכתא | 
דוגמאת קוד javascript
  modulData = [
  {
    "data": [
      {
        "stockid": 2948757,
        "Reference": 796709,
        "Remarks": "test"
      }
    ],
    "attachments": [
      {
        "Filename": "2.pdf",
        "FileDescription": "2",
        "FileType": "pdf",
        "Content": "JVBERi0xLjcKCjQgMCBvYmoKKE"
      }
    ]
  }
]
 
 
  let signature = md5(`${JSON.stringify(modulData)}630620291899FF4827DB5AF13EA95004`);
 
  let data = {
    station: "2******6-8****2-4****2-8****0-0*********3",
    plugin: "AttachToDoc",
    company: "demo",
    message: {
      netPassportID: "25***5",
      pluginData: modulData
    },
    signature: signature
  }
 
console.log(data);
 
const config = {
  method: "post",
  url: "https://ws.wizground.com/api",
  headers: {
    "Content-Type": "application/json",
  },
  data: data,
};
 
console.log(data);
 
const config = {
  method: "post",
  url: "https://ws.wizground.com/api",
  headers: {
    "Content-Type": "application/json",
  },
  data: data,
};
 
console.log(Date.now());
 
axios(config)
  .then(function (response) {
    console.log(Date.now());
 
    console.log(JSON.stringify(response.data));
 
  })
  .catch(function (error) {
    console.log(Date.now());
 
    console.log(error.response.data);
  });
דוגמאת Json
  {
    "station": "5******8-f****5-4****e-8****9-e********2",
    "plugin": "AttachToDoc",
    "company": "demo",
    "message": {
        "netPassportID": "25***5",
        "pluginData": [
            {
                "data": [
                    {
                        "stockid": 2948757,
                        "Reference": 796709,
                        "Remarks": "test"
                    }
                ],
                "attachments": [
                    {
                        "Filename": "2.pdf",
                        "FileDescription": "2",
                        "FileType": "pdf",
                        "Content": "JVBERi0xLjcKCjQgMCBvYmoKKE"
                    }
                ]
            }
        ]
    },
    "signature": "bfd8c3faef5ab7f2bab0d2f0f77b5cf7"
}