Skip to content
Bank Account Connection Intents

Create Bank Account Connection Intentexperimental

POST/api/bank-account-connection-intents

This endpoint allows you to create a Bank Account Connection Intent.

Request body

  • accountIdrequired string
    The id of the owning Account.
  • bankAccountIdoptional string
    The id of the associated Bank Account. Required if type is enduring-payment-consent.
  • nameoptional string
    The name of the consent. Only available if type is enduring-payment-consent.
  • periodoptional enum
    The period after which the amount spent using the consent will be reset. Only available if type is enduring-payment-consent. Defaults to daily.
    • daily
      The amount spent resets every day.
    • fortnightly
      The amount spent resets every fortnight.
    • monthly
      The amount spent resets every month.
    • weekly
      The amount spent resets every week.
    • yearly
      The amount spent resets every year.
  • testoptional boolean
    A flag which is present if the intention is to connect with a Bank Account used for testing.
  • totalAmountoptional string
    The total cent value of transactions the consent can be used for within the period. Only available if type is enduring-payment-consent.
  • typerequired enum
    The type of Bank Account Connection Intent.

Responses

Request
curl -X POST https://service.centrapay.com/api/bank-account-connection-intents \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "B4u4WZCu3joZFVWT3XjWW3",
"test": true,
"type": "account-information-consent"
}'