This article describes how to use the PDF Signing API to get the status for a specific signing request and to fetch the actual PDF document.
To get information for one specific request, use the method GET /request/{id}
.
Example: Get information for specific request
Example: Get information for specific request including documents
TEXT
Authorization: Bearer <access token>
GET /request/123?includeDocs=true
Response
CODE
{
"id": "123",
"name": "Request 1",
"description": "First request",
"created": 1525843503909,
"state": "IN_PROGRESS",
"signatures": [{
"signer" : "signer.second@example.com",
"signed": false,
"method": "SE_BANKID"
}],
"documents": [{
{
"name": "API.pdf",
"data": "string"
}]
}
Example: Get information for specific request, no documents included
CODE
Authorization: Bearer <access token>
GET /request/123?includeDocs=false
Response
CODE
{
"id": "123",
"name": "Request 1",
"description": "First request",
"created": 1525843503909,
"state": "IN_PROGRESS",
"signatures": [{
"signer" : "signer.bankid@example.com",
"signed": false,
"method": "SE_BANKID"
}]
}
To get information for all requests created by the current client ID, use the method GET /request
.
Example: Get information for all requests
Example: Get information for all requests
CODE
Authorization: Bearer <access token>
GET /request
Response
TEXT
[{
"id": "123",
"name": "Request 1",
"description": "First request",
"created": 1525843503909,
"state": "IN_PROGRESS",
"signatures": [{
"signer" : "signer.second@example.com",
"signed": false,
"method": "SE_BANKID"
}]
}, {
"id": "124",
"name": "Request 2",
"description": "Second request",
"created": 1525843503919,
"state": "COMPLETED",
"signatures": [{
"signer" : "signer.second@example.com",
"signed": true,
"signedAt": 1525843503929,
"method": "PM"
}]
}
]