curl --request GET \
--url https://app.pennylane.com/api/external/v2/commercial_documents/{commercial_document_id}/appendices \
--header 'Authorization: Bearer <token>'
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 123,
"url": "https://www.pennylane.com/rails/active_storage/blobs/redirect/eyJfc..==--26d6e7391dd728fae2cde59bd3fbe4dd11e20a95/Invoice42.pdf",
"filename": "<string>",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}
List appendices of a commercial document
ℹ️ This endpoint requires one of the following scopes:
commercial_documents:all
,commercial_documents:readonly
curl --request GET \
--url https://app.pennylane.com/api/external/v2/commercial_documents/{commercial_document_id}/appendices \
--header 'Authorization: Bearer <token>'
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 123,
"url": "https://www.pennylane.com/rails/active_storage/blobs/redirect/eyJfc..==--26d6e7391dd728fae2cde59bd3fbe4dd11e20a95/Invoice42.pdf",
"filename": "<string>",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}
The access token received from the authorization server in the OAuth 2.0 flow.
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
1 <= x <= 100
20
The list of appendices of the commercial document
The response is of type object
.
Was this page helpful?