Create Document Order
Submit an order for one or more legal documents related to a legal entity.
Orders are fulfilled asynchronously. Once the order is completed or cancelled, a webhook notification is sent to the provided callback URL.
Method & URL
POST https://api.gbris.com/api/document/order
Request Body
{
"documents": [
{
"entity_persistent_id": "c338d773ad8595ad1e63dc4651854e50",
"product_code": "DE_GMBH_ANNUAL_REPORT_EN",
"year": 2023,
"requirement": "ALLOW_MISSING"
}
],
"callback_url": "https://yourapp.com/api/callback"
}
Fields
Field | Required | Type | Description |
---|---|---|---|
documents | Yes | array | One or more document requests. |
documents[].entity_persistent_id | Yes | string | The entity’s persistent ID, as returned by the entity search endpoint. |
documents[].product_code | Yes | string | The product code for the requested document (see documents[] in the entity response). |
documents[].year | No | number | Required only for year-specific documents (e.g., annual reports). |
documents[].requirement | No | string | Either ALLOW_MISSING (default) or CANCEL_IF_MISSING . See Requirement Modes. |
callback_url | No | string | Your system's endpoint for receiving webhook notifications upon order completion or cancellation. See Document Order Webhook. |
Example Request
curl -X POST "https://api.gbris.com/api/document/order" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"documents": [
{
"entity_persistent_id": "c338d773ad8595ad1e63dc4651854e50",
"product_code": "DE_GMBH_ANNUAL_REPORT_EN",
"year": 2023,
"requirement": "ALLOW_MISSING"
}
],
"callback_url": "https://yourapp.com/api/callback"
}'
Example Response
{
"order_id": "d8595ad1e63dc",
"status": "IN_PROGRESS"
}
Requirement Modes
Mode | Behavior |
---|---|
ALLOW_MISSING | If a document is unavailable, the rest of the order will be fulfilled. The missing document will not be charged. If all documents in an order are ALLOW_MISSING , and none are available, then the order will be cancelled. |
CANCEL_IF_MISSING | If any document is unavailable, the entire order will be cancelled and nothing will be charged. |
Notes
- Orders are processed asynchronously.
- The
order_id
can be used to query order status viaGET /document/order/{id}
. - A webhook will be sent to the
callback_url
when the order is either completed or cancelled.
See Document Order Webhook for details.