List schedules

Describes a list of schedules associated with an account. Append the hydrate=accounts query parameter to include partial account details in the response.

To access this endpoint using an access token you’ll need to specify the /accounts/{accountID}/transfers.read scope.

GET
/accounts/{accountID}/schedules
cURL Go
1
2
curl -X GET "https://api.moov.io/accounts/{accountID}/schedules" \
  -H "Authorization: Bearer {token}" \
1
2
3
4
5
mc, _ := moov.NewClient()

var accountID string

mc.ListSchedule(ctx, accountID)
200 401 403 429 500 504
The request completed successfully.
[
  {
    "createdOn": "2019-08-24T14:15:22Z",
    "description": "string",
    "destinationAccount": {
      "accountID": "string",
      "displayName": "string",
      "email": "string"
    },
    "destinationAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
    "disabledOn": "2019-08-24T14:15:22Z",
    "mode": "production",
    "occurrences": [
      {
        "canceledOn": "2019-08-24T14:15:22Z",
        "error": {
          "message": "string"
        },
        "generated": true,
        "indefinite": true,
        "mode": "production",
        "occurrenceID": "74fabb88-d79e-4e9e-b63b-2ddc96054e61",
        "ranOn": "2019-08-24T14:15:22Z",
        "ranTransferID": "761f3bb8-b7a6-45a9-b8f6-394ef8f68835",
        "runOn": "2019-08-24T14:15:22Z",
        "runTransfer": {
          "amount": {
            "currency": "USD",
            "value": 1204
          },
          "description": "string",
          "destination": {
            "achDetails": {
              "companyEntryDescription": "Gym dues",
              "originatingCompanyName": "Whole Body Fit"
            },
            "cardDetails": {
              "dynamicDescriptor": "WhlBdy *Yoga 11-12"
            },
            "paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69"
          },
          "partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
          "source": {
            "achDetails": {
              "companyEntryDescription": "Gym dues",
              "originatingCompanyName": "Whole Body Fit"
            },
            "cardDetails": {
              "dynamicDescriptor": "WhlBdy *Yoga 11-12"
            },
            "paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69"
          }
        },
        "scheduleID": "b7aa2ee2-8783-4fc9-9fa6-a4720b30b20d",
        "status": "pending"
      }
    ],
    "ownerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
    "partnerAccount": {
      "accountID": "string",
      "displayName": "string",
      "email": "string"
    },
    "partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
    "recur": {
      "indefinite": true,
      "recurrenceRule": "string",
      "runTransfer": {
        "amount": {
          "currency": "USD",
          "value": 1204
        },
        "description": "string",
        "destination": {
          "achDetails": {
            "companyEntryDescription": "Gym dues",
            "originatingCompanyName": "Whole Body Fit"
          },
          "cardDetails": {
            "dynamicDescriptor": "WhlBdy *Yoga 11-12"
          },
          "paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69"
        },
        "partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
        "source": {
          "achDetails": {
            "companyEntryDescription": "Gym dues",
            "originatingCompanyName": "Whole Body Fit"
          },
          "cardDetails": {
            "dynamicDescriptor": "WhlBdy *Yoga 11-12"
          },
          "paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69"
        }
      },
      "start": "2009-11-10T23:00:00Z"
    },
    "scheduleID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
    "sourceAccount": {
      "accountID": "string",
      "displayName": "string",
      "email": "string"
    },
    "sourceAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
    "updatedOn": "2019-08-24T14:15:22Z"
  }
]

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request contained missing or expired authentication.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The user is not authorized to make the request.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
Request was refused due to rate limiting.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request failed due to an unexpected error.

x-request-id

string <uuid> required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.

x-request-id

string <uuid> required
A unique identifier used to trace requests.

Headers

x-moov-version

string
API version

Specify an API version.

API versioning follows the format vYYYY.QQ.BB, where

  • YYYY is the year
  • QQ is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
  • BB is the build number, starting at .01, for subsequent builds in the same quarter.
    • For example, v2024.01.00 is the initial release of the first quarter of 2024.

The latest version represents the most recent development state. It may include breaking changes and should be treated as a beta release.

Default: v2024.01.00

Path parameters

accountID

string <uuid> required

Query parameters

skip

integer <int64>

count

integer <int64>

hydrate

string
Possible values: accounts

Response

application/json

destinationAccount

object
Show child attributes

accountID

string required

displayName

string required

email

string

partnerAccount

object
Show child attributes

accountID

string required

displayName

string required

email

string

sourceAccount

object
Show child attributes

accountID

string required

displayName

string required

email

string

recur

object
Defines configuration for recurring transfers.
Show child attributes

recurrenceRule

string required
RRule as defined by RFC 5545 (https://www.rfc-editor.org/rfc/rfc5545#section-3.3.10). Generators available online at the following sites - https://freetools.textmagic.com/rrule-generator, https://jkbrzt.github.io/rrule/

runTransfer

object required
Defines the attributes of a transfer.
Show child attributes

amount

object required
Show child attributes

currency

string required Pattern
A 3-letter ISO 4217 currency code.

value

integer<int64> required

Quantity in the smallest unit of the specified currency.

In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.

description

string required
Simple description to place on the transfer.

destination

object required
Show child attributes

paymentMethodID

string<uuid> required

achDetails

object
Show child attributes

companyEntryDescription

string [4 to 10] characters
An optional override of the default NACHA company entry description for a transfer.

originatingCompanyName

string [4 to 16] characters
An optional override of the default NACHA company name for a transfer.

cardDetails

object
Show child attributes

dynamicDescriptor

string [4 to 22] characters
An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.

partnerAccountID

string<uuid> required

source

object required
Show child attributes

paymentMethodID

string<uuid> required

achDetails

object
Show child attributes

companyEntryDescription

string [4 to 10] characters
An optional override of the default NACHA company entry description for a transfer.

originatingCompanyName

string [4 to 16] characters
An optional override of the default NACHA company name for a transfer.

cardDetails

object
Show child attributes

dynamicDescriptor

string [4 to 22] characters
An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.

indefinite

boolean
True if the RRule set runs indefinitely.

start

string<date-time>

createdOn

string<date-time>

description

string
Simple description to place on the transfer.

destinationAccountID

string<uuid>

disabledOn

string<date-time>

mode

string<enum>
The operating mode for an account.
Possible values: sandbox, production

occurrences

array
Show child attributes

canceledOn

string<date-time>

error

object
Contains details on why the occurrence errored.
Show child attributes

message

string

generated

boolean
True if this was generated by a RRule.

indefinite

boolean
True if the RRule set runs indefinitely.

mode

string
Sandbox or production account mode of this schedule.
The operating mode for an account.
Possible values: sandbox, production

occurrenceID

string<uuid>

ranOn

string<date-time>

ranTransferID

string<uuid>

runOn

string<date-time>

runTransfer

object
Defines the attributes of a transfer.
Show child attributes

amount

object required
Show child attributes

currency

string required Pattern
A 3-letter ISO 4217 currency code.

value

integer<int64> required

Quantity in the smallest unit of the specified currency.

In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.

description

string required
Simple description to place on the transfer.

destination

object required
Show child attributes

paymentMethodID

string<uuid> required

achDetails

object
Show child attributes

companyEntryDescription

string [4 to 10] characters
An optional override of the default NACHA company entry description for a transfer.

originatingCompanyName

string [4 to 16] characters
An optional override of the default NACHA company name for a transfer.

cardDetails

object
Show child attributes

dynamicDescriptor

string [4 to 22] characters
An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.

partnerAccountID

string<uuid> required

source

object required
Show child attributes

paymentMethodID

string<uuid> required

achDetails

object
Show child attributes

companyEntryDescription

string [4 to 10] characters
An optional override of the default NACHA company entry description for a transfer.

originatingCompanyName

string [4 to 16] characters
An optional override of the default NACHA company name for a transfer.

cardDetails

object
Show child attributes

dynamicDescriptor

string [4 to 22] characters
An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.

scheduleID

string<uuid>

status

string<enum>
Status of the completed occurrence.
Possible values: pending, failed, completed

ownerAccountID

string<uuid>

partnerAccountID

string<uuid>

scheduleID

string<uuid>

sourceAccountID

string<uuid>

updatedOn

string<date-time>