Clienvy API documentation

Create a SEPA direct-debit mandate

POST
https://api.clienvy.io/employee/v1
/relation/companies/{company}/mandates

Registers a new direct-debit mandate for the company at the given payment provider and returns the company including its mandates.

Create a SEPA direct-debit mandate › path Parameters

company
​string · uuid · required

The company UUID

Create a SEPA direct-debit mandate › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a SEPA direct-debit mandate › Request Body

integration_instance_id
​string · uuid · required

UUID of the payment provider integration the mandate needs to be created at.

name
​string · maxLength: 128 · required

Name of the account holder.

iban
​string · maxLength: 64 · required

IBAN of the account the mandate authorises.

bic
​string · maxLength: 12
is_default
​boolean

Whether this becomes the company's default mandate.

Create a SEPA direct-debit mandate › Responses

CompanyResource

id
​string · uuid
name
​string
legal_name
​string | null
invoice_email
​string | null
​ContactReferenceResource | null
bundle_invoices
​boolean
​TaxRateResource
default_mandate_id
​string | null
active_credits
​integer
auto_bill_credits
​boolean
​ContactReferenceResource | null
auto_bill_credits_threshold
​integer
price_per_credit
​number
​TaxRateResource | null
​InvoiceFlowResource | null
coc_number
​string | null
tax_number
​string | null
address
​string | null
postal_code
​string | null
city
​string | null
country
​string · ISO 3166-1 alpha-2
type
​CompanyType · enum
Enum values:
customer
supplier
remark
​string | null
​object
​object[]
​object[]
​AccountingLinkResource[]
updated_at
​string · date-time
created_at
​string · date-time

Update a mandate

PUT
https://api.clienvy.io/employee/v1
/relation/companies/{company}/mandates/{companyMandate}

Updates a mandate. Only the default flag can be changed after creation.

Update a mandate › path Parameters

company
​string · uuid · required

The company UUID

companyMandate
​string · uuid · required

The company mandate UUID

Update a mandate › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update a mandate › Request Body

is_default
​boolean

Whether this becomes the company's default mandate.

Update a mandate › Responses

CompanyResource

id
​string · uuid
name
​string
legal_name
​string | null
invoice_email
​string | null
​ContactReferenceResource | null
bundle_invoices
​boolean
​TaxRateResource
default_mandate_id
​string | null
active_credits
​integer
auto_bill_credits
​boolean
​ContactReferenceResource | null
auto_bill_credits_threshold
​integer
price_per_credit
​number
​TaxRateResource | null
​InvoiceFlowResource | null
coc_number
​string | null
tax_number
​string | null
address
​string | null
postal_code
​string | null
city
​string | null
country
​string · ISO 3166-1 alpha-2
type
​CompanyType · enum
Enum values:
customer
supplier
remark
​string | null
​object
​object[]
​object[]
​AccountingLinkResource[]
updated_at
​string · date-time
created_at
​string · date-time

Revoke a mandate

DELETE
https://api.clienvy.io/employee/v1
/relation/companies/{company}/mandates/{companyMandate}

Revokes the mandate at the payment provider and removes it from the company.

Revoke a mandate › path Parameters

company
​string · uuid · required

The company UUID

companyMandate
​string · uuid · required

The company mandate UUID

Revoke a mandate › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Revoke a mandate › Responses

CompanyResource

id
​string · uuid
name
​string
legal_name
​string | null
invoice_email
​string | null
​ContactReferenceResource | null
bundle_invoices
​boolean
​TaxRateResource
default_mandate_id
​string | null
active_credits
​integer
auto_bill_credits
​boolean
​ContactReferenceResource | null
auto_bill_credits_threshold
​integer
price_per_credit
​number
​TaxRateResource | null
​InvoiceFlowResource | null
coc_number
​string | null
tax_number
​string | null
address
​string | null
postal_code
​string | null
city
​string | null
country
​string · ISO 3166-1 alpha-2
type
​CompanyType · enum
Enum values:
customer
supplier
remark
​string | null
​object
​object[]
​object[]
​AccountingLinkResource[]
updated_at
​string · date-time
created_at
​string · date-time