Invoke Skill Prepare Asc606 Memo
post
/api/v1/skills/prepare.asc606.memo/invokePrepare an ASC 606 revenue-recognition workpaper + memo. Supply either an uploaded contract (file_ids) OR the full contract text as scenario β the engine extracts payment streams, parties, term, and royalty tiers from the text inline. No file upload needed when scenario contains the contract text.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
file_ids | string (uuid)[] | Optional Archie file IDs for uploaded contract PDFs. If empty, the engine synthesises the brief from scenario alone. |
scenario | string | Full contract text OR a detailed arrangement description. When file_ids is empty, the engine synthesises the document brief directly from this text β paste the contract verbatim. When file_ids is present, a short description suffices. |
questions | string[] | β |
jurisdiction | "AU" | "GB" | "CA" | "US" | "NZ" | null | β |
framework | string | null | β |
Responses
200Skill executed successfully
| Field | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | |||||||||||||||||||||||||||
outputrequired | object | βshow nested
| |||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/prepare.asc606.memo/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"file_ids": [
"00000000-0000-0000-0000-000000000000"
],
"scenario": "string",
"questions": [
"string"
],
"jurisdiction": null,
"framework": null
}'