Invincible Pay
Scheduling

Create schedule

Schedule an e-Transfer, EFT, internal transfer, Apaylo transfer, wire or payment request for the logged-in customer, or for the owner of the API key, to go out on a future date, once or repeating. Give exactly one of etransfer, eft, internal, apayloTransfer, wire or request, with the body that send's own endpoint takes. It is checked the same way that endpoint checks it, except for the balance, which is checked at each send. Each send goes out at 09:00 in the schedule's timezone, as the customer who made the schedule, through that same endpoint, and is listed in the schedule's runs; its fee, limits and webhooks are those of a send made by hand. Before each send, the send's own checks run again: if they fail (e.g. the amount is now over a limit, the beneficiary was deleted or its details changed, the account is not active) the schedule is paused, with a pauseReason. A send refused after those checks (not enough balance, or the ledger turning it down) is recorded as failed and the schedule carries on. A send that may have moved the money anyway is recorded as unknown and pauses the schedule. On the last send, the schedule has already ended, so nothing pauses: it stays completed, or becomes failed if none of its sends went out. A completed schedule whose last run is unknown can't be resumed; check your transactions. An account can have up to 50 active and paused schedules at a time.

POST
/v1/transfer-schedules

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.invinciblepay.com/v1/transfer-schedules" \  -H "Content-Type: application/json" \  -d '{    "fundingSourceId": "string",    "schedule": {      "repeats": "never",      "startDate": "string"    }  }'
{
  "accountId": "string",
  "amount": "string",
  "beneficiaryId": "string",
  "counterpartyEmail": "string",
  "counterpartyName": "string",
  "createdAt": 0,
  "currency": "string",
  "direction": "incoming",
  "endDate": "string",
  "fundingSourceId": "string",
  "id": "string",
  "kind": "etransfer",
  "lastModifiedAt": 0,
  "lastRunAt": 0,
  "nextRunAt": 0,
  "pauseReason": "string",
  "reference": "string",
  "repeats": "never",
  "resumesOnItsOwn": true,
  "runsCount": 0,
  "sendTime": "string",
  "sentCount": 0,
  "startDate": "string",
  "status": "active",
  "timezone": "string"
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}
{
  "error": "string",
  "error_code": {}
}