Skip to main content
GET
/
packages
/
{packageId}
/
status
Status
curl --request GET \
  --url https://sandbox.syngrafii.com/api/v1/packages/{packageId}/status \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "packageId": "<string>"
}
'
{
  "packageId": "<string>",
  "organizationId": "<string>",
  "memberId": "<string>",
  "name": "<string>",
  "timeSignBy": "<string>",
  "type": "<string>",
  "state": "<string>",
  "externalData": {},
  "isExecuted": true,
  "documents": [
    {
      "packageId": "<string>",
      "documentId": "<string>",
      "fileId": "<string>",
      "externalId": "<string>",
      "name": "<string>",
      "fileName": "<string>",
      "order": 123,
      "isExecuted": true,
      "revisions": [
        {
          "packageId": "<string>",
          "documentId": "<string>",
          "revisionId": "<string>",
          "signerId": "<string>",
          "link": "<string>",
          "isNext": true,
          "isSigned": true
        }
      ]
    }
  ],
  "signers": [
    {
      "signerId": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "email": "<string>",
      "mobileNumber": "<string>",
      "order": 123,
      "links": [
        {
          "token": "<string>",
          "packageId": "<string>",
          "documentId": "<string>",
          "revisionId": "<string>",
          "name": "<string>",
          "link": "<string>",
          "timeExpires": "<string>",
          "type": "<string>",
          "isNext": true,
          "isSigned": true
        }
      ]
    }
  ]
}
At any time you can get the status of a package by calling packages/{packageId}/status endpoint. Depending on your needs you may want to process the documents or signers array (sometimes both).
Package status will not contain links unless you set generateSignerLinks to true when calling packages/add.

Request

Request
GET /packages/{packageId}/status

Parameters

packageId
string
required
Unique identifier of the package to retrieve status for.

Response

packageId
string
Unique identifier for the package.
organizationId
string
Unique identifier for the organization.
memberId
string
Unique identifier for the member who owns the package.
name
string
Name of the package.
timeSignBy
string
Date by which the package should be signed (ISO 8601 format).
type
string
Type of the package.
state
string
Current state of the package.
externalData
object
External data associated with the package.
isExecuted
boolean
Set to true if all documents have been signed by all signers.
documents
object[]
List of documents in the package.
signers
object[]
List of signers for the package.

Examples

Response (200)
{
    "packageId": "7a17e4e7-bc32-4256-bf81-27eac794c2b7",
    "organizationId": "24261ee6-5f66-4692-ba49-533c9b58999b",
    "memberId": "3e09a4ce-577c-492c-ba7c-c1ebf825f9b5",
    "name": "My First Signing",
    "timeSignBy": "2022-03-02T20:08:41Z",
    "type": "Sequential",
    "state": "open",
    "externalData": null,
    "isExecuted": false,
    "documents": [
        {
            "packageId": "7a17e4e7-bc32-4256-bf81-27eac794c2b7",
            "documentId": "ad8eac67-94e9-481b-a799-7396b447b8eb",
            "fileId": null,
            "exernalId": null,
            "name": null,
            "fileName": "agreement.pdf",
            "order": 0,
            "isExecuted": false,
            "revisions": [
                {
                    "packageId": "7a17e4e7-bc32-4256-bf81-27eac794c2b7",
                    "documentId": "ad8eac67-94e9-481b-a799-7396b447b8eb",
                    "revisionId": "a53b203b-af52-4766-a8be-eb0cdd18eb5f",
                    "signerId": "229c1a3b-c9d3-4546-bcf5-44cb8ea3bd1c",
                    "link": "https://localhost/tws/link/BKhD5EA0Dw6o0fv7-p3wnw",
                    "isNext": true,
                    "isSigned": false
                }
            ]
        }
    ],
    "signers": [
        {
            "signerId": "229c1a3b-c9d3-4546-bcf5-44cb8ea3bd1c",
            "firstName": "Signer",
            "lastName": "One",
            "email": "signer.one@example.com",
            "mobileNumber": "",
            "order": 0,
            "links": [
                {
                    "name": "agreement",
                    "link": "https://localhost/tws/link/BKhD5EA0Dw6o0fv7-p3wnw",
                    "type": "document",
                    "token": "BKhD5EA0Dw6o0fv7-p3wnw",
                    "timeExpires": "2022-03-02T20:08:41.261Z",
                    "packageId": "7a17e4e7-bc32-4256-bf81-27eac794c2b7",
                    "documentId": "ad8eac67-94e9-481b-a799-7396b447b8eb",
                    "revisionId": "a53b203b-af52-4766-a8be-eb0cdd18eb5f",
                    "isNext": true,
                    "isSigned": false
                }
            ],
            "signLink": {
                "name": "My First Signing",
                "link": "https://localhost/tws/link/MnWkMecgfNjfFZsye1YJmg",
                "type": "package_sign",
                "token": "MnWkMecgfNjfFZsye1YJmg",
                "timeExpires": "2022-03-02T20:08:41.261Z",
                "packageId": "7a17e4e7-bc32-4256-bf81-27eac794c2b7"
            },
            "meetingLink": null
        }
    ]
}