Copying Documents from one package to another
Sunday, January 6, 2019 at 08:13amHi,
Is there an API available to copy a document from one package to another package?
OneSpan Introduces DigipassONE, Bringing a Unified Platform Approach to Authentication Modernization
A new authentication platform helps financial institutions support diverse customer authentication preferences while modernizing at their own pace Learn More
Reply to: Copying Documents from one package to another
Sunday, January 6, 2019 at 12:37pmHTTP Request POST /api/packages/{packageId}/documents HTTP Headers Accept: text/html Content-Type: multipart/form-data Authorization: Basic api_key Request Payload ------WebKitFormBoundary1bNO60n7FqP5WO4t Content-Disposition: form-data; name="file"; filename="testDocumentExtraction.pdf" Content-Type: application/pdf %PDF-1.5 %µµµµ 1 0 obj >>> endobj.... ------WebKitFormBoundary1bNO60n7FqP5WO4t Content-Disposition: form-data; name="payload" { "id": "document_id", "name": "document_name" } ------WebKitFormBoundary1bNO60n7FqP5WO4t--DuoReply to: Copying Documents from one package to another
Sunday, January 6, 2019 at 10:46amHTTP Request POST /api/layouts HTTP Headers Accept: application/json Content-Type: application/json Authorization: Basic api_key Request Payload { "name":"layout_name", "type":"LAYOUT", "id":"source_package_id", "visibility":"SENDER", "documents":[ { "id":"source_document_id" } ] }#2. retrieve the layout ID from response payload of #1 REST call #3. apply the layout to target document:HTTP Request POST /api/packages/{packageId}/documents/{documentId}/layout?layoutId={layoutId} HTTP Headers Accept: application/json Content-Type: application/json Authorization: Basic api_keyNote: 1.layoutID is the one you got from #2 2.no need for request payload Hope this could help! DuoReply to: Copying Documents from one package to another
Sunday, January 6, 2019 at 12:23pmReply to: Copying Documents from one package to another
Sunday, January 6, 2019 at 12:41pm