The Postman request:
Standard headers, nothing to update here.
Values that are used for this demo (selected as Postman type RAW):
Key | Value | Notes |
---|---|---|
documentKindCategory | "{{document-kind}}" | Document type, from "design, patent, trademark, utility model", for this example "patent" |
documentNumber | "{{priority-number-retrieve}}" | priority number used before (to be sure that is in the system, in this case it was generated during the 1.1.1.1.- getToken (POST) request |
documentDate | "{{priority-date-retrieve}}" | priority date used before (to be sure that is in the system, in this case it was generated during the 1.1.1.1.- getToken (POST) request |
osfAckId | "{{osfAckId}}" | Acknowledgment Id required to download the file, obtained during b.2.1.2.- POST retrieval |
![]() |
Is not used for this request
The following script is executed after the request is sent, to evaluate the response and also to set up environment variables (if they are needed for following requests)
// following test will verify the expected response code for this request pm.test("Status code is 201", function () { pm.response.to.have.status(201); }); //following test checks that the checksum for the file is not null pm.test("fileChecksum", function () { var jsonData = pm.response.json(); console.log("fileChecksum:"+jsonData.fileChecksum) pm.expect(jsonData.fileChecksum).not.eql(undefined); if (jsonData.fileChecksum !== undefined) { console.log("fileChecksum:"+jsonData.fileChecksum) pm.expect(jsonData.fileChecksum).not.equal(null) } }); |
The json will provide the url to download the file(s) available for the requested record.
If you click on the individual URL, you will be able to download the files available for the current record (the full zip, the pdf file and the xml file):
Normal headers.
![]() |
This depends on the test we set up in the test script