Partners Public APIs (1.4)
Download OpenAPI specification:Download
API documentation for Fena partners
Create company
Create company
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
name required | string Name of the company |
countryCode required | string ISO country code where company is registered |
industry | string Scope of the company |
type required | string (CompanyType) Enum: "solo_trader" "company" |
identifier required | string [ 8 .. 10 ] characters Company reference number . If company type is solo trader/individual , please put UTR of company owner |
"active" (string) or "banned" (string) or "pending_verification" (string) or "started_verification" (string) or "rejected_with_retry_allowed" (string) (CompanyStatus) | |
publicEmail required | string Public email of the company |
publicWebsite | string Public web-site of the company |
privacyPolicy | string Privacy policy of the company |
supportPhone required | string Support phone of the company |
taxNumber | string Tax number of the company |
contactName required | string Primary contact |
object (BankAccount) | |
object (CreateIntegrationDuringCompanyCreate) If bank account was specified , it will be connected to this integration by default | |
required | object (Address) |
object (Address) | |
sendEmail required | boolean Ability to send an email with directors verification links to a specified publicEmail address. Requires email settings at https://partner.fena.co/settings/email |
Responses
Request samples
- Payload
{- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+447975777666",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "name of integration",
}
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "63fd468f0137e28695d93b93",
- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+441234567890",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "integrationName",
- "bankAccount": {
- "$ref": "#/components/schemas/Integration"
}
}
}
}
Update company's data
Update company's data
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
tradingName | string Trading name of the company |
"active" (string) or "banned" (string) or "pending_verification" (string) or "started_verification" (string) or "rejected_with_retry_allowed" (string) (CompanyStatus) | |
industry | string Scope of the company |
publicEmail | string Public email of the company |
publicWebsite | string Public web-site of the company |
privacyPolicy | string Privacy policy of the company |
supportPhone | string Support phone of the company |
taxNumber | string Tax number of the company |
object (Address) |
Responses
Request samples
- Payload
{- "tradingName": "string",
- "status": "active",
- "industry": "string",
- "publicEmail": "string",
- "publicWebsite": "string",
- "privacyPolicy": "string",
- "supportPhone": "+441234567890",
- "taxNumber": "string",
- "tradingAddress": {
- "zipCode": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "country": "GB",
- "city": "string",
- "poBox": "string",
- "premises": "string",
- "region": "string"
}
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "63fd468f0137e28695d93b93",
- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+441234567890",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "integrationName",
- "bankAccount": {
- "$ref": "#/components/schemas/Integration"
}
}
}
}
Disable company from using service
Disable company from using service
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "updated": true,
- "result": {
- "id": "63fd468f0137e28695d93b93",
- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+441234567890",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "integrationName",
- "bankAccount": {
- "$ref": "#/components/schemas/Integration"
}
}
}
}
Get list of all companies
Get list of all companies
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": [
- {
- "id": "63fd468f0137e28695d93b93",
- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+441234567890",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "integrationName",
- "bankAccount": {
- "$ref": "#/components/schemas/Integration"
}
}
}
]
}
Get company's data
Get company's data
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "id": "63fd468f0137e28695d93b93",
- "name": "Fena",
- "industry": "Health and beauty",
- "countryCode": "GB",
- "type": "company",
- "identifier": "12345678",
- "publicEmail": "example@mail.com",
- "contactName": "John Smith",
- "supportPhone": "+441234567890",
- "address": {
- "zipCode": "TN39 5ES",
- "addressLine1": "Unit 2.02 High Weald House",
- "addressLine2": "Tsereteli",
- "country": "GB",
- "city": "Bexhill-On-Sea",
- "premises": "Unit 2.02 High Weald House",
- "region": "East Sussex"
}, - "bankAccount": {
- "name": "Test name",
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456"
}, - "integration": {
- "name": "integrationName",
- "bankAccount": {
- "$ref": "#/components/schemas/Integration"
}
}
}
}
This module will allow you to manage a company bank accounts, which can later be used to receive payments.
Create new bank account for a company
Create new bank account for a company
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: multipart/form-data
providerExternalId required | any (ProviderExternalIDs) Enum: "ob-bos-business" "ob-barclays-personal" "ob-bos-personal" "ob-barclays-business" "ob-halifax-personal" "ob-hsbc-personal" "ob-hsbc-business" "ob-first-direct" "ob-natwest" "ob-nationwide" "ob-monzo" "ob-lloyds-personal" "ob-lloyds-business" "ob-revolut" "ob-ulster" "ob-rbs" "ob-santander" "ob-tsb" "ob-starling" "other" "ob-virgin-money" "ob-tide" "ob-mettle" "ob-chase" "ob-aibni-retail" "ob-aibni-corporate" "ob-aibgb-retail" "ob-aibgb-corporate" "ob-boi-uk-b365" "ob-boi-uk-bol" External ID of the provider |
externalAccountId required | string 8 characters ^[0-9]+$ Account number of bank account |
identification required | string 6 characters ^[0-9]+$ Sort code of bank account |
name required | string Name (alias) of bank account |
file | file Bank statement file. Only the following formats are accepted: .pdf, .png, .gif, .jpg, .doc/docx, .xls/xlsx, .csv, .rtf, .txt |
"verified" (string) or "pending" (string) or "disabled" (string) or "manual review required" (string) (BankAccountStatus) |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string",
- "file": null,
- "status": "verified"
}
}
Edit bank account name
Edit bank account name
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string ID of the bank account |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
Name of bank account
Responses
Request samples
- Payload
"string"
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string",
- "file": null,
- "status": "verified"
}
}
Get list of company's bank accounts
Get list of company's bank accounts
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": [
- {
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string",
- "file": null,
- "status": "verified"
}
]
}
Get company's bank account
Get company's bank account
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Bank account ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "providerExternalId": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string",
- "file": null,
- "status": "verified"
}
}
Get bank account authorization service URL
Get bank account authorization service URL
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
This module will allow you to manage integrations. Integrations are used to set up custom redirect URL and webhook URL . In order for the integration to work, you need to add a previously created bank account to it, after which this integration can be used when creating payments. When initializing payments, users will be redirected to the specified URL redirect, and payment status data will be sent to the specified webhook.
Get list of company's integrations
Get list of company's integrations
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "succeed": true,
- "data": [
- {
- "id": "63630c54c07af6f56cbd959c",
- "name": "yourwebsite name",
- "bankAccount": {
- "$ref": "#/components/schemas/BankAccount"
}, - "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
]
}
Get company's integration data
Get company's integration data
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Mongoose Object ID of integration |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "id": "63630c54c07af6f56cbd959c",
- "name": "yourwebsite name",
- "bankAccount": {
- "$ref": "#/components/schemas/BankAccount"
}, - "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
}
Create new integration for a company
Create new integration for a company
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
name required | string Website / App Name |
webhookUrl required | string Webhook / Payment Notification URL to which Fena will send payment status updates |
bankAccount required | string ID of merchant's bank account to which payment will be sent |
isSandbox | boolean |
fenaPaymentPageRedirectEnabled | boolean Default: true Control whether your customer will be redirected to a Fena page before being redirected to your website, specified in the redirect URL, after processing a payment. If set to false, the customer will be redirected directly to your website after processing a payment. If set to true, the customer will be redirected to a Fena page before being redirected to your website. |
Responses
Request samples
- Payload
{- "name": "yourwebsite name",
- "bankAccount": "62d02feeb9e1bbf67faff1bf",
- "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "63630c54c07af6f56cbd959c",
- "name": "yourwebsite name",
- "bankAccount": {
- "$ref": "#/components/schemas/BankAccount"
}, - "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
}
Update existing integration data
Update existing integration data
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Mongoose Object ID of integration |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
name required | string Website / App Name |
webhookUrl required | string Webhook / Payment Notification URL to which Fena will send payment status updates |
bankAccount required | string ID of merchant's bank account to which payment will be sent |
isSandbox | boolean |
fenaPaymentPageRedirectEnabled | boolean Default: true Control whether your customer will be redirected to a Fena page before being redirected to your website, specified in the redirect URL, after processing a payment. If set to false, the customer will be redirected directly to your website after processing a payment. If set to true, the customer will be redirected to a Fena page before being redirected to your website. |
Responses
Request samples
- Payload
{- "name": "yourwebsite name",
- "bankAccount": "62d02feeb9e1bbf67faff1bf",
- "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "63630c54c07af6f56cbd959c",
- "name": "yourwebsite name",
- "bankAccount": {
- "$ref": "#/components/schemas/BankAccount"
}, - "isSandbox": false,
- "fenaPaymentPageRedirectEnabled": true
}
}
Create and process payment
Create and process payment
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
invoiceRefNumber required | string <= 12 characters ^[a-z0-9-]+$ Reference number of payment |
amount required | string^[0-9]*.[0-9]{2}$ Amount of money to pay |
bankAccount required | string ID of merchant's bank account to which payment will be sent |
customerName | string The name of the client to whom it will be sent |
dueDate | object Payment request due date. JavaScript Date Object. |
customerEmail | string Specify customer email address if you want to send payment request to the customer |
customerEmailCC | Array of strings Specify email CC addresses along with customer's email address if you want to send payment request to customer's CC |
type | string (PaymentTypes) Enum: "link" "qr" "mobile" |
Responses
Request samples
- Payload
{- "invoiceRefNumber": "#024",
- "amount": "123.45",
- "customerName": "John",
- "dueDate": "2022-03-26T00:00:00.000Z",
- "customerEmail": "example@gmail.com",
- "customerEmailCC": [
- "exampleCC@gmail.com",
- "exampleCC2@gmail.com"
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}
}
Get payment data
Get payment data
path Parameters
id required | string Payment ID |
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "id": "string",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "completedAt": "string",
- "refundLink": "string",
- "refundQrCodeData": "string",
- "refundTransaction": "string",
- "status": "paid",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}
}
], - "integration": "63630c54c07af6f56cbd959c",
- "externalReference": "yourRef-37d9d"
}
}
Get list of all payments
Get list of all payments
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "totalDocs": 8,
- "limit": 25,
- "totalPages": 2,
- "page": 1,
- "pagingCounter": 1,
- "hasPrevPage": false,
- "hasNextPage": false,
- "prevPage": 1,
- "nextPage": 1,
- "docs": [
- {
- "id": "string",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "completedAt": "string",
- "refundLink": "string",
- "refundQrCodeData": "string",
- "refundTransaction": "string",
- "status": "paid",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}
}
], - "integration": "63630c54c07af6f56cbd959c",
- "externalReference": "yourRef-37d9d"
}
]
}
}
Edit payment data
Edit payment data
path Parameters
id required | string Payment ID |
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
_id required | string Mongoose Object ID |
invoiceRefNumber required | string <= 12 characters ^[a-z0-9-]+$ Reference number of payment |
amount required | string^[0-9]*.[0-9]{2}$ Amount of money to pay |
customerName | string The name of the client to whom it will be sent |
dueDate | object JavaScript Date Object |
customerEmail | string Specify customer email address if you want to send payment request to the customer |
customerEmailCC | Array of strings Specify email CC addresses along with customer's email address if you want to send payment request to customer's CC |
customRedirectUrl | string <uri> Custom redirect URL for the payment to which the user will be redirected after the payment is processed.Takes precedence over the integration's redirect URL. If not provided, the integration's redirect URL will be used. |
Responses
Request samples
- Payload
{- "invoiceRefNumber": "#024",
- "amount": "123.45",
- "customerName": "John",
- "dueDate": "2022-03-26T00:00:00.000Z",
- "customerEmail": "example@gmail.com",
- "customerEmailCC": [
- "exampleCC@gmail.com",
- "exampleCC2@gmail.com"
]
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "status": "draft",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "integration": "63630c54c07af6f56cbd959c",
}
}
Process draft payment
Process draft payment
path Parameters
id required | string Payment ID |
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "status": "draft",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "integration": "63630c54c07af6f56cbd959c",
}
}
Cancel payment
Cancel payment
path Parameters
id required | string Payment ID |
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "saved": true
}
Refund payment
Refund payment
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Example: 62b48c5b6ba2cd6a040b20a8 ID of the payment |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
amount | string Override refund amount |
object |
Responses
Request samples
- Payload
{- "amount": "string",
- "payeeAccountInfo": {
- "name": "string",
- "externalAccountId": "string",
- "identification": "string",
- "email": "string"
}
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "completedAt": "string",
- "refundLink": "string",
- "refundQrCodeData": "string",
- "refundTransaction": "string",
- "status": "paid",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}
}
], - "integration": "63630c54c07af6f56cbd959c",
- "externalReference": "yourRef-37d9d"
}
}
Create recurring payments
Create recurring payments
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
bankAccount | string ID of the bank account to which the money will be sent |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string Specify customer email address if you want to send payment request to the customer |
customerEmailCC | Array of strings Specify email CC addresses along with customer's email address if you want to send payment request to customer's CC |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "bankAccount": "63eb772c27bfe15a04550cd6",
- "initialPaymentAmount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
]
}
Response samples
- 200
- 401
{- "created": true,
- "result": {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
}
Save and send recurring payments
Save and send recurring payments
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
bankAccount | string ID of the bank account to which the money will be sent |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string Specify customer email address if you want to send payment request to the customer |
customerEmailCC | Array of strings Specify email CC addresses along with customer's email address if you want to send payment request to customer's CC |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "bankAccount": "63eb772c27bfe15a04550cd6",
- "initialPaymentAmount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
]
}
Response samples
- 200
- 401
- 403
- 500
{- "result": {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
}
Get recurring payments data
Get recurring payments data
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Recurring payment ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
}
Get list of all recurring payments
Get list of all recurring payments
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "totalDocs": 8,
- "limit": 25,
- "totalPages": 2,
- "page": 1,
- "pagingCounter": 1,
- "hasPrevPage": false,
- "hasNextPage": false,
- "prevPage": 1,
- "nextPage": 1,
- "docs": [
- {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
]
}
}
Only draft and overdue recurring payment can be edited
Edit recurring payments
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Recurring payment ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
bankAccount | string ID of the bank account to which the money will be sent |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string Specify customer email address if you want to send payment request to the customer |
customerEmailCC | Array of strings Specify email CC addresses along with customer's email address if you want to send payment request to customer's CC |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "bankAccount": "63eb772c27bfe15a04550cd6",
- "initialPaymentAmount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
]
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
}
Send recurring payment
Send recurring payment
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Recurring payment ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "reference": "12345abc",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "draft",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "externalReference": "ref-123456",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "bankAccount": "63630c54c07af6f56cbd959c"
}
}
Delete recurring payment
Delete recurring payment
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Recurring payment ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "deleted": true
}
Get list of all transactions of recurring payment
Get list of all transactions of recurring payment if exist.
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Recurring payment ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": [
- {
- "id": "630819bccb5a9dbad3780a73",
- "amount": "0.50",
- "status": "pending",
- "expectedPaymentDate": "2022-12-24T00:00:00Z",
- "completedAt": "2022-12-24T00:00:00Z"
}
]
}
Get list of all transaction
Get list of all transaction
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
query Parameters
filter | string Example: filter=isSandbox Filter by sandbox |
filterValue | string Example: filterValue=true |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "totalDocs": 8,
- "limit": 25,
- "totalPages": 2,
- "page": 1,
- "pagingCounter": 1,
- "hasPrevPage": false,
- "hasNextPage": false,
- "prevPage": 1,
- "nextPage": 1,
- "docs": [
- {
- "id": "62f3c8408477a4db482dcdf9",
- "status": "completed",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "amount": "10.50",
- "createdAt": "2022-08-10T15:01:20.212Z",
- "completedAt": "2022-08-10T15:01:20.212Z",
- "reference": "ref",
- "direction": "incoming|outgoing",
- "parentEntityType": "Payment",
- "parentEntity": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}, - "externalRef": "ref-123456",
- "integration": "63630c54c07af6f56cbd959c"
}
]
}
}
Get single transaction
Get single transaction
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
id required | string Transaction ID |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "id": "62f3c8408477a4db482dcdf9",
- "status": "completed",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "amount": "10.50",
- "createdAt": "2022-08-10T15:01:20.212Z",
- "completedAt": "2022-08-10T15:01:20.212Z",
- "reference": "ref",
- "direction": "incoming|outgoing",
- "parentEntityType": "Payment",
- "parentEntity": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "dueDate": { },
- "customerEmail": "string",
- "customerEmailCC": [
- "string"
], - "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "transaction": "string",
- "refundPayeeAccount": {
- "provider": "ob-natwest",
- "externalAccountId": "12345678",
- "identification": "123456",
- "name": "string"
}, - "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
], - "integration": "63630c54c07af6f56cbd959c",
}, - "externalRef": "ref-123456",
- "integration": "63630c54c07af6f56cbd959c"
}
}
Get completed transactions statistic
Get completed transactions statistic
path Parameters
companyId required | string Example: 63fd468f0137e28695d93b93 ID of company you're currently working with in a flow |
query Parameters
dateFrom | string Example: dateFrom=2023-04-09T00:00:00Z Filter by completed date from |
dateTo | string Example: dateTo=2023-04-11T00:00:00Z Filter by completed date to |
isSandbox | string Example: isSandbox=false Filter by isSandbox value. Default: false |
header Parameters
apisecret required | string Example: 123e4567-e89b-12d3-a456-426614174000 API key generated by the partner at https://partner.fena.co/settings/api-keys. |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": [
- {
- "totalAmount": "125.20",
- "totalCount": "12"
}
]
}
If a webhook URL has been specified, then webhooks will be sent to the partner to this specified URL address. Webhook URL can be configured on the settings page https://partner.fena.co/settings/api-keys.
Bank account status update Webhook
The webhook is triggered either when the merchant made an attempt to connect their bank account using the Data API or the status of the bank account was changed by Fena. It does not matter how the bank account was connected, manually or using the Data API
Request Body schema: application/json
Webhook payload
event_name required | string Name of the webhook event Value: "bank_account_status_update" |
merchantId required | string ID of the merchant who owns the bank account |
bankAccountId required | string ID of the bank account which status was updated |
required | "verified" (string) or "pending" (string) or "disabled" (string) or "manual review required" (string) (BankAccountStatus) |
connection_type required | string Enum: "data_api" "manual" Type of connection |
Responses
Request samples
- Payload
{- "event_name": "bank_account_status_update",
- "merchantId": "63630c54c07af6f56cbd959c",
- "bankAccountId": "63630c54c07af6f56cbd959c",
- "status": "verified",
- "connection_type": "data_api"
}
Company verification status Webhook
The webhook is triggered when the director of the company completed ID verification or the company status was updated by Fena.
Request Body schema: application/json
Webhook payload
event_name required | string Name of the webhook event Value: "company_verification_status_update" |
merchantId required | string ID of the merchant who passed the verification |
verifiedBy | string or null ID of the director who verified the merchant |
required | "active" (string) or "banned" (string) or "pending_verification" (string) or "started_verification" (string) or "rejected_with_retry_allowed" (string) (CompanyStatus) |
Responses
Request samples
- Payload
{- "event_name": "company_verification_status_update",
- "merchantId": "63630c54c07af6f56cbd959c",
- "verifiedBy": "63630c54c07af6f56cbd959c",
- "status": "active"
}
Bank account consent expiry notification Webhook
Webhook notification about consent expiration. Only for bank acounts connected via App
Request Body schema: application/json
Webhook payload
event_name required | string Name of the webhook event Value: "bank_account_consent_expiry_notification" |
merchantId required | string ID of the merchant who owns the bank account |
bankAccountId required | string ID of the bank account which status was updated |
required | "verified" (string) or "pending" (string) or "disabled" (string) or "manual review required" (string) (BankAccountStatus) |
connection_type required | string Enum: "data_api" "manual" Type of connection |
message required | string Message with information in how many days the consent will expire |
Responses
Request samples
- Payload
{- "event_name": "bank_account_consent_expiry_notification",
- "merchantId": "63630c54c07af6f56cbd959c",
- "bankAccountId": "63630c54c07af6f56cbd959c",
- "status": "verified",
- "connection_type": "data_api",
- "message": "string"
}
Company officer verification status Webhook
Request Body schema: application/json
Webhook payload
event_name required | string Name of the webhook event Value: "officer_verification_status_update" |
merchantId required | string ID of the merchant |
officerId required | string ID of the director who passed the verification |
required | "active" (string) or "banned" (string) or "pending_verification" (string) or "started_verification" (string) or "rejected_with_retry_allowed" (string) (CompanyStatus) |
Responses
Request samples
- Payload
{- "event_name": "officer_verification_status_update",
- "merchantId": "63630c54c07af6f56cbd959c",
- "officerId": "63630c54c07af6f56cbd959c",
- "status": "active"
}