Ttushe / docs
nsk_test_Operational

Create an auto-save rule

Automate contributions into this savings account — e.g. move a fixed amount from the customer’s own account on a daily/weekly/monthly schedule. Idempotency-Key makes retries safe.

POSThttps://api.trytushe.com/v1/accounts/{accountId}/automation-rules
POST/v1/accounts/{accountId}/automation-rules

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

accountId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

{  "status": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2026-10-03T16:30:00.000Z",  "path": "/v1/accounts",  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",    "trigger": {      "type": "schedule",      "config": {}    },    "action": {      "type": "transfer_from_account",      "config": {}    },    "currency": "NGN",    "status": "active",    "onInsufficientFunds": "skip",    "startAt": "2019-08-24T14:15:22Z",    "endAt": "2019-08-24T14:15:22Z",    "nextRunAt": "2019-08-24T14:15:22Z",    "lastRunAt": "2019-08-24T14:15:22Z",    "runCount": 7  }}