Skip to content

Matrix App V1 Transactions

Operations Summary

Method Endpoint Description
PUT /_matrix/app/v1/transactions/{txn_id} Matrix Application Service transaction webhook

Matrix Application Service transaction webhook

Receives event transactions from the Matrix homeserver. Authenticated via hs_token in the Authorization header.

1
2
3
4
http \
  PUT \
  https://api.example.com/_matrix/app/v1/transactions/string-value \
  Authorization:"Token YOUR_API_TOKEN"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api._matrix import _matrix_app_v1_transactions_update # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = _matrix_app_v1_transactions_update.sync(
    txn_id="string-value",
    client=client
)

print(response)
  1. API Source: _matrix_app_v1_transactions_update
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { MatrixAppV1TransactionsUpdate } from 'waldur-js-client';

try {
  const response = await MatrixAppV1TransactionsUpdate({
  auth: "Token YOUR_API_TOKEN",
  path: {
    "txn_id": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Required
txn_id string

200 - No response body