Create a schedule
Describes the schedule to create or modify.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/schedules" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"mc, _ := moov.NewClient()
var accountID string
now := time.Now()
start := now.AddDate(0, 1, 0)
mc.CreateSchedule(ctx, accountID, moov.CreateSchedule{
Description: "string",
Occurrences: []moov.CreateOccurrence{
{
RunOn: now,
RunTransfer: moov.CreateRunTransfer{
Description: "Gym Dues",
Amount: moov.ScheduleAmount{
Value: 1204,
Currency: "USD",
},
PartnerAccountID: "string",
Source: moov.SchedulePaymentMethod{
PaymentMethodID: "string",
},
Destination: moov.SchedulePaymentMethod{
PaymentMethodID: "string",
},
},
},
},
Recur: &moov.CreateRecur{
Start: &start,
RecurrenceRule: "FREQ=MONTHLY;COUNT=5",
RunTransfer: moov.CreateRunTransfer{
Description: "Gym Dues",
Amount: moov.ScheduleAmount{
Value: 1204,
Currency: "USD",
},
PartnerAccountID: "string",
Source: moov.SchedulePaymentMethod{
PaymentMethodID: "string",
},
Destination: moov.SchedulePaymentMethod{
PaymentMethodID: "string",
},
},
},
})
{
"description": "string",
"destinationAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"mode": "production",
"occurrences": [
{
"scheduleID": "string",
"occurrenceID": "string",
"mode": "production",
"generated": true,
"indefinite": true,
"canceledOn": "2019-08-24T14:15:22Z",
"runOn": "2019-08-24T14:15:22Z",
"runTransfer": {
"amount": {
"currency": "USD",
"value": 1204
},
"salesTaxAmount": {
"currency": "USD",
"value": 1204
},
"destination": {
"paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"achDetails": {
"companyEntryDescription": "Gym dues",
"originatingCompanyName": "Whole Body Fit"
},
"cardDetails": {
"dynamicDescriptor": "WhlBdy *Yoga 11-12"
}
},
"partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"source": {
"paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"achDetails": {
"companyEntryDescription": "Gym dues",
"originatingCompanyName": "Whole Body Fit"
},
"cardDetails": {
"dynamicDescriptor": "WhlBdy *Yoga 11-12"
}
},
"description": "string",
"lineItems": {
"items": [
{
"name": "string",
"basePrice": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"quantity": 1,
"options": [
{
"name": "string",
"quantity": 1,
"priceModifier": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"group": "string",
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "string"
}
]
}
],
"productID": "string",
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "string"
}
]
}
]
}
},
"ranOn": "2019-08-24T14:15:22Z",
"ranTransferID": "string",
"status": "pending",
"error": {
"message": "string"
}
}
],
"ownerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"recur": {
"recurrenceRule": "string",
"runTransfer": {
"amount": {
"currency": "USD",
"value": 1204
},
"salesTaxAmount": {
"currency": "USD",
"value": 1204
},
"destination": {
"paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"achDetails": {
"companyEntryDescription": "Gym dues",
"originatingCompanyName": "Whole Body Fit"
},
"cardDetails": {
"dynamicDescriptor": "WhlBdy *Yoga 11-12"
}
},
"partnerAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"source": {
"paymentMethodID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"achDetails": {
"companyEntryDescription": "Gym dues",
"originatingCompanyName": "Whole Body Fit"
},
"cardDetails": {
"dynamicDescriptor": "WhlBdy *Yoga 11-12"
}
},
"description": "string",
"lineItems": {
"items": [
{
"name": "string",
"basePrice": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"quantity": 1,
"options": [
{
"name": "string",
"quantity": 1,
"priceModifier": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"group": "string",
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "string"
}
]
}
],
"productID": "string",
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "string"
}
]
}
]
}
},
"indefinite": true,
"start": "2009-11-10T23:00:00Z"
},
"scheduleID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"sourceAccountID": "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
"createdOn": "2019-08-24T14:15:22Z",
"updatedOn": "2019-08-24T14:15:22Z",
"disabledOn": "2019-08-24T14:15:22Z"
}Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
{
"occurrences": {
"property1": "string",
"property2": "string"
},
"recur": "string",
"description": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Headers
X-Moov-Version
string
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
v2027.01.00
Path parameters
accountID
string
required
Body
description
string
occurrences
array<object>
Show child attributes
occurrences[]
canceled
boolean
occurrenceID
string
runOn
string<date-time>
runTransfer
object
Show child attributes
occurrences[].runTransfer
amount
object
required
Show child attributes
occurrences[].runTransfer.amount
currency
string
required
Pattern
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
destination
object
required
Show child attributes
occurrences[].runTransfer.destination
paymentMethodID
string
required
achDetails
object
Show child attributes
occurrences[].runTransfer.destination.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
occurrences[].runTransfer.destination.cardDetails
dynamicDescriptor
string
[4 to 22] characters
partnerAccountID
string
required
source
object
required
Show child attributes
occurrences[].runTransfer.source
paymentMethodID
string
required
achDetails
object
Show child attributes
occurrences[].runTransfer.source.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
occurrences[].runTransfer.source.cardDetails
dynamicDescriptor
string
[4 to 22] characters
lineItems
object
amount minus salesTaxAmount.
Show child attributes
occurrences[].runTransfer.lineItems
items
array<object>
required
Show child attributes
occurrences[].runTransfer.lineItems.items[]
basePrice
object
Show child attributes
occurrences[].runTransfer.lineItems.items[].basePrice
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
imageIDs
array<string>
deprecated
name
string
[1 to 150] characters
options
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[]
group
string
<=100 characters
imageIDs
array<string>
deprecated
name
string
[1 to 150] characters
priceModifier
object
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[].priceModifier
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
quantity
integer<int32>
productID
string
quantity
integer<int32>
salesTaxAmount
object
Show child attributes
occurrences[].runTransfer.salesTaxAmount
currency
string
required
Pattern
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.
recur
object
Show child attributes
recur
recurrenceRule
string
required
runTransfer
object
required
Show child attributes
recur.runTransfer
amount
object
required
Show child attributes
recur.runTransfer.amount
currency
string
required
Pattern
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
destination
object
required
Show child attributes
recur.runTransfer.destination
paymentMethodID
string
required
achDetails
object
Show child attributes
recur.runTransfer.destination.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
recur.runTransfer.destination.cardDetails
dynamicDescriptor
string
[4 to 22] characters
partnerAccountID
string
required
source
object
required
Show child attributes
recur.runTransfer.source
paymentMethodID
string
required
achDetails
object
Show child attributes
recur.runTransfer.source.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
recur.runTransfer.source.cardDetails
dynamicDescriptor
string
[4 to 22] characters
lineItems
object
amount minus salesTaxAmount.
Show child attributes
recur.runTransfer.lineItems
items
array<object>
required
Show child attributes
recur.runTransfer.lineItems.items[]
basePrice
object
Show child attributes
recur.runTransfer.lineItems.items[].basePrice
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
imageIDs
array<string>
deprecated
name
string
[1 to 150] characters
options
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].options[]
group
string
<=100 characters
imageIDs
array<string>
deprecated
name
string
[1 to 150] characters
priceModifier
object
Show child attributes
recur.runTransfer.lineItems.items[].options[].priceModifier
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
quantity
integer<int32>
productID
string
quantity
integer<int32>
salesTaxAmount
object
Show child attributes
recur.runTransfer.salesTaxAmount
currency
string
required
Pattern
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.
indefinite
boolean
start
string<date-time>
Response
createdOn
string<date-time>
required
destinationAccountID
string
required
mode
string<enum>
required
sandbox,
production
ownerAccountID
string
required
partnerAccountID
string
required
scheduleID
string
required
sourceAccountID
string
required
updatedOn
string<date-time>
required
description
string
disabledOn
string<date-time>
occurrences
array<object>
Show child attributes
occurrences[]
canceledOn
string<date-time>
error
object
Show child attributes
occurrences[].error
message
string
generated
boolean
indefinite
boolean
mode
string
sandbox,
production
occurrenceID
string
ranOn
string<date-time>
ranTransferID
string
runOn
string<date-time>
runTransfer
object
Show child attributes
occurrences[].runTransfer
amount
object
required
Show child attributes
occurrences[].runTransfer.amount
currency
string
required
Pattern
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
destination
object
required
Show child attributes
occurrences[].runTransfer.destination
paymentMethodID
string
required
achDetails
object
Show child attributes
occurrences[].runTransfer.destination.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
occurrences[].runTransfer.destination.cardDetails
dynamicDescriptor
string
[4 to 22] characters
partnerAccountID
string
required
source
object
required
Show child attributes
occurrences[].runTransfer.source
paymentMethodID
string
required
achDetails
object
Show child attributes
occurrences[].runTransfer.source.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
occurrences[].runTransfer.source.cardDetails
dynamicDescriptor
string
[4 to 22] characters
lineItems
object
Show child attributes
occurrences[].runTransfer.lineItems
items
array<object>
required
Show child attributes
occurrences[].runTransfer.lineItems.items[]
basePrice
object
Show child attributes
occurrences[].runTransfer.lineItems.items[].basePrice
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
images
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].images[]
altText
string
<=125 characters
imageID
string
link
string<uri>
publicID
string
Pattern
name
string
[1 to 150] characters
options
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[]
group
string
<=100 characters
images
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[].images[]
altText
string
<=125 characters
imageID
string
link
string<uri>
publicID
string
Pattern
name
string
[1 to 150] characters
priceModifier
object
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[].priceModifier
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
quantity
integer<int32>
productID
string
quantity
integer<int32>
salesTaxAmount
object
Show child attributes
occurrences[].runTransfer.salesTaxAmount
currency
string
required
Pattern
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.
scheduleID
string
status
string<enum>
pending,
failed,
completed
recur
object
Show child attributes
recur
recurrenceRule
string
required
runTransfer
object
required
Show child attributes
recur.runTransfer
amount
object
required
Show child attributes
recur.runTransfer.amount
currency
string
required
Pattern
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
destination
object
required
Show child attributes
recur.runTransfer.destination
paymentMethodID
string
required
achDetails
object
Show child attributes
recur.runTransfer.destination.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
recur.runTransfer.destination.cardDetails
dynamicDescriptor
string
[4 to 22] characters
partnerAccountID
string
required
source
object
required
Show child attributes
recur.runTransfer.source
paymentMethodID
string
required
achDetails
object
Show child attributes
recur.runTransfer.source.achDetails
companyEntryDescription
string
[4 to 10] characters
originatingCompanyName
string
[4 to 16] characters
cardDetails
object
Show child attributes
recur.runTransfer.source.cardDetails
dynamicDescriptor
string
[4 to 22] characters
lineItems
object
Show child attributes
recur.runTransfer.lineItems
items
array<object>
required
Show child attributes
recur.runTransfer.lineItems.items[]
basePrice
object
Show child attributes
recur.runTransfer.lineItems.items[].basePrice
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
images
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].images[]
altText
string
<=125 characters
imageID
string
link
string<uri>
publicID
string
Pattern
name
string
[1 to 150] characters
options
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].options[]
group
string
<=100 characters
images
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].options[].images[]
altText
string
<=125 characters
imageID
string
link
string<uri>
publicID
string
Pattern
name
string
[1 to 150] characters
priceModifier
object
Show child attributes
recur.runTransfer.lineItems.items[].options[].priceModifier
currency
string
required
Pattern
valueDecimal
string
required
Pattern
A decimal-formatted numerical string that represents up to 9 decimal place precision.
For example, $12.987654321 is '12.987654321'.
quantity
integer<int32>
productID
string
quantity
integer<int32>
salesTaxAmount
object
Show child attributes
recur.runTransfer.salesTaxAmount
currency
string
required
Pattern
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.
indefinite
boolean
start
string<date-time>