Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Billing Request can't create a subscription request (not supported by schema) #204

Open
RobertCadwaladr opened this issue Feb 4, 2025 · 0 comments

Comments

@RobertCadwaladr
Copy link

I am trying to create a billing request using the following API call:

const response = await client.billingRequests.create({
subscription_request: {
amount: '100',
currency: 'GBP',
day_of_month: '1',
interval_unit: 'monthly' as BillingRequestSubscriptionRequestIntervalUnit
}
});

return response.id

This should return the Billing Request ID but instead I get the following error:

errors: [
{
reason: 'request_type_not_supported_by_scheme',
message: 'Request type is not supported by scheme and/or consent_type.'
}
]

I'm not sure what part of this request doesn't match the schema, see: https://github.com/gocardless/gocardless-nodejs/blob/master/src/types/Types.ts#L983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant