End Transaction
This method ends a transaction listed in the running_transactions
of the account that performed the transaction.
Request headers
Content-Type application/json
Request parameters
Parameter | type | description |
---|---|---|
endTransaction.transaction_tag |
str | unique id of the transaction |
endTransaction.account_tag |
str | account tag |
endTransaction.destination_account_tag |
str | destination account tag (if exists) |
endTransaction.timestamp_end |
datetime | timestamp of the end of the transaction |
Response
Field | type | description |
---|---|---|
endTransaction.ok |
bool | Has the transaction ended correctly? |
Example
Request
curl "https://agent.canyan.io/graphql" \ -X POST \ -H "Content-Type: application/json" \ --data @- <<EOF {"query": "mutation { endTransaction( tenant: "default", transaction_tag: "100", account_tag: "1000", destination_account_tag: "1001" ) { ok } }" } EOF
Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "endTransaction": { "ok": True } } }