Create Transaction
create-transactionRecords a new e-commerce transaction for a subscriber from order ID, email, and amount, supporting item details, status, delivery fields, and UTC timestamps.
Instructions
Create a new e-commerce transaction for a subscriber. Timestamps are in UTC.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>",
"email": "<email>",
"amount": "<amount>"
},
"name": "create-transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | Tax amount | |
| city | No | Delivery city | |
| shop | No | Shop name (case sensitive, used in segment conditionals) | |
| Yes | Subscriber's email | ||
| amount | Yes | Total amount including tax and shipping | |
| county | No | Delivery county | |
| status | No | Transaction status | |
| country | No | Delivery country | |
| order_id | Yes | Your unique order/transaction ID | |
| shipping | No | Shipping amount | |
| timestamp | No | Unix timestamp of the transaction | |
| transaction_items | No | Array of transaction items |