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
Body
occurrences
array<object>
Show child attributes
occurrences[]
canceled
boolean
occurrenceID
string
runTransfer
object
Show child attributes
occurrences[].runTransfer
destination
object
required
source
object
required
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
imageIDs
array<string>
deprecated
options
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].options[]
group
string
<=100 characters
imageIDs
array<string>
deprecated
recur
object
Show child attributes
recur
recurrenceRule
string
required
runTransfer
object
required
Show child attributes
recur.runTransfer
destination
object
required
source
object
required
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
imageIDs
array<string>
deprecated
options
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].options[]
group
string
<=100 characters
imageIDs
array<string>
deprecated
Response
occurrences
array<object>
Show child attributes
occurrences[]
mode
string
sandbox,
production
runTransfer
object
Show child attributes
occurrences[].runTransfer
destination
object
required
source
object
required
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
images
array<object>
Show child attributes
occurrences[].runTransfer.lineItems.items[].images[]
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[]
recur
object
Show child attributes
recur
recurrenceRule
string
required
runTransfer
object
required
Show child attributes
recur.runTransfer
destination
object
required
source
object
required
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
images
array<object>
Show child attributes
recur.runTransfer.lineItems.items[].images[]
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[]