Create fee plan agreement
Creates the subscription of a fee plan to a merchant account. Merchants are required to accept the fee plan terms prior to activation.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/profile.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/fee-plan-agreements" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-d '{
"planID": "string"
}'mc, _ := moov.NewClient()
var accountID string
mc.CreateFeePlanAgreement(ctx, accountID, moov.FeePlanAgreementRequest{
PlanID: "string",
})
{
"agreementID": "string",
"planID": "string",
"accountID": "string",
"name": "string",
"description": "string",
"acceptedOn": "2019-08-24T14:15:22Z",
"status": "active",
"cardAcquiringModel": "cost-plus",
"billableFees": [
{
"billableFeeID": "9d957d33-1a9a-47aa-9460-fe1a90f003dd",
"billableEvent": "card-auth-volume",
"feeName": "Card decline fee",
"feeModel": "fixed",
"feeCategory": "card-acquiring",
"feeProperties": {
"fixedAmount": {
"currency": "USD",
"valueDecimal": "0.0195"
},
"variableRate": "0.15",
"minPerTransaction": {
"currency": "USD",
"valueDecimal": "0.0195"
},
"maxPerTransaction": {
"currency": "USD",
"valueDecimal": "0.035"
},
"volumeRanges": [
{
"fromValue": 1,
"toValue": 2,
"flatAmount": {
"currency": "USD",
"valueDecimal": "1.23"
},
"perUnitAmount": {
"currency": "USD",
"valueDecimal": "1.23"
}
}
]
},
"feeConditions": {
"transactionType": [
"decline"
]
}
}
],
"minimumCommitment": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"monthlyPlatformFee": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"priorAgreementID": "string",
"priorAgreementTerminatedOn": "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
{
"planID": "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
planID
string
required
priorAgreementID
string
The account's active fee plan agreement to supersede. When set, that agreement is terminated and the new one takes its place in a single operation, so the account is never without an active fee plan agreement. This new agreement always receives a newly issued agreementID.
Omit it if the account doesn't already have an active fee plan agreement.
Response
agreementID
string
<=36 characters
required
billableFees
array<object>
required
Show child attributes
billableFees[]
billableFeeID
string
<=36 characters
feeCategory
string<enum>
ach,
card-acquiring,
card-other,
card-pull,
card-push,
instant-bank,
monthly-platform,
network-passthrough,
other,
rtp
feeModel
string<enum>
fixed,
blended,
variable
feeProperties
object
Show child attributes
billableFees[].feeProperties
volumeRanges
array<object>
required
Show child attributes
billableFees[].feeProperties.volumeRanges[]
flatAmount
object
Show child attributes
billableFees[].feeProperties.volumeRanges[].flatAmount
fixedAmount
object
fixed and blended fee models.
maxPerTransaction
object
Show child attributes
billableFees[].feeProperties.maxPerTransaction
cardAcquiringModel
string<enum>
required
cost-plus,
flat-rate
minimumCommitment
object
required
monthlyPlatformFee
object
required
planID
string
<=36 characters
required
accountID
string
<=36 characters
priorAgreementID
string