Canton SDK/Token Standard APIs Allocation OpenAPI Reference
Allocation OpenAPI Reference
Allocation OpenAPI Reference
POST /registry/allocations/v1/{allocationId}/choice-contexts/execute-transferGet the choice context to execute a transfer on an allocation.
Parameters:allocationId (string) – The contract ID of the allocation whose transfer the caller wants to execute.
Example request:
POST /registry/allocations/v1/{allocationId}/choice-contexts/execute-transfer HTTP/1.1
Host: example.com
Content-Type: application/json
{
"meta": {},
"excludeDebugFields": true
}
200 OK –
ok
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "choiceContextData": {}, "disclosedContracts": [ { "templateId": "string", "contractId": "string", "createdEventBlob": "string", "synchronizerId": "string", "debugPackageName": "string", "debugPayload": {}, "debugCreatedAt": "2026-06-04T17:18:55.929896" } ] }
bad request
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json { "error": "string" }
not found
Example response:
HTTP/1.1 404 Not Found Content-Type: application/json { "error": "string" }
Get the choice context to withdraw an allocation.
Parameters:allocationId (string) – The contract ID of the allocation to withdraw.
Example request:
POST /registry/allocations/v1/{allocationId}/choice-contexts/withdraw HTTP/1.1
Host: example.com
Content-Type: application/json
{
"meta": {},
"excludeDebugFields": true
}
200 OK –
ok
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "choiceContextData": {}, "disclosedContracts": [ { "templateId": "string", "contractId": "string", "createdEventBlob": "string", "synchronizerId": "string", "debugPackageName": "string", "debugPayload": {}, "debugCreatedAt": "2026-06-04T17:18:55.929896" } ] }
bad request
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json { "error": "string" }
not found
Example response:
HTTP/1.1 404 Not Found Content-Type: application/json { "error": "string" }
Get the choice context to cancel an allocation.
Parameters:allocationId (string) – The contract ID of the allocation to cancel.
Example request:
POST /registry/allocations/v1/{allocationId}/choice-contexts/cancel HTTP/1.1
Host: example.com
Content-Type: application/json
{
"meta": {},
"excludeDebugFields": true
}
200 OK –
ok
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "choiceContextData": {}, "disclosedContracts": [ { "templateId": "string", "contractId": "string", "createdEventBlob": "string", "synchronizerId": "string", "debugPackageName": "string", "debugPayload": {}, "debugCreatedAt": "2026-06-04T17:18:55.929896" } ] }
bad request
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json { "error": "string" }
not found
Example response:
HTTP/1.1 404 Not Found Content-Type: application/json { "error": "string" }
Comments