This page will help you get started with Fenerum. You'll be up and running in a jiffy! If you are looking for full API Reference check here.
Simple API explorer can be found when opening API links directly in the browser: https://app.fenerum.com/api/v1/
For the interactive API console you can go to https://app.fenerum.com/api/swagger/
On each endpoint you will find a button
which will point you to the same endpoint in the interactive API console.
To learn more about common integration flows check out our guides:
or dive deep into our full API reference: API Reference.
In case of any problems don't hesitate to reach out to us at support@fenerum.com.
In order to use our API you need to authorize yourself by specifying an appropriate Authorization
header:
Authorization: Token <your token>
Keep your API token secret!
Treat your token in the same way as you would treat a password.
If you have access to your Organization settings, you can easily create an API token from the user interface:
Settings > Integrations
tab in the menu on the left.Create API user
button.This will generate a new user (named API USER
) together with a corresponding authorization token.
From now on you will see the api token value instead of the button:
The new API USER
is visible on the Users list:
By default the
API USER
has all possible permissions. You can change them by editing it's profile.
That's all! You're now ready to start using our API.
Keep your API token secret!
Treat your token in the same way as you would treat a password.
Your API key may be used for integrating multiple systems with Fenerum.
In order to deliver the best customer support and for ensuring detailed auditability, we require that you provide us
with an additional HTTP request header X-Client-System
.
In case multiple users are using your system that's integrated with Fenerum, we advise you to put their username in the
X-User
HTTP header. This will allow for keeping track of which external user made changes to your data in Fenerum.
X-Client-System: <name of your client system>
X-User: <username of user in your client system>
Example
Given that your client system is named
MyAwesomeCRM
and the user is calledjohn
you should add this header to your every API request:X-Client-System: MyAwesomeCRM X-User: john
For resource list views, Fenerum uses page-based pagination with 20 elements included per page.
The results are enveloped with pagination-related fields:
count
integer
The total number of elements available in this view (with potential filters applied).
next
string, url, nullable
The address tho GET to obtain the next page of results (with potential filters applied).
prev
string, url, nullable
The address tho GET to obtain the previous page of results (with potential filters applied).
results
list
The list of objects returned by the view. For brevity, this is the only part shown and described in particular resource list views responses.
Some of the resource list views supports filtering of elements.
Filtering is implemented by adding proper query parameter to the URL (as a GET parameter).
For example to filter invoices issued for a given account one can call API:
GET /api/v1/invoices/?account=some-account-code
In some cases there exists multiple filters for single field.
The meaning of sufix for filtering:
__lt
- less than__gt
- greater than__lte
- less or equal than__gte
- greater or equal thanOne user can submit 60 requests per minute. After this threshold API will respond with 429 status code.
An Account
in Fenerum is a named entity who can have one or more subscriptions. It represents clients of your Organization and can be used for both companies and people.
To create an account POST
data to the /accounts/
endpoint. The minimal data required for creating an account:
Endpoint:
POST /api/v1/accounts/
{
"company_name": "Your Company ApS",
"code": "123",
"legal_address": "company street",
"legal_zipcode": "12345",
"legal_city": "company city",
"legal_country": "DK"
}
legal_country
field value must be an ISO Alpha-2 code
The example response would be:
{
"uuid": "d6dd8a72-8eea-4aaf-8b0b-8d6aee569fee",
"company_name": "Your Company ApS",
"code": "123",
"legal_address": "company street",
"legal_zipcode": "12345",
"legal_city": "company city",
"legal_country": "DK",
"legal_vat_number": "",
"paymentcard_set": [],
"subscription_set": [],
"recipient_set": [],
"draftinvoiceline_set": [],
"model": "billing.Account",
"schema": "20190613-default"
}
In the next step you should add an email recipient:
Endpoint:
POST /api/v1/recipients/
{
"account": "d6dd8a72-8eea-4aaf-8b0b-8d6aee569fee",
"name": "Mads Andersen",
"email": "mads@account-company.com",
"receive_invoice": true,
"receive_payment_confirmation": true,
"receive_subscription_notifications": true
}
And that's all. You've successfully created a new account that will receive emails from us. Congrats!
Let's start with introducing a couple of objects:
Plan
Plan is a product or service that an Organization
(your company) offers.
PlanTerms
This object represents a concrete set of conditions a product or service (a Plan
) can be
subscribed to with.
It allows:
PlanTerms
that have been used at least once by a Subscription
can't be removed - they can be
deactivated instead to not allow for starting new subscriptions using them.
Subscription
This object represents a usage of a PlanTerms
by a customer (Account
).
There are two ways to create a new subscription for an account:
There are important differences between these endpoints which we discuss in more details below.
Endpoint:
POST /api/v1/subscriptions/
This endpoint is a typical way of creating a new object. You need to provide all the required information for a new subscription.
This endpoint will simply create a new object in the database.
Subscriptions that may already exist won't be touched.
Example request:
{
"account": "account_code",
"terms": "f4293c5e-b592-43a1-9c68-eb76f62f6250",
"quantity": 5,
"collection_method": "invoice",
"start_date": "2019-10-2861T12:00",
"group_on_invoice": false,
"po_number": "0001"
}
Using this endpoint has a different flow:
This endpoint will make a prorated invoice immediately if there is a subscription being replaced on the account (i.e. cancellation took place).
Furthermore, the payload for this endpoint takes only four keys: terms
, quantity
, collection_method
and
group_on_invoice
. If you wish to specify more attributes you can make a subsequent PATCH
request on
the created subscription
(see section about updating subscriptions).
Endpoint:
POST /api/v1/accounts/{account_code}/subscribe/
Example request:
{
"terms": "f4293c5e-b592-43a1-9c68-eb76f62f6250",
"quantity": 1,
"collection_method": "invoice",
"group_on_invoice": false
}
In response to both of these endpoint you will get the details of created subscription:
We provide two methods for subscription updates: PUT
and PATCH
.
Right now using
PUT
is equivalent to usingPATCH
i.e. you can specify only the fields you want to change. In the next version of our API, usingPUT
method will require to specify all fields explicitly (in accordance with good REST practices).
The flow for updates is the following:
Note that only the subscription you want to change could end up being cancelled. If other susbscriptions for that account exist they won't be touched
The update is not permitted when:
pre_renewal_invoicing = True
.In addition to Subscription
attributes this endpoint specifies also an optional boolean field prorate
which,
when set to false
, will prevent subscriptions using forward-charging plans from issuing prorate
invoices if only their quantity was changed.
If you set
prorate
tofalse
and the update fails, the subscription won't be cancelled and you will receive 400 error.
terms
uuidIf you don't know the uuid of the PlanTerm
you want to use you can hit the Plan
list endpoint:
Endpoint:
GET /api/v1/plans/
Example response:
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"uuid": "8e63c514-ba33-48da-97ad-4c43713ccf5f",
"name": "representative",
"code": "254f49db-a9d8-4b58-bed9-aa4aa9b01155",
"collect_vat": true,
"vat_type": "unknown",
"planterms_set": [
{
"uuid": "31406c29-7933-4cea-be4a-bc6964657a42",
"interval_type": "month",
"interval_count": 2,
"price": "445.07",
"currency": "EUR",
"backwards_charging": false,
"active": true,
"revenue_group": null,
"model": "billing.PlanTerms",
"schema": "20190613-default"
},
{
"uuid": "712d53c5-8fd1-4dff-a31a-0d3d2758ab14",
"interval_type": "month",
"interval_count": 10,
"price": "912.53",
"currency": "EUR",
"backwards_charging": false,
"active": true,
"revenue_group": null,
"model": "billing.PlanTerms",
"schema": "20190613-default"
},
{
"uuid": "46d4c7b7-e977-4d4d-a403-f4ddd9695960",
"interval_type": "month",
"interval_count": 29,
"price": "830.49",
"currency": "EUR",
"backwards_charging": false,
"active": true,
"revenue_group": null,
"model": "billing.PlanTerms",
"schema": "20190613-default"
}
],
"model": "billing.Plan",
"schema": "20190613-default"
}
]
}
This endpoint is meant for registering in Fenerum a card that already exists in a provider's system.
In the token
field of a payload you need to provide an identifier of a card.
For Stripe this would mean a Payment Method ID, for QuickPay this would be a subscription id.
All possible token types are described in create card API docs'
Endpoint: POST /api/v1/paymentcards/
{
"account": "50e9aa0b-8d35-4da7-9a9b-8a35b11579b2",
"token": "pm_123456789",
"gateway": "stripe_new"
}
In response you will receive created PaymentCard
data:
{
"uuid": "09655a26-12e0-4a82-8524-7851998886fc",
"active": true,
"brand": "Visa",
"card_number": "XXXXXXXXXXXX4242",
"month": 1,
"year": 2020,
"name": "test@fenerum.com",
"payment_gateway": "stripe_new",
"payment_gateway_id": "card_1DcDzT41f9iZfpJVnfDHQY8p",
"account": "50e9aa0b-8d35-4da7-9a9b-8a35b11579b2"
}
Remember that in order to create a
PaymentCard
objects you need to set provider's API tokens in your Organization's settings.
Alternatively you can prompt your user to register their card. Through our API you can obtain an url which you can then send to your customer. The url will redirect them to the relevant PSP's form where they will be able to put their credit card data. Fenerum will automatically register their card when they fill in the form.
Endpoint: GET /api/v1/accounts/{code}/card_registration_link/{gateway}/
To disable a PaymentCard
simply perform a POST
request with empty payload:
Endpoint: POST /api/v1/paymentcards/{card_uuid}/disable
NOTE: This will apply only to Fenerum, it will not change a card data in the provider's system.
This is a full API reference for the Fenerum. It describes every action which is possible using Fenerum REST API.
uuid | string |
invoice_number | number |
search | string Filter by invoice number of company name |
account | string Filter using account code (External ID) |
account_not | string Filter using account code (External ID) |
since | string Deprecated, one should use date__gte. |
status_not | string |
total__gt | number |
total__lt | number |
subscription_uuid | string Filter using Subscription UUID |
debt_collection | string |
status | string |
currency | string |
collection_method | string |
kickback_status | string |
balance | string |
imported | string |
import_source | string |
date__lte | string Format: YYYY-MM-DD |
date__gte | string Format: YYYY-MM-DD |
created_date__lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
due_date__lte | string Format: YYYY-MM-DD |
due_date__gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/invoices/?uuid=SOME_STRING_VALUE&invoice_number=SOME_NUMBER_VALUE&search=SOME_STRING_VALUE&account=SOME_STRING_VALUE&account_not=SOME_STRING_VALUE&since=SOME_STRING_VALUE&status_not=SOME_STRING_VALUE&total__gt=SOME_NUMBER_VALUE&total__lt=SOME_NUMBER_VALUE&subscription_uuid=SOME_STRING_VALUE&debt_collection=SOME_STRING_VALUE&status=SOME_STRING_VALUE¤cy=SOME_STRING_VALUE&collection_method=SOME_STRING_VALUE&kickback_status=SOME_STRING_VALUE&balance=SOME_STRING_VALUE&imported=SOME_STRING_VALUE&import_source=SOME_STRING_VALUE&date__lte=SOME_STRING_VALUE&date__gte=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&due_date__lte=SOME_STRING_VALUE&due_date__gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "total": 0,
- "subtotal": 0,
- "vat": 0,
- "balance": 0,
- "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
]
}
curl --request GET \ --url https://app.fenerum.com/api/v1/invoices/available-vat-billing-periods/ \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "display_name": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
]
export_period | string UUID of the VAT billing period to make export for. If not provided all invoices will be used for making the export. |
export_countries | string Default: "world_wide" Enum: "world_wide" "eu_countries" Which countries to include in the export. If not provided, all countries will be included. |
export_granularity | string Default: "invoice" Enum: "invoice" "account" The granularity of the report. If not provided, the report will be on invoice-level. |
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
curl --request GET \ --url https://app.fenerum.com/api/v1/invoices/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "pdf_base64": "string",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "balance": "string",
- "invoiceline_set": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
kickback_status | string or null (Kickback status) Enum: "commission_pending" "commission_paid" Available only when Kickback feature is turn on for the organization. |
{- "kickback_status": "commission_pending"
}
{- "kickback_status": "commission_pending",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
registration_date required | string <date> (Registration date) |
{- "registration_date": "2019-08-24"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
curl --request POST \ --url https://app.fenerum.com/api/v1/invoices/%7Buuid%7D/apply-credit-note/ \ --header 'Authorization: REPLACE_KEY_VALUE'
uuid required | string <uuid> A UUID string identifying this Invoice. |
target_invoice required | string <uuid> (Target invoice) The invoice the credit should be applied to. |
amount | string <decimal> (Amount) Amount to credit. Defaults to the balance of the invoice with the credit. |
{- "target_invoice": "8b0a3194-d33a-414b-a5d7-a1aa616a7236",
- "amount": "string"
}
{- "error": "string"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
collection_method required | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
{- "collection_method": "payment_card"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
{ }
uuid required | string <uuid> A UUID string identifying this Invoice. |
collection_method required | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
{- "collection_method": "payment_card"
}
{- "error": "string"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
{ }
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "pdf_base64": "string",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "balance": "string",
- "invoiceline_set": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Invoice. |
{ }
account | string Filter using account code (External ID) |
uuid | string |
subscription_uuid | string |
type | string |
mrr_change_type | string |
is_manual | string |
deleted | string |
future | string |
since | string Deprecated |
use_activity_date | string Deprecated |
activity_type | string |
created_date__lte | string Format: YYYY-MM-DD |
created_date__org_tz_lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
created_date__org_tz_gte | string Format: YYYY-MM-DD |
updated_date__lte | string Format: YYYY-MM-DDTHH:MM:SSZ |
updated_date__gte | string Format: YYYY-MM-DDTHH:MM:SSZ |
activity_date__lte | string Format: YYYY-MM-DD |
activity_date__org_tz_lte | string Format: YYYY-MM-DD |
activity_date__gte | string Format: YYYY-MM-DD |
activity_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/activities/?account=SOME_STRING_VALUE&uuid=SOME_STRING_VALUE&subscription_uuid=SOME_STRING_VALUE&type=SOME_STRING_VALUE&mrr_change_type=SOME_STRING_VALUE&is_manual=SOME_STRING_VALUE&deleted=SOME_STRING_VALUE&future=SOME_STRING_VALUE&since=SOME_STRING_VALUE&use_activity_date=SOME_STRING_VALUE&activity_type=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__org_tz_lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&created_date__org_tz_gte=SOME_STRING_VALUE&updated_date__lte=SOME_STRING_VALUE&updated_date__gte=SOME_STRING_VALUE&activity_date__lte=SOME_STRING_VALUE&activity_date__org_tz_lte=SOME_STRING_VALUE&activity_date__gte=SOME_STRING_VALUE&activity_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "string",
- "account_code": "string",
- "subscription": "string",
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "type": "new",
- "is_manual": true,
- "is_churn": true,
- "old_currency": "DKK",
- "new_currency": "DKK",
- "old_mrr_in_subscription_currency": "string",
- "new_mrr_in_subscription_currency": "string",
- "old_mrr": "string",
- "new_mrr": "string",
- "old_quantity": -2147483648,
- "new_quantity": -2147483648,
- "old_terms": "ad992289-ddca-4bb6-ad6d-d633bfc37629",
- "new_terms": "7f43d5df-307a-4725-a28d-3e5b9b27e92e",
- "mrr_change": "string",
- "quantity_change": "string",
- "old_terms_name": "string",
- "new_terms_name": "string",
- "old_plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "new_plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "old_plan_name": "string",
- "new_plan_name": "string",
- "company_name": "string",
- "ean_invoice": true,
- "deleted": true,
- "model": "string",
- "schema": "string"
}
]
}
subscription required | string or null <uuid> (Subscription) |
date required | string <date-time> (Date) The date the activity comes into effect |
quantity required | integer (Quantity) >= 1 |
terms required | string <uuid> (Terms) |
mrr required | string <decimal> (MRR) It is the MRR in the currency of Plan Terms |
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string"
}
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string",
- "model": "string",
- "schema": "string"
}
account | string Filter using account code (External ID) |
uuid | string |
subscription_uuid | string |
is_manual | string |
future | string |
type | string |
created_date__lte | string Format: YYYY-MM-DD |
created_date__org_tz_lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
created_date__org_tz_gte | string Format: YYYY-MM-DD |
date__lte | string Format: YYYY-MM-DD |
date__org_tz_lte | string Format: YYYY-MM-DD |
date__gte | string Format: YYYY-MM-DD |
date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/activities/account/?account=SOME_STRING_VALUE&uuid=SOME_STRING_VALUE&subscription_uuid=SOME_STRING_VALUE&is_manual=SOME_STRING_VALUE&future=SOME_STRING_VALUE&type=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__org_tz_lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&created_date__org_tz_gte=SOME_STRING_VALUE&date__lte=SOME_STRING_VALUE&date__org_tz_lte=SOME_STRING_VALUE&date__gte=SOME_STRING_VALUE&date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "string",
- "account_code": "string",
- "company_name": "string",
- "type": "new_business",
- "mrr_change": "string",
- "new_mrr": "string",
- "old_mrr": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "subscription": "string",
- "is_manual": true,
- "deleted": true,
- "model": "string",
- "schema": "string"
}
]
}
account_uuid required | string (Account uuid) non-empty |
account_code required | string (Account code) non-empty |
company_name required | string (Company name) non-empty |
type required | string (Type) Enum: "new_business" "expansion" "contraction" "churn" "reactivation" |
new_mrr required | string or null <decimal> (New MRR) |
old_mrr required | string or null <decimal> (Old MRR) |
date required | string <date-time> (Date) The date the activity comes into effect |
subscription required | string or null (Subscription) non-empty |
is_manual | boolean (Is manual) |
deleted | boolean (Deleted) |
{- "account_uuid": "string",
- "account_code": "string",
- "company_name": "string",
- "type": "new_business",
- "new_mrr": "string",
- "old_mrr": "string",
- "date": "2019-08-24T14:15:22Z",
- "subscription": "string",
- "is_manual": true,
- "deleted": true
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this Activity. |
curl --request GET \ --url https://app.fenerum.com/api/v1/activities/account/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "string",
- "account_code": "string",
- "company_name": "string",
- "type": "new_business",
- "mrr_change": "string",
- "new_mrr": "string",
- "old_mrr": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "subscription": "string",
- "is_manual": true,
- "deleted": true,
- "model": "string",
- "schema": "string"
}
account_uuid required | string (Account uuid) non-empty |
account_code required | string (Account code) non-empty |
subscription required | string or null (Subscription) non-empty |
invoice | string or null <uuid> (Invoice) |
date required | string <date-time> (Date) The date the activity comes into effect |
type required | string (Type) Enum: "new" "reactivate" "renew" "cancel" "upgrade_qty" "downgrade_qty" "upgrade_subscription" "downgraded_subscription" "modified" "invoice_sent" "invoice_paid" "payment_made" "currency_exchange" |
is_manual | boolean (Is manual) |
is_churn | boolean (Is churn) |
old_currency | string or null (Old currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
new_currency | string or null (New currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
old_mrr_in_subscription_currency | string or null <decimal> (Old MRR in subscription currency) |
new_mrr_in_subscription_currency | string or null <decimal> (New MRR in subscription currency) |
old_mrr | string or null <decimal> (Old MRR) |
new_mrr | string or null <decimal> (New MRR) |
old_quantity | integer or null (Old quantity) [ -2147483648 .. 2147483647 ] |
new_quantity | integer or null (New quantity) [ -2147483648 .. 2147483647 ] |
old_terms | string or null <uuid> (Old terms) |
new_terms | string or null <uuid> (New terms) |
old_terms_name required | string or null (Old terms name) non-empty |
new_terms_name required | string or null (New terms name) non-empty |
required | object (EmbeddedPlan) |
required | object (EmbeddedPlan) |
old_plan_name required | string or null (Old plan name) non-empty DEPRECATED: use old_plan.name instead |
new_plan_name required | string or null (New plan name) non-empty DEPRECATED: use new_plan.name instead |
company_name required | string (Company name) non-empty |
ean_invoice | boolean (Electronic invoicing) |
deleted | boolean (Deleted) |
{- "account_uuid": "string",
- "account_code": "string",
- "subscription": "string",
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24T14:15:22Z",
- "type": "new",
- "is_manual": true,
- "is_churn": true,
- "old_currency": "DKK",
- "new_currency": "DKK",
- "old_mrr_in_subscription_currency": "string",
- "new_mrr_in_subscription_currency": "string",
- "old_mrr": "string",
- "new_mrr": "string",
- "old_quantity": -2147483648,
- "new_quantity": -2147483648,
- "old_terms": "ad992289-ddca-4bb6-ad6d-d633bfc37629",
- "new_terms": "7f43d5df-307a-4725-a28d-3e5b9b27e92e",
- "old_terms_name": "string",
- "new_terms_name": "string",
- "old_plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "new_plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "old_plan_name": "string",
- "new_plan_name": "string",
- "company_name": "string",
- "ean_invoice": true,
- "deleted": true
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this Activity. |
curl --request GET \ --url https://app.fenerum.com/api/v1/activities/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "string",
- "account_code": "string",
- "subscription": "string",
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "type": "new",
- "is_manual": true,
- "is_churn": true,
- "old_currency": "DKK",
- "new_currency": "DKK",
- "old_mrr_in_subscription_currency": "string",
- "new_mrr_in_subscription_currency": "string",
- "old_mrr": "string",
- "new_mrr": "string",
- "old_quantity": -2147483648,
- "new_quantity": -2147483648,
- "old_terms": "ad992289-ddca-4bb6-ad6d-d633bfc37629",
- "new_terms": "7f43d5df-307a-4725-a28d-3e5b9b27e92e",
- "mrr_change": "string",
- "quantity_change": "string",
- "old_terms_name": "string",
- "new_terms_name": "string",
- "old_plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "new_plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "old_plan_name": "string",
- "new_plan_name": "string",
- "company_name": "string",
- "ean_invoice": true,
- "deleted": true,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Activity. |
subscription required | string or null <uuid> (Subscription) |
date required | string <date-time> (Date) The date the activity comes into effect |
quantity required | integer (Quantity) >= 1 |
terms required | string <uuid> (Terms) |
mrr required | string <decimal> (MRR) It is the MRR in the currency of Plan Terms |
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string"
}
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Activity. |
subscription required | string or null <uuid> (Subscription) |
date required | string <date-time> (Date) The date the activity comes into effect |
quantity required | integer (Quantity) >= 1 |
terms required | string <uuid> (Terms) |
mrr required | string <decimal> (MRR) It is the MRR in the currency of Plan Terms |
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string"
}
{- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "date": "2019-08-24T14:15:22Z",
- "quantity": 1,
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "mrr": "string",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Activity. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/activities/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
budget_id | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/account-budgets/?budget_id=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "budget_id": "string",
- "erp_account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "display_name": "string",
- "account_number": 0,
- "account_number_str": "string",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24",
- "end_date": "string",
- "start_amount": "string",
- "calculated_amount": "string",
- "model": "string",
- "schema": "string"
}
]
}
id required | integer A unique integer value identifying this erp account budget. |
curl --request GET \ --url https://app.fenerum.com/api/v1/account-budgets/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "budget_id": "string",
- "erp_account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "display_name": "string",
- "account_number": 0,
- "account_number_str": "string",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24",
- "end_date": "string",
- "start_amount": "string",
- "calculated_amount": "string",
- "model": "string",
- "schema": "string"
}
uuid | string |
code | string |
type | string |
is_getting_reminders | string |
is_archived | string |
search | string Filter by account name |
balance | string |
subscription_status | string |
subscription_collection_method | string |
subscription_set_to_expire | string |
legal_country | string |
active_payment_method | string |
reseller_program | string |
registered_for_direct_debit | string |
register_status | string |
ean_invoicing | string |
has_recipient_receiving_invoices | string |
created_date__lte | string Format: YYYY-MM-DDTHH:MM:SSZ |
created_date__gte | string Format: YYYY-MM-DDTHH:MM:SSZ |
last_modified_date__lte | string Format: YYYY-MM-DDTHH:MM:SSZ |
last_modified_date__gte | string Format: YYYY-MM-DDTHH:MM:SSZ |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
Fields | string A comma-separated list of fields to be included in the Account representation. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/accounts/?uuid=SOME_STRING_VALUE&code=SOME_STRING_VALUE&type=SOME_STRING_VALUE&is_getting_reminders=SOME_STRING_VALUE&is_archived=SOME_STRING_VALUE&search=SOME_STRING_VALUE&balance=SOME_STRING_VALUE&subscription_status=SOME_STRING_VALUE&subscription_collection_method=SOME_STRING_VALUE&subscription_set_to_expire=SOME_STRING_VALUE&legal_country=SOME_STRING_VALUE&active_payment_method=SOME_STRING_VALUE&reseller_program=SOME_STRING_VALUE®istered_for_direct_debit=SOME_STRING_VALUE®ister_status=SOME_STRING_VALUE&ean_invoicing=SOME_STRING_VALUE&has_recipient_receiving_invoices=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE' \ --header 'Fields: SOME_STRING_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "payment_gateway_account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
], - "paymentcard_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
], - "subscription_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "recipient_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
], - "draftinvoiceline_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "eu_vat_status": "string",
- "update_from_registers": true,
- "register_status": "active",
- "industry": "string",
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "is_archived": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "payment_gateway_account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
], - "paymentcard_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
], - "subscription_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "recipient_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
], - "draftinvoiceline_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "eu_vat_status": "string",
- "update_from_registers": true,
- "register_status": "active",
- "industry": "string",
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "is_archived": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
code required | string |
Fields | string A comma-separated list of fields to be included in the Account representation. |
curl --request GET \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE' \ --header 'Fields: SOME_STRING_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "payment_gateway_account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
], - "paymentcard_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
], - "subscription_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "recipient_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
], - "draftinvoiceline_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "eu_vat_status": "string",
- "update_from_registers": true,
- "register_status": "active",
- "industry": "string",
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "is_archived": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
code required | string |
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "payment_gateway_account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
], - "paymentcard_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
], - "subscription_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "recipient_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
], - "draftinvoiceline_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "eu_vat_status": "string",
- "update_from_registers": true,
- "register_status": "active",
- "industry": "string",
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "is_archived": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
code required | string |
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "payment_gateway_account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
], - "paymentcard_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
], - "subscription_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "recipient_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
], - "draftinvoiceline_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "eu_vat_status": "string",
- "update_from_registers": true,
- "register_status": "active",
- "industry": "string",
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "is_archived": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
curl --request DELETE \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
code required | string |
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
code required | string |
gateway required | string Which PSP gateway to use. Possible values: |
currency | string Required for dibs_easy and quickpay. possible values: DKK, NOK, SEK, EUR, USD |
redirect_url | string <uri> non-empty For DIBS Easy the redirect URL is part of integration settings and needs to be set in Fenerum |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/card-registration-link/%7Bgateway%7D/?currency=SOME_STRING_VALUE&redirect_url=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{
}
code required | string |
gateway required | string Which PSP gateway to use. Possible values: |
currency | string Required for dibs_easy and quickpay. possible values: DKK, NOK, SEK, EUR, USD |
redirect_url | string <uri> non-empty For DIBS Easy the redirect URL is part of integration settings and needs to be set in Fenerum |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/card_registration_link/%7Bgateway%7D/?currency=SOME_STRING_VALUE&redirect_url=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{
}
code required | string |
collection_method | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" Default value is the account setting 'Default collection method'. When this setting is not set, the organization default will be used. |
payment_terms | integer (Payment terms) Default value is the account setting 'Default payment terms'. When this setting is not set, the organization default will be used. |
{- "collection_method": "payment_card",
- "payment_terms": 0
}
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "pdf_base64": "string",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "balance": "string",
- "invoiceline_set": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
]
code required | string |
collection_method | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" Default value is the account setting 'Default collection method'. When this setting is not set, the organization default will be used. |
payment_terms | integer (Payment terms) Default value is the account setting 'Default payment terms'. When this setting is not set, the organization default will be used. |
{- "collection_method": "payment_card",
- "payment_terms": 0
}
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "pdf_base64": "string",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "balance": "string",
- "invoiceline_set": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
]
curl --request GET \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/payment-gateways/ \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
]
code required | string |
payment_gateway required | string (Payment gateway) Enum: "stripe" "stripe_new" "noop" "quickpay" "dibs" "dibs_easy" |
payment_gateway_account_id required | string (Payment gateway account ID) [ 1 .. 256 ] characters |
[- {
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string"
}
]
[- {
- "payment_gateway": "stripe",
- "payment_gateway_account_id": "string",
- "model": "string",
- "schema": "string"
}
]
code required | string |
company_name | string or null (Company name) [ 1 .. 256 ] characters |
first_name | string or null (First name) [ 1 .. 128 ] characters |
middle_name | string or null (Middle name) <= 128 characters |
last_name | string or null (Last name) [ 1 .. 128 ] characters |
title | string or null (Title) Enum: "mr" "mrs" "ms" |
gender | string or null (Gender) Enum: "male" "female" "other" |
code required | string (Custom ID from external system) [ 1 .. 128 ] characters |
erp_id | string or null (Erp id) [ 1 .. 128 ] characters |
partner | integer or null (Partner) |
ean_invoicing | boolean (Electronic invoicing) Check this to use GLN/EAN/CVR invoice box instead of email for invoice delivery |
einvoicing_identifier_schema | string (Einvoicing identifier schema) Enum: "GLN" "ORGNR" Choices depend on the Organization's and Account's countries. |
ean_number | string or null (GLN/EAN number) <= 128 characters |
invoice_note | string or null (Invoice note) <= 240 characters Additional text that will be added to description on the invoice. |
language | string (Language) Enum: "en" "da" "nl" "fi" "de" "nb" "pl" "pt" "es" "se" Language of communication: if possible invoices, emails etc. will be translated to this language. |
legal_address required | string (Legal address) non-empty |
legal_zipcode required | string (Legal ZIP code) [ 1 .. 128 ] characters |
legal_city required | string (Legal city) [ 1 .. 128 ] characters |
legal_country required | string (Legal country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
legal_vat_number | string (Legal VAT number) <= 128 characters |
billing_same_as_legal | boolean (Billing address same as legal) |
billing_address | string (Billing address) |
billing_zipcode | string (Billing ZIP code) <= 128 characters |
billing_city | string (Billing city) <= 128 characters |
billing_country | string (Billing country) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" |
update_from_registers | boolean (Update from registers) If you uncheck this, account address, company name etc. will not be updated from company registers. |
default_payment_terms | integer or null (Default payment terms) [ -2147483648 .. 2147483647 ] It will override organization level setting. |
default_collection_method | string or null (Default collection method) Enum: "payment_card" "invoice" "direct_debit" It will override organization level setting. |
is_getting_reminders | boolean (Is getting reminders) If you uncheck this, no payment reminders will be sent for this account. You can also turn reminders off globally in Invoice Settings. |
reseller | string or null <uuid> (Reseller) Reseller which resells goods and subscriptions to this account. |
reseller_code | string (Reseller code) Should reference the account code (ID from external system). Can be used as an alternative to the UUID-field 'reseller'. |
reseller_billing_frequency | string or null (Reseller billing frequency) Enum: "daily" "end_of_month" "start_of_month" "end_of_week" "start_of_week" "start_and_end_of_month" Choose how often to invoice the reseller account for resold goods and subscriptions: weekly invoices are sent every Sunday, and monthly invoices on the last day of the month. |
reseller_billing_grouping | string or null (Group invoices by) Enum: "currency" "currency_resold_account" "currency_resold_account_po_number" Grouping of the invoices generated from the reseller invoice lines. Defaults to currency-grouping. |
type | string (Account type) Enum: "company" "person" |
custom_fields | object (AccountCustomFields) |
{- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
code required | string |
{ }
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "external_invoice_number": "string",
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "pdf_base64": "string",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "balance": "string",
- "invoiceline_set": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
], - "imported": true,
- "import_source": "manual",
- "model": "string",
- "schema": "string"
}
code required | string |
terms required | string <uuid> (Terms) |
quantity required | integer (Quantity) >= 1 |
collection_method required | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
group_on_invoice | boolean (Group on invoice) Default: false |
{- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": false
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
account | string Filter using account code (External ID) |
plan | string Filter using Plan UUID |
terms | string Filter using Plan Terms UUID |
status | string |
collection_method | string |
account_active_payment_method | string |
set_to_expire | string |
has_recipient_receiving_invoices | string |
has_custom_price | string |
start_date__lte | string Format: YYYY-MM-DD |
start_date__org_tz_lte | string Format: YYYY-MM-DD |
start_date__gte | string Format: YYYY-MM-DD |
start_date__org_tz_gte | string Format: YYYY-MM-DD |
next_renewal_date__lte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_lte | string Format: YYYY-MM-DD |
next_renewal_date__gte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_gte | string Format: YYYY-MM-DD |
end_date__lte | string Format: YYYY-MM-DD |
end_date__org_tz_lte | string Format: YYYY-MM-DD |
end_date__gte | string Format: YYYY-MM-DD |
end_date__org_tz_gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/?account=SOME_STRING_VALUE&plan=SOME_STRING_VALUE&terms=SOME_STRING_VALUE&status=SOME_STRING_VALUE&collection_method=SOME_STRING_VALUE&account_active_payment_method=SOME_STRING_VALUE&set_to_expire=SOME_STRING_VALUE&has_recipient_receiving_invoices=SOME_STRING_VALUE&has_custom_price=SOME_STRING_VALUE&start_date__lte=SOME_STRING_VALUE&start_date__org_tz_lte=SOME_STRING_VALUE&start_date__gte=SOME_STRING_VALUE&start_date__org_tz_gte=SOME_STRING_VALUE&next_renewal_date__lte=SOME_STRING_VALUE&next_renewal_date__org_tz_lte=SOME_STRING_VALUE&next_renewal_date__gte=SOME_STRING_VALUE&next_renewal_date__org_tz_gte=SOME_STRING_VALUE&end_date__lte=SOME_STRING_VALUE&end_date__org_tz_lte=SOME_STRING_VALUE&end_date__gte=SOME_STRING_VALUE&end_date__org_tz_gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
account required | string (Account) Account code (ID from external system) |
terms required | string <uuid> (Terms) |
pre_renewal_invoicing | boolean (Pre renewal invoicing) Default: false DEPRECATED: use pre_renewal_days_offset instead |
custom_fields | object (SubscriptionCustomFields) |
start_date | string or null <date-time> (Start date) If not set it will be set to the moment of creation to start immediately. |
custom_churn_reason | string or null (Custom churn reason) <= 100 characters |
quantity | integer (Quantity) [ 0 .. 2147483647 ] Default: 1 Number of subscribed users |
collection_method required | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
group_on_invoice | boolean (Group on invoice) Subscription renewing on the same date, with same currency, payment terms, collection method and PO number will be charged on the single invoice. |
payment_terms | integer or null (Payment terms) [ 0 .. 2147483647 ] Default: 0 Days until payment, 0 means on receipt. If left empty default value will be used. Default value is taken from account setting (Default payment terms). If account setting is empty it will default to the organization setting. |
override_price | string or null <decimal> (Override price) Specify the price and override the one form the Plan Term. If any discounts are applicable to this Subscription, they will be applied to this price. |
pre_renewal_days_offset | integer (Pre-renewal invoicing) [ 0 .. 32767 ] Default: 0 Number of days before the renewal date a new invoice should be generated. It can be set only for forward-charging plans. |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
churn_reason | string or null <uuid> (Churn reason) You can define available churn reasons in Objects Settings |
{- "account": "string",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "pre_renewal_invoicing": false,
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
{- "account": "string",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "pre_renewal_invoicing": false,
- "custom_fields": { },
- "model": "string",
- "schema": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/activity-months/?ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/activity_months/?ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
object (MinimalAccount) | |
object (PlanTerms) | |
object (EmbeddedPlan) | |
start_date | string or null <date-time> (Start date) If not set it will be set to the moment of creation to start immediately. |
end_date | string or null <date-time> (End date) |
next_renewal_date | string or null <date-time> (Next renewal date) |
last_renewal_date | string or null <date-time> (Last renewal date) |
base_renewal_date | string or null <date-time> (Base renewal date) |
quantity | integer (Quantity) [ 0 .. 2147483647 ] Number of subscribed users |
collection_method | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
group_on_invoice | boolean (Group on invoice) Subscription renewing on the same date, with same currency, payment terms, collection method and PO number will be charged on the single invoice. |
payment_terms | integer or null (Payment terms) [ -2147483648 .. 2147483647 ] Days until payment, 0 means on receipt. If left empty default value will be used. Default value is taken from account setting (Default payment terms). If account setting is empty it will default to the organization setting. |
pre_renewal_days_offset | integer (Pre-renewal invoicing) [ 0 .. 32767 ] Number of days before the renewal date a new invoice should be generated. It can be set only for forward-charging plans. |
po_number | string (PO number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
override_price | string or null <decimal> (Override price) Specify the price and override the one form the Plan Term. If any discounts are applicable to this Subscription, they will be applied to this price. |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
case_number | string (Case number) <= 128 characters |
object (ChurnReason) | |
custom_churn_reason | string or null (Custom churn reason) <= 100 characters |
custom_fields | object (SubscriptionCustomFields) |
{- "account": {
- "display_name": "string"
}, - "terms": {
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string"
}, - "plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "churn_reason": {
- "name": "string",
- "is_active": true
}, - "custom_churn_reason": "string",
- "custom_fields": { }
}
{- "action_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
year required | integer |
month required | integer |
subscription | string <uuid> |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/mrr-per-month/?year=SOME_INTEGER_VALUE&month=SOME_INTEGER_VALUE&subscription=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "month": "2019-08-24T14:15:22Z",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "subscription_uuid": "1d315b44-b5ed-49fd-a63a-f8129c5d76c8",
- "company_name": "string",
- "legal_country": "AF",
- "collection_method": "payment_card",
- "payment_terms": 0,
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "terms_interval_type": "string",
- "terms_interval_count": 0,
- "currency": "DKK",
- "quantity": 0,
- "plan_name": "string",
- "plan_uuid": "051b398d-fe45-4274-8e3c-35f1a307183f",
- "revenue_group_id": 0,
- "revenue_group_name": "string",
- "mrr": 0,
- "active": true
}
]
year required | integer |
month required | integer |
subscription | string <uuid> |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/mrr_per_month/?year=SOME_INTEGER_VALUE&month=SOME_INTEGER_VALUE&subscription=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "month": "2019-08-24T14:15:22Z",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "subscription_uuid": "1d315b44-b5ed-49fd-a63a-f8129c5d76c8",
- "company_name": "string",
- "legal_country": "AF",
- "collection_method": "payment_card",
- "payment_terms": 0,
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "terms_interval_type": "string",
- "terms_interval_count": 0,
- "currency": "DKK",
- "quantity": 0,
- "plan_name": "string",
- "plan_uuid": "051b398d-fe45-4274-8e3c-35f1a307183f",
- "revenue_group_id": 0,
- "revenue_group_name": "string",
- "mrr": 0,
- "active": true
}
]
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/retention-cohort/?ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/retention_cohort/?ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
account | string Filter using account code (External ID) |
plan | string Filter using Plan UUID |
terms | string Filter using Plan Terms UUID |
status | string |
collection_method | string |
account_active_payment_method | string |
set_to_expire | string |
has_recipient_receiving_invoices | string |
has_custom_price | string |
start_date__lte | string Format: YYYY-MM-DD |
start_date__org_tz_lte | string Format: YYYY-MM-DD |
start_date__gte | string Format: YYYY-MM-DD |
start_date__org_tz_gte | string Format: YYYY-MM-DD |
next_renewal_date__lte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_lte | string Format: YYYY-MM-DD |
next_renewal_date__gte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_gte | string Format: YYYY-MM-DD |
end_date__lte | string Format: YYYY-MM-DD |
end_date__org_tz_lte | string Format: YYYY-MM-DD |
end_date__gte | string Format: YYYY-MM-DD |
end_date__org_tz_gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/total-mrr/?account=SOME_STRING_VALUE&plan=SOME_STRING_VALUE&terms=SOME_STRING_VALUE&status=SOME_STRING_VALUE&collection_method=SOME_STRING_VALUE&account_active_payment_method=SOME_STRING_VALUE&set_to_expire=SOME_STRING_VALUE&has_recipient_receiving_invoices=SOME_STRING_VALUE&has_custom_price=SOME_STRING_VALUE&start_date__lte=SOME_STRING_VALUE&start_date__org_tz_lte=SOME_STRING_VALUE&start_date__gte=SOME_STRING_VALUE&start_date__org_tz_gte=SOME_STRING_VALUE&next_renewal_date__lte=SOME_STRING_VALUE&next_renewal_date__org_tz_lte=SOME_STRING_VALUE&next_renewal_date__gte=SOME_STRING_VALUE&next_renewal_date__org_tz_gte=SOME_STRING_VALUE&end_date__lte=SOME_STRING_VALUE&end_date__org_tz_lte=SOME_STRING_VALUE&end_date__gte=SOME_STRING_VALUE&end_date__org_tz_gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "total_mrr": "string",
- "future_mrr": "string",
- "subscriptions_count": 0,
- "model": "string",
- "schema": "string"
}
account | string Filter using account code (External ID) |
plan | string Filter using Plan UUID |
terms | string Filter using Plan Terms UUID |
status | string |
collection_method | string |
account_active_payment_method | string |
set_to_expire | string |
has_recipient_receiving_invoices | string |
has_custom_price | string |
start_date__lte | string Format: YYYY-MM-DD |
start_date__org_tz_lte | string Format: YYYY-MM-DD |
start_date__gte | string Format: YYYY-MM-DD |
start_date__org_tz_gte | string Format: YYYY-MM-DD |
next_renewal_date__lte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_lte | string Format: YYYY-MM-DD |
next_renewal_date__gte | string Format: YYYY-MM-DD |
next_renewal_date__org_tz_gte | string Format: YYYY-MM-DD |
end_date__lte | string Format: YYYY-MM-DD |
end_date__org_tz_lte | string Format: YYYY-MM-DD |
end_date__gte | string Format: YYYY-MM-DD |
end_date__org_tz_gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/total_mrr/?account=SOME_STRING_VALUE&plan=SOME_STRING_VALUE&terms=SOME_STRING_VALUE&status=SOME_STRING_VALUE&collection_method=SOME_STRING_VALUE&account_active_payment_method=SOME_STRING_VALUE&set_to_expire=SOME_STRING_VALUE&has_recipient_receiving_invoices=SOME_STRING_VALUE&has_custom_price=SOME_STRING_VALUE&start_date__lte=SOME_STRING_VALUE&start_date__org_tz_lte=SOME_STRING_VALUE&start_date__gte=SOME_STRING_VALUE&start_date__org_tz_gte=SOME_STRING_VALUE&next_renewal_date__lte=SOME_STRING_VALUE&next_renewal_date__org_tz_lte=SOME_STRING_VALUE&next_renewal_date__gte=SOME_STRING_VALUE&next_renewal_date__org_tz_gte=SOME_STRING_VALUE&end_date__lte=SOME_STRING_VALUE&end_date__org_tz_lte=SOME_STRING_VALUE&end_date__gte=SOME_STRING_VALUE&end_date__org_tz_gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "total_mrr": "string",
- "future_mrr": "string",
- "subscriptions_count": 0,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Subscription. |
curl --request GET \ --url https://app.fenerum.com/api/v1/subscriptions/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
Please consult documentation for details about updating a subscription.
uuid required | string <uuid> A UUID string identifying this Subscription. |
terms | string <uuid> (Terms) |
prorate | boolean (Prorate) Default: true DEPRECATED: use change_type instead |
change_type | string (Change type) Enum: "immediate" "at_specified_time" "at_renewal" |
prorate_date | string <date-time> (Prorate date) Exact date at which scheduled prorate will happen. Provide this only if you have chosen 'at_specified_time' in the change_type field. |
change_renewal | string (Change renewal) Enum: 0 1 2 3 4 5 6 7 8 9 10 11 0 means next renewal, 1 means second renewal etc. Provide this only if you have chosen 'at_renewal' in the change_type field. |
early_renewal | boolean (Early renewal) Default: false Provide this only if you have chosen 'immediate' or 'at_specified_time' in the change_type field.Selecting that option will cause renewing that subscription and create a refund for remaining period.This will happen right now (immediate option) or at a specified time (at_specified_time option) |
custom_fields | object (SubscriptionCustomFields) |
start_date | string or null <date-time> (Start date) Can't be changed after subscription already started or renewed. |
custom_churn_reason | string or null (Custom churn reason) <= 100 characters |
quantity | integer (Quantity) [ 0 .. 2147483647 ] Default: 1 Number of subscribed users |
collection_method | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
group_on_invoice | boolean (Group on invoice) Subscription renewing on the same date, with same currency, payment terms, collection method and PO number will be charged on the single invoice. |
payment_terms | integer or null (Payment terms) [ 0 .. 2147483647 ] Default: 0 Days until payment, 0 means on receipt. If left empty default value will be used. Default value is taken from account setting (Default payment terms). If account setting is empty it will default to the organization setting. |
override_price | string or null <decimal> (Override price) Specify the price and override the one form the Plan Term. If any discounts are applicable to this Subscription, they will be applied to this price. |
pre_renewal_days_offset | integer (Pre-renewal invoicing) [ 0 .. 32767 ] Default: 0 Number of days before the renewal date a new invoice should be generated. It can be set only for forward-charging plans. |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
churn_reason | string or null <uuid> (Churn reason) You can define available churn reasons in Objects Settings |
{- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "prorate": true,
- "change_type": "immediate",
- "prorate_date": "2019-08-24T14:15:22Z",
- "change_renewal": 0,
- "early_renewal": false,
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
{- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "prorate": true,
- "change_type": "immediate",
- "prorate_date": "2019-08-24T14:15:22Z",
- "change_renewal": 0,
- "early_renewal": false,
- "custom_fields": { },
- "model": "string",
- "schema": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
uuid required | string <uuid> A UUID string identifying this Subscription. |
terms | string <uuid> (Terms) |
prorate | boolean (Prorate) Default: true DEPRECATED: use change_type instead |
change_type | string (Change type) Enum: "immediate" "at_specified_time" "at_renewal" |
prorate_date | string <date-time> (Prorate date) Exact date at which scheduled prorate will happen. Provide this only if you have chosen 'at_specified_time' in the change_type field. |
change_renewal | string (Change renewal) Enum: 0 1 2 3 4 5 6 7 8 9 10 11 0 means next renewal, 1 means second renewal etc. Provide this only if you have chosen 'at_renewal' in the change_type field. |
early_renewal | boolean (Early renewal) Default: false Provide this only if you have chosen 'immediate' or 'at_specified_time' in the change_type field.Selecting that option will cause renewing that subscription and create a refund for remaining period.This will happen right now (immediate option) or at a specified time (at_specified_time option) |
custom_fields | object (SubscriptionCustomFields) |
start_date | string or null <date-time> (Start date) Can't be changed after subscription already started or renewed. |
custom_churn_reason | string or null (Custom churn reason) <= 100 characters |
quantity | integer (Quantity) [ 0 .. 2147483647 ] Default: 1 Number of subscribed users |
collection_method | string (Collection method) Enum: "payment_card" "invoice" "direct_debit" |
group_on_invoice | boolean (Group on invoice) Subscription renewing on the same date, with same currency, payment terms, collection method and PO number will be charged on the single invoice. |
payment_terms | integer or null (Payment terms) [ 0 .. 2147483647 ] Default: 0 Days until payment, 0 means on receipt. If left empty default value will be used. Default value is taken from account setting (Default payment terms). If account setting is empty it will default to the organization setting. |
override_price | string or null <decimal> (Override price) Specify the price and override the one form the Plan Term. If any discounts are applicable to this Subscription, they will be applied to this price. |
pre_renewal_days_offset | integer (Pre-renewal invoicing) [ 0 .. 32767 ] Default: 0 Number of days before the renewal date a new invoice should be generated. It can be set only for forward-charging plans. |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
churn_reason | string or null <uuid> (Churn reason) You can define available churn reasons in Objects Settings |
{- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "prorate": true,
- "change_type": "immediate",
- "prorate_date": "2019-08-24T14:15:22Z",
- "change_renewal": 0,
- "early_renewal": false,
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
{- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "prorate": true,
- "change_type": "immediate",
- "prorate_date": "2019-08-24T14:15:22Z",
- "change_renewal": 0,
- "early_renewal": false,
- "custom_fields": { },
- "model": "string",
- "schema": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "quantity": 1,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": 0,
- "override_price": "string",
- "pre_renewal_days_offset": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
Please consult [charging types documentation] (https://www.fenerum.com/docs/billing/subscriptions/charging-options/#cancelling-subscriptions) to see the possible results of cancelling a subscriptions
Subscription can't be canceled if:
expired
or not_renewing
uuid required | string <uuid> A UUID string identifying this Subscription. |
cancellation_type required | string (Cancellation type) Enum: "full_refund" "at_renewal" "today" "at_specified_time" "cancel_invalid" |
cancel_renewal | integer (Cancel renewal) Enum: 0 1 2 3 4 5 6 7 8 9 10 11 0 means next renewal, 1 means second renewal etc. Provide this only if you have chosen 'at_renewal' in the cancellation_type field. |
cancel_date | string <date-time> (Cancel date) |
{- "cancellation_type": "full_refund",
- "cancel_renewal": 0,
- "cancel_date": "2019-08-24T14:15:22Z"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Subscription. |
curl --request POST \ --url https://app.fenerum.com/api/v1/subscriptions/%7Buuid%7D/reactivate/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/organization-members/available/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_admin": true,
- "language": null,
- "initials": "string",
- "color": "string",
- "organization": {
- "name": "string",
- "base_currency": "DKK",
- "features": [
- {
- "name": "revenue_groups",
- "model": "string",
- "schema": "string"
}
], - "country": "AF",
- "time_zone": "Africa/Abidjan",
- "status": "trial",
- "trial_expiry": "2019-08-24T14:15:22Z",
- "uses_internal_billing": true,
- "onboarding_flow": "string",
- "inbound_receipt_email": "string",
- "inbound_invoice_email": "string",
- "fenerum_support_has_access": "string",
- "model": "string",
- "schema": "string"
}, - "user": {
- "email": "user@example.com",
- "is_staff": true,
- "model": "string",
- "schema": "string"
}, - "permissions": [
- "billing_read"
], - "model": "string",
- "schema": "string"
}
]
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/organization-members/current/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_admin": true,
- "language": null,
- "initials": "string",
- "color": "string",
- "organization": {
- "name": "string",
- "base_currency": "DKK",
- "features": [
- {
- "name": "revenue_groups",
- "model": "string",
- "schema": "string"
}
], - "country": "AF",
- "time_zone": "Africa/Abidjan",
- "status": "trial",
- "trial_expiry": "2019-08-24T14:15:22Z",
- "uses_internal_billing": true,
- "onboarding_flow": "string",
- "inbound_receipt_email": "string",
- "inbound_invoice_email": "string",
- "fenerum_support_has_access": "string",
- "model": "string",
- "schema": "string"
}, - "user": {
- "email": "user@example.com",
- "is_staff": true,
- "model": "string",
- "schema": "string"
}, - "permissions": [
- "billing_read"
], - "model": "string",
- "schema": "string"
}
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/bank-accounts/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "external_id": "string",
- "account_name": "string",
- "model": "string",
- "schema": "string"
}
]
}
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/bank-accounts/cash-balance/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "cash_balance": "string"
}
This endpoint will return an average of all bank account lines summarized in the organization's default currency for the last three whole months.
It only includes bank account lines from bank accounts that are active and not hidden. Amounts are converted to the organization's default currency using the exchange rate for the current day.
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/bank-accounts/cash-flow/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "cash_flow": "string"
}
id required | integer A unique integer value identifying this bank account. |
curl --request GET \ --url https://app.fenerum.com/api/v1/bank-accounts/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "external_id": "string",
- "account_name": "string",
- "model": "string",
- "schema": "string"
}
currency | string |
status | string |
pending_match | string |
verified | string |
document_date__lte | string Format: YYYY-MM-DD |
document_date__gte | string Format: YYYY-MM-DD |
created_date__lte | string Format: YYYY-MM-DD |
created_date__org_tz_lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
created_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/receipts/?currency=SOME_STRING_VALUE&status=SOME_STRING_VALUE&pending_match=SOME_STRING_VALUE&verified=SOME_STRING_VALUE&document_date__lte=SOME_STRING_VALUE&document_date__gte=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__org_tz_lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&created_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": 0,
- "status": "unmatched",
- "document_date": "2019-08-24",
- "amount": "string",
- "currency": "DKK",
- "supplier": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "legal_vat_number": "string",
- "legal_country": "AF",
- "default_cost_account": "d95e1ce1-1a2a-41f0-ad5c-e45062191abd",
- "default_payment_identifier": "IBAN",
- "default_payment_account": "string",
- "model": "string",
- "schema": "string"
}, - "supplier_receipt_number": "string",
- "cost_account": "string",
- "note": "string",
- "file_url": "string",
- "verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
- "verified_by_for_display": "string",
- "verified_on": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_by_for_display": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "matched_expenses_amount": "string",
- "matched_expenses_remaining_amount": "string",
- "expense_set": [
- {
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_display": "string",
- "invoice_amount": "string",
- "invoice_currency": "DKK",
- "bank_account_line_date": "string",
- "expense_type_display": "string",
- "receipt_url": "string",
- "model": "string",
- "schema": "string"
}
], - "costs": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "amount": "string",
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_for_display": "string"
}
], - "senders_email": "user@example.com",
- "original_filename": "string",
- "model": "string",
- "schema": "string"
}
]
}
document_date | string or null <date> (Document date) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
required | object (Supplier) |
supplier_receipt_number | string or null (Supplier receipt number) <= 128 characters |
note | string (Note) |
verified_by | string or null <uuid> (Verified by) |
verified_on | string or null <date-time> (Verified on) |
created_by | string or null <uuid> (Created by) |
required | Array of objects (MinimalExpenseDocumentCost) [ items ] |
senders_email | string <email> (Senders email) <= 254 characters |
original_filename | string (Original filename) <= 128 characters |
{- "document_date": "2019-08-24",
- "currency": "DKK",
- "supplier": {
- "name": "string",
- "legal_vat_number": "string",
- "legal_country": "AF",
- "default_cost_account": "d95e1ce1-1a2a-41f0-ad5c-e45062191abd",
- "default_payment_identifier": "IBAN",
- "default_payment_account": "string"
}, - "supplier_receipt_number": "string",
- "note": "string",
- "verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
- "verified_on": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "costs": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "amount": "string",
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb"
}
], - "senders_email": "user@example.com",
- "original_filename": "string"
}
{- "action_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
curl --request GET \ --url https://app.fenerum.com/api/v1/receipts/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": 0,
- "status": "unmatched",
- "document_date": "2019-08-24",
- "amount": "string",
- "currency": "DKK",
- "supplier": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "legal_vat_number": "string",
- "legal_country": "AF",
- "default_cost_account": "d95e1ce1-1a2a-41f0-ad5c-e45062191abd",
- "default_payment_identifier": "IBAN",
- "default_payment_account": "string",
- "model": "string",
- "schema": "string"
}, - "supplier_receipt_number": "string",
- "cost_account": "string",
- "note": "string",
- "file_url": "string",
- "verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
- "verified_by_for_display": "string",
- "verified_on": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_by_for_display": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "matched_expenses_amount": "string",
- "matched_expenses_remaining_amount": "string",
- "expense_set": [
- {
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_display": "string",
- "invoice_amount": "string",
- "invoice_currency": "DKK",
- "bank_account_line_date": "string",
- "expense_type_display": "string",
- "receipt_url": "string",
- "model": "string",
- "schema": "string"
}
], - "costs": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "amount": "string",
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_for_display": "string"
}
], - "senders_email": "user@example.com",
- "original_filename": "string",
- "model": "string",
- "schema": "string"
}
code | string |
with_code | string |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/plans/?code=SOME_STRING_VALUE&with_code=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "planterms_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "last_modified_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
]
}
name required | string (Name) [ 1 .. 128 ] characters |
code | string or null (Custom ID from external system) <= 128 characters ID from external system. If you don't have one you can just put any unique value here by which you will be able to reference this object on other items. |
description | string or null (Description) |
collect_vat | boolean (Collect VAT) |
vat_type required | string (VAT type) Enum: "physical" "services" "unknown" |
{- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "planterms_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "last_modified_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
account_code | string (Account code) non-empty |
account_country_code required | string (Account country code) non-empty |
terms required | string <uuid> (Terms) |
quantity required | integer (Quantity) |
{- "account_code": "string",
- "account_country_code": "string",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "quantity": 0
}
{- "account_code": "string",
- "account_country_code": "string",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "quantity": 0,
- "model": "string",
- "schema": "string"
}
identifier required | string |
Lookup-Field | string Name of field used as resource identifier. Possible values: uuid, code |
curl --request GET \ --url https://app.fenerum.com/api/v1/plans/%7Bidentifier%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE' \ --header 'Lookup-Field: SOME_STRING_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "planterms_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "last_modified_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
identifier required | string |
Lookup-Field | string Name of field used as resource identifier. Possible values: uuid, code |
name required | string (Name) [ 1 .. 128 ] characters |
code | string or null (Custom ID from external system) <= 128 characters ID from external system. If you don't have one you can just put any unique value here by which you will be able to reference this object on other items. |
description | string or null (Description) |
collect_vat | boolean (Collect VAT) |
vat_type required | string (VAT type) Enum: "physical" "services" "unknown" |
{- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "description": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "planterms_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "last_modified_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
subscription_uuid required | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/subscriptions/%7Bsubscription_uuid%7D/changes/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "planned_apply_date": "2019-08-24T14:15:22Z",
- "change_type": "immediate",
- "state": "scheduled",
- "applied_at": "2019-08-24T14:15:22Z",
- "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "quantity": -2147483648,
- "override_price": "string",
- "early_renewal": true,
- "model": "string",
- "schema": "string"
}
]
}
subscription_uuid required | string |
uuid required | string <uuid> A UUID string identifying this Subscription Change. |
curl --request GET \ --url https://app.fenerum.com/api/v1/subscriptions/%7Bsubscription_uuid%7D/changes/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "planned_apply_date": "2019-08-24T14:15:22Z",
- "change_type": "immediate",
- "state": "scheduled",
- "applied_at": "2019-08-24T14:15:22Z",
- "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "quantity": -2147483648,
- "override_price": "string",
- "early_renewal": true,
- "model": "string",
- "schema": "string"
}
subscription_uuid required | string |
uuid required | string <uuid> A UUID string identifying this Subscription Change. |
{ }
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "planned_apply_date": "2019-08-24T14:15:22Z",
- "change_type": "immediate",
- "state": "scheduled",
- "applied_at": "2019-08-24T14:15:22Z",
- "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "quantity": -2147483648,
- "override_price": "string",
- "early_renewal": true,
- "model": "string",
- "schema": "string"
}
month required | stringMM-YYYY Get cashflow for given month. |
revenue_base | string Default: "invoice" Enum: "invoice" "due" Which date should be taken as base for calculcation |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/cash-flow/%7Bmonth%7D/?revenue_base=invoice' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "customer_payments_forecast": "string",
- "customer_invoices_vat": "string",
- "customer_invoices_due": "string",
- "customer_invoices_paid": "string",
- "revenue_total": "string",
- "supplier_payments_due": "string",
- "supplier_payments_paid": "string",
- "payments_total": "string",
- "customer_payments_forecast_invoice": "string",
- "customer_payments_forecast_payment_card": "string",
- "customer_payments_forecast_direct_debit": "string",
- "balance": "string"
}
curl --request GET \ --url https://app.fenerum.com/api/v1/erp-accounts/ \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "display_name": "string",
- "account_number": 0,
- "account_number_str": "string",
- "model": "string",
- "schema": "string"
}
]
uuid required | string <uuid> A UUID string identifying this erp account. |
curl --request GET \ --url https://app.fenerum.com/api/v1/erp-accounts/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "display_name": "string",
- "account_number": 0,
- "account_number_str": "string",
- "model": "string",
- "schema": "string"
}
document_type required | string (Document type) Enum: "receipt" "supplier_invoice" |
files required | Array of strings <uri> |
{- "document_type": "receipt",
}
{- "document_type": "receipt",
- "model": "string",
- "schema": "string"
}
curl --request GET \ --url https://app.fenerum.com/api/v1/exports/%7Bid%7D/download/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{
}
curl --request POST \ --url https://app.fenerum.com/api/v1/revenue-recognition-algorithms/examples/ \ --header 'Authorization: REPLACE_KEY_VALUE'
q | string Search query to look for Accounts, Invoices, Plans, Products, Revenue Groups, Subscriptions, Supplier Invoices, Suppliers, Transactions |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/search/?q=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "accounts": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "company_name": "string",
- "legal_country": "AF"
}
}
]
}, - "subscriptions": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "quantity": 0,
- "status": "string",
- "current_mrr": "string"
}
}
]
}, - "invoices": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "document_type_label": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "total": "string"
}
}
]
}, - "transactions": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "date": "2019-08-24",
- "invoice_document_type_label": "string",
- "invoice_number": 0,
- "type_label": "string",
- "amount": "string",
- "currency": "DKK",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
}
}
]
}, - "plans": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "name": "string"
}
}
]
}, - "products": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string"
}
}
]
}, - "revenue_groups": {
- "has_more_results": true,
- "results": [
]
}, - "suppliers": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "legal_country": "AF",
- "legal_vat_number": "string"
}
}
]
}, - "supplier_invoices": {
- "has_more_results": true,
- "results": [
- {
- "rank": 100,
- "match_type": "string",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "supplier_receipt_number": "string"
}
}
]
}
}
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/vat-payments/upcoming-vat-payment/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
is_active | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/churn-reasons/?is_active=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "usage_count": 0,
- "model": "string",
- "schema": "string"
}
]
}
name required | string (Name) [ 1 .. 128 ] characters |
is_active | boolean (Is active) |
{- "name": "string",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "usage_count": 0,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Churn Reason. |
curl --request GET \ --url https://app.fenerum.com/api/v1/churn-reasons/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "usage_count": 0,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Churn Reason. |
name required | string (Name) [ 1 .. 128 ] characters |
is_active | boolean (Is active) |
{- "name": "string",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "usage_count": 0,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Churn Reason. |
name required | string (Name) [ 1 .. 128 ] characters |
is_active | boolean (Is active) |
{- "name": "string",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "usage_count": 0,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Churn Reason. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/churn-reasons/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
code required | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true,
- "contracttier_set": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
], - "model": "string",
- "schema": "string"
}
]
}
code required | string |
plan_terms required | string <uuid> (Plan terms) |
start_date required | string <date-time> (Start date) |
end_date | string or null <date-time> (End date) |
commitment_length | integer (Commitment length (months)) [ -2147483648 .. 2147483647 ] Before the commitment length is fulfilled subscription can't be canceled |
exclusive_tiers | boolean (Discounts are exclusive (use best discount only)) Whether all tiers with met requirements are included in the discount (false) or only the one giving the best subscription price (true) |
{- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true,
- "contracttier_set": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
], - "model": "string",
- "schema": "string"
}
code required | string |
uuid required | string <uuid> A UUID string identifying this Contract. |
curl --request GET \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true,
- "contracttier_set": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
], - "model": "string",
- "schema": "string"
}
code required | string |
uuid required | string <uuid> A UUID string identifying this Contract. |
plan_terms required | string <uuid> (Plan terms) |
start_date required | string <date-time> (Start date) |
end_date | string or null <date-time> (End date) |
commitment_length | integer (Commitment length (months)) [ -2147483648 .. 2147483647 ] Before the commitment length is fulfilled subscription can't be canceled |
exclusive_tiers | boolean (Discounts are exclusive (use best discount only)) Whether all tiers with met requirements are included in the discount (false) or only the one giving the best subscription price (true) |
{- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true,
- "contracttier_set": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
], - "model": "string",
- "schema": "string"
}
code required | string |
uuid required | string <uuid> A UUID string identifying this Contract. |
plan_terms required | string <uuid> (Plan terms) |
start_date required | string <date-time> (Start date) |
end_date | string or null <date-time> (End date) |
commitment_length | integer (Commitment length (months)) [ -2147483648 .. 2147483647 ] Before the commitment length is fulfilled subscription can't be canceled |
exclusive_tiers | boolean (Discounts are exclusive (use best discount only)) Whether all tiers with met requirements are included in the discount (false) or only the one giving the best subscription price (true) |
{- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "plan_terms": "66f9efe8-6b6a-483c-a74b-97841f59bbd0",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "commitment_length": -2147483648,
- "exclusive_tiers": true,
- "contracttier_set": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
], - "model": "string",
- "schema": "string"
}
code required | string |
uuid required | string <uuid> A UUID string identifying this Contract. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/kickback/contracts/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
]
}
name required | string (Name) [ 1 .. 128 ] characters |
include_upgrades | boolean (Include upgrades) |
indefinite | boolean (Indefinite) |
duration_amount | integer or null (Duration amount) [ -2147483648 .. 2147483647 ] |
duration_unit | string or null (Duration unit) Enum: "month" "invoice" |
percentage_rule_type | string (Commission rate) Enum: "billing.flatpercentagerule" "billing.invoicesuccessionrule" "billing.accountmrrrule" |
{- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
{- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
id required | integer A unique integer value identifying this kickback contract. |
curl --request GET \ --url https://app.fenerum.com/api/v1/kickback/contracts/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
id required | integer A unique integer value identifying this kickback contract. |
name required | string (Name) [ 1 .. 128 ] characters |
include_upgrades | boolean (Include upgrades) |
indefinite | boolean (Indefinite) |
duration_amount | integer or null (Duration amount) [ -2147483648 .. 2147483647 ] |
duration_unit | string or null (Duration unit) Enum: "month" "invoice" |
percentage_rule_type | string (Commission rate) Enum: "billing.flatpercentagerule" "billing.invoicesuccessionrule" "billing.accountmrrrule" |
{- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
{- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
id required | integer A unique integer value identifying this kickback contract. |
name required | string (Name) [ 1 .. 128 ] characters |
include_upgrades | boolean (Include upgrades) |
indefinite | boolean (Indefinite) |
duration_amount | integer or null (Duration amount) [ -2147483648 .. 2147483647 ] |
duration_unit | string or null (Duration unit) Enum: "month" "invoice" |
percentage_rule_type | string (Commission rate) Enum: "billing.flatpercentagerule" "billing.invoicesuccessionrule" "billing.accountmrrrule" |
{- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
{- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}
account | string Filter using account code (External ID) |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/directdebitdebtors/?account=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "status": "not_send",
- "payment_gateway": "leverandoer",
- "payment_gateway_id": "string",
- "model": "string",
- "schema": "string"
}
]
}
account required | string <uuid> (Account) |
gateway required | string (Gateway) Enum: "leverandoer" "pbs" "stripe_sepa" "noop" Payment gateway from which this debtor is. This field determines what will be stored as |
token required | string (Token) non-empty ID in payment gateway. What it is depends on the |
{- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "gateway": "leverandoer",
- "token": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "status": "not_send",
- "payment_gateway": "leverandoer",
- "payment_gateway_id": "string",
- "model": "string",
- "schema": "string"
}
gateway required | string (Gateway) Value: "pbs" |
{- "gateway": "pbs"
}
{- "gateway": "pbs",
- "generated_number": "string"
}
uuid required | string <uuid> A UUID string identifying this Direct Debit Debtor. |
curl --request GET \ --url https://app.fenerum.com/api/v1/directdebitdebtors/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "status": "not_send",
- "payment_gateway": "leverandoer",
- "payment_gateway_id": "string",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Direct Debit Debtor. |
{ }
account | string Filter using account code (External ID) |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/paymentcards/?account=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
]
}
account required | string <uuid> (Account) |
gateway required | string (Gateway) Enum: "stripe" "stripe_new" "noop" "quickpay" "dibs" "dibs_easy" Payment gateway from which this card is. This field determines what will be stored as |
token required | string (Token) non-empty ID in payment gateway. What it is depends on the |
currency | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" Required for the dibs_easy gateway unless you use payment id as the token. |
{- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "gateway": "stripe",
- "token": "string",
- "currency": "DKK"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
payment_gateway required | string (Payment gateway) Enum: "stripe" "stripe_new" |
{- "payment_gateway": "stripe"
}
{- "payment_gateway": "stripe",
- "setup_details": { }
}
uuid required | string <uuid> A UUID string identifying this Payment Card. |
curl --request GET \ --url https://app.fenerum.com/api/v1/paymentcards/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "active": "string",
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Payment Card. |
{ }
account | string Filter using account code (External ID) |
date_from__lte | string Format: YYYY-MM-DD |
date_from__gte | string Format: YYYY-MM-DD |
date_to__lte | string Format: YYYY-MM-DD |
date_to__gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/draft-invoice-lines/products/?account=SOME_STRING_VALUE&date_from__lte=SOME_STRING_VALUE&date_from__gte=SOME_STRING_VALUE&date_to__lte=SOME_STRING_VALUE&date_to__gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "last_modified_date": "2019-08-24T14:15:22Z",
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "currency": "DKK",
- "revenue_group": "string"
}
]
}
account required | string (Account) Account code (ID from external system) |
collect_vat | boolean (Collect VAT) Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
product_pricing required | string or null <uuid> (Product pricing) |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
{- "account": "string",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "last_modified_date": "2019-08-24T14:15:22Z",
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "currency": "DKK",
- "revenue_group": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
curl --request GET \ --url https://app.fenerum.com/api/v1/draft-invoice-lines/products/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "last_modified_date": "2019-08-24T14:15:22Z",
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "currency": "DKK",
- "revenue_group": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
account required | string (Account) Account code (ID from external system) |
collect_vat | boolean (Collect VAT) Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
product_pricing required | string or null <uuid> (Product pricing) |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
{- "account": "string",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "last_modified_date": "2019-08-24T14:15:22Z",
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "currency": "DKK",
- "revenue_group": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
account required | string (Account) Account code (ID from external system) |
collect_vat | boolean (Collect VAT) Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
product_pricing required | string or null <uuid> (Product pricing) |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
{- "account": "string",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "include_in_next_renewal_invoice": true,
- "last_modified_date": "2019-08-24T14:15:22Z",
- "product_pricing": "eb9bff53-30f1-4db5-866e-271ebb1d091e",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "currency": "DKK",
- "revenue_group": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/draft-invoice-lines/products/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
account | string Filter using account code (External ID) |
date_from__lte | string Format: YYYY-MM-DD |
date_from__gte | string Format: YYYY-MM-DD |
date_to__lte | string Format: YYYY-MM-DD |
date_to__gte | string Format: YYYY-MM-DD |
last_modified_date__lte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_lte | string Format: YYYY-MM-DD |
last_modified_date__gte | string Format: YYYY-MM-DD |
last_modified_date__org_tz_gte | string Format: YYYY-MM-DD |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/draftinvoicelines/?account=SOME_STRING_VALUE&date_from__lte=SOME_STRING_VALUE&date_from__gte=SOME_STRING_VALUE&date_to__lte=SOME_STRING_VALUE&date_to__gte=SOME_STRING_VALUE&last_modified_date__lte=SOME_STRING_VALUE&last_modified_date__org_tz_lte=SOME_STRING_VALUE&last_modified_date__gte=SOME_STRING_VALUE&last_modified_date__org_tz_gte=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
account required | string (Account) Account code (ID from external system) |
description required | string (Description) [ 1 .. 256 ] characters |
vat_type required | string (VAT type) Enum: "physical" "services" "unknown" |
collect_vat | boolean (Collect vat) Default: true Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price required | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
revenue_group | string or null (Revenue group) Name of the Revenue Group (only if Revenue Group feature is enabled, also field is required then). |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
custom_fields | object (BaseInvoiceLineCustomFields) |
{- "account": "string",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
curl --request GET \ --url https://app.fenerum.com/api/v1/draftinvoicelines/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
account required | string (Account) Account code (ID from external system) |
description required | string (Description) [ 1 .. 256 ] characters |
vat_type required | string (VAT type) Enum: "physical" "services" "unknown" |
collect_vat | boolean (Collect vat) Default: true Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price required | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
revenue_group | string or null (Revenue group) Name of the Revenue Group (only if Revenue Group feature is enabled, also field is required then). |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
custom_fields | object (BaseInvoiceLineCustomFields) |
{- "account": "string",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
account required | string (Account) Account code (ID from external system) |
description required | string (Description) [ 1 .. 256 ] characters |
vat_type required | string (VAT type) Enum: "physical" "services" "unknown" |
collect_vat | boolean (Collect vat) Default: true Collect VAT if required - uncheck for VAT-free items like shipping costs (DK) |
date_from required | string <date> (Date from) |
date_to required | string <date> (Date to) |
price required | string <decimal> (Price) |
quantity required | string <decimal> (Quantity) |
discount_percentage | string or null <decimal> (Discount %) Must be greater than 0 and less than or equal to 100. Cannot be combined with other discounts |
discount_fixed_per_quantity | string or null <decimal> (Fixed discount per quantity) Must be greater than 0, and cannot be combined with other discounts |
discount_fixed_total | string or null <decimal> (Fixed discount total) Cannot be combined with other discounts |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
include_in_next_renewal_invoice | boolean (Include in next renewal invoice) Include as a line in the next subscription renewal invoice. |
revenue_group | string or null (Revenue group) Name of the Revenue Group (only if Revenue Group feature is enabled, also field is required then). |
reference_person | string (Reference person) <= 128 characters |
account_reference_person | string (Your reference) <= 128 characters |
po_number | string (PO number) <= 128 characters |
case_number | string (Case number) <= 128 characters |
invoice_supplement | string or null (Invoice supplement) Additional text that will be added to description on the invoice line. |
custom_fields | object (BaseInvoiceLineCustomFields) |
{- "account": "string",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { }
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "discount_percentage": "string",
- "discount_fixed_per_quantity": "string",
- "discount_fixed_total": "string",
- "currency": "DKK",
- "include_in_next_renewal_invoice": true,
- "revenue_group": "string",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Base Invoice Line. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/draftinvoicelines/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
created_date__lte | string Format: YYYY-MM-DDTHH:MM:SSZ |
created_date__gte | string Format: YYYY-MM-DDTHH:MM:SSZ |
updated_date__lte | string Format: YYYY-MM-DDTHH:MM:SSZ |
updated_date__gte | string Format: YYYY-MM-DDTHH:MM:SSZ |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/erp-lines/?created_date__lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&updated_date__lte=SOME_STRING_VALUE&updated_date__gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "type": "financial",
- "account_number": 0,
- "account_number_str": "string",
- "vat_code": "string",
- "contra_account_number": 0,
- "contra_account_number_str": "string",
- "contra_vat_code": "string",
- "currency": "DKK",
- "text": "string",
- "date": "2019-08-24",
- "amount": "string",
- "amount_default_currency": "string",
- "sync_status": "open",
- "voucher_id": -2147483648,
- "sync_time": "2019-08-24T14:15:22Z",
- "invoice_id": "string",
- "expense_id": "string",
- "transaction_id": "string",
- "supplier_invoice_id": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
]
}
id required | integer A unique integer value identifying this erp account line. |
curl --request GET \ --url https://app.fenerum.com/api/v1/erp-lines/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "type": "financial",
- "account_number": 0,
- "account_number_str": "string",
- "vat_code": "string",
- "contra_account_number": 0,
- "contra_account_number_str": "string",
- "contra_vat_code": "string",
- "currency": "DKK",
- "text": "string",
- "date": "2019-08-24",
- "amount": "string",
- "amount_default_currency": "string",
- "sync_status": "open",
- "voucher_id": -2147483648,
- "sync_time": "2019-08-24T14:15:22Z",
- "invoice_id": "string",
- "expense_id": "string",
- "transaction_id": "string",
- "supplier_invoice_id": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "updated_date": "2019-08-24T14:15:22Z",
- "model": "string",
- "schema": "string"
}
id required | integer A unique integer value identifying this erp account line. |
{ }
product_type | string |
is_active | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/products/?product_type=SOME_STRING_VALUE&is_active=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true,
- "product_pricings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
}
]
}
name required | string (Name) [ 1 .. 100 ] characters |
description | string (Description) Will be displayed under the name of Invoice Line |
revenue_group required | integer (Revenue group) |
product_type required | string (Product type) Enum: "goods" "services" |
is_active | boolean (Is active) |
{- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true,
- "product_pricings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
}
name required | string (Name) [ 1 .. 100 ] characters |
description | string (Description) Will be displayed under the name of Invoice Line |
revenue_group required | integer (Revenue group) |
product_type required | string (Product type) Enum: "goods" "services" |
is_active | boolean (Is active) |
{- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
name required | string (Name) [ 1 .. 100 ] characters |
description | string (Description) Will be displayed under the name of Invoice Line |
revenue_group required | integer (Revenue group) |
product_type required | string (Product type) Enum: "goods" "services" |
is_active | boolean (Is active) |
{- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this product. |
curl --request GET \ --url https://app.fenerum.com/api/v1/products/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true,
- "product_pricings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
}
uuid required | string <uuid> A UUID string identifying this product. |
name required | string (Name) [ 1 .. 100 ] characters |
description | string (Description) Will be displayed under the name of Invoice Line |
revenue_group required | integer (Revenue group) |
product_type required | string (Product type) Enum: "goods" "services" |
is_active | boolean (Is active) |
{- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true,
- "product_pricings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
}
uuid required | string <uuid> A UUID string identifying this product. |
name required | string (Name) [ 1 .. 100 ] characters |
description | string (Description) Will be displayed under the name of Invoice Line |
revenue_group required | integer (Revenue group) |
product_type required | string (Product type) Enum: "goods" "services" |
is_active | boolean (Is active) |
{- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "description": "string",
- "revenue_group": 0,
- "product_type": "goods",
- "is_active": true,
- "product_pricings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
}
uuid required | string <uuid> A UUID string identifying this product. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/products/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
string | |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/recipients/?email=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
]
}
account required | string <uuid> (Account) Account UUID for which recipient will be created. |
name required | string (Name) [ 1 .. 128 ] characters |
email required | string <email> (Email) [ 1 .. 254 ] characters |
receive_invoice required | boolean (Receive invoice) |
receive_payment_confirmation required | boolean (Receive payment confirmation) When checked, the recipient will receive a payment confirmation whenever a payment succeeds. This applies to all collection methods. |
receive_payment_card_notifications | boolean (Receive payment card notification) In order to send card expiry notifications you also need to enable it in the payments section of the integrations settings |
has_access_to_self_service | boolean (Has access to Self-Service) When checked, the recipient has access to Self-Service |
{- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
{ }
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this Recipient. |
curl --request GET \ --url https://app.fenerum.com/api/v1/recipients/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Recipient. |
account required | string <uuid> (Account) Account UUID for which recipient will be created. |
name required | string (Name) [ 1 .. 128 ] characters |
email required | string <email> (Email) [ 1 .. 254 ] characters |
receive_invoice required | boolean (Receive invoice) |
receive_payment_confirmation required | boolean (Receive payment confirmation) When checked, the recipient will receive a payment confirmation whenever a payment succeeds. This applies to all collection methods. |
receive_payment_card_notifications | boolean (Receive payment card notification) In order to send card expiry notifications you also need to enable it in the payments section of the integrations settings |
has_access_to_self_service | boolean (Has access to Self-Service) When checked, the recipient has access to Self-Service |
{- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Recipient. |
account required | string <uuid> (Account) Account UUID for which recipient will be created. |
name required | string (Name) [ 1 .. 128 ] characters |
email required | string <email> (Email) [ 1 .. 254 ] characters |
receive_invoice required | boolean (Receive invoice) |
receive_payment_confirmation required | boolean (Receive payment confirmation) When checked, the recipient will receive a payment confirmation whenever a payment succeeds. This applies to all collection methods. |
receive_payment_card_notifications | boolean (Receive payment card notification) In order to send card expiry notifications you also need to enable it in the payments section of the integrations settings |
has_access_to_self_service | boolean (Has access to Self-Service) When checked, the recipient has access to Self-Service |
{- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "account_code": "string",
- "name": "string",
- "email": "user@example.com",
- "receive_invoice": true,
- "receive_payment_confirmation": true,
- "receive_payment_card_notifications": true,
- "has_access_to_self_service": true,
- "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this Recipient. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/recipients/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
method | string |
type | string |
currency | string |
import_source | string |
invoice | string |
account | string Filter using account code (External ID) |
account_uuid | string Filter using account UUID |
is_loss | string |
is_settlement | string |
date__lte | string Format: YYYY-MM-DD |
date__gte | string Format: YYYY-MM-DD |
created_date__lte | string Format: YYYY-MM-DD |
created_date__org_tz_lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
created_date__org_tz_gte | string Format: YYYY-MM-DD |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/transactions/?method=SOME_STRING_VALUE&type=SOME_STRING_VALUE¤cy=SOME_STRING_VALUE&import_source=SOME_STRING_VALUE&invoice=SOME_STRING_VALUE&account=SOME_STRING_VALUE&account_uuid=SOME_STRING_VALUE&is_loss=SOME_STRING_VALUE&is_settlement=SOME_STRING_VALUE&date__lte=SOME_STRING_VALUE&date__gte=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__org_tz_lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&created_date__org_tz_gte=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "type": "payment",
- "method": "payment_card",
- "date": "2019-08-24",
- "amount": "string",
- "notes": "string",
- "currency": "DKK",
- "amount_in_default_currency": "string",
- "bank_account": 0,
- "bank_account_line": 0,
- "bank_account_amount": "string",
- "bank_account_currency": "DKK",
- "external_transaction_id": "string",
- "import_source": "manual",
- "created_date": "2019-08-24T14:15:22Z",
- "reverse_of": "166ec9b4-871b-4ade-94d3-5f95b4671052",
- "model": "string",
- "schema": "string"
}
]
}
object (MinimalAccount) | |
invoice required | string <uuid> (Invoice) |
date required | string <date> (Date) |
amount required | string <decimal> (Amount) |
notes required | string (Notes) non-empty |
bank_account required | integer (Bank account) |
{- "account": {
- "display_name": "string"
}, - "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24",
- "amount": "string",
- "notes": "string",
- "bank_account": 0
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "type": "payment",
- "method": "payment_card",
- "date": "2019-08-24",
- "amount": "string",
- "notes": "string",
- "currency": "DKK",
- "amount_in_default_currency": "string",
- "bank_account": 0,
- "bank_account_line": 0,
- "bank_account_amount": "string",
- "bank_account_currency": "DKK",
- "external_transaction_id": "string",
- "import_source": "manual",
- "created_date": "2019-08-24T14:15:22Z",
- "reverse_of": "166ec9b4-871b-4ade-94d3-5f95b4671052",
- "model": "string",
- "schema": "string"
}
object (MinimalAccount) | |
invoice required | string <uuid> (Invoice) |
date required | string <date> (Date) |
amount required | string <decimal> (Amount) |
notes required | string (Notes) non-empty |
bank_account required | integer (Bank account) |
{- "account": {
- "display_name": "string"
}, - "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24",
- "amount": "string",
- "notes": "string",
- "bank_account": 0
}
{- "export_id": "string",
- "job_uuid": "de25c4df-6d4e-439f-9d5f-a4c55d30f26e"
}
uuid required | string <uuid> A UUID string identifying this Transaction. |
curl --request GET \ --url https://app.fenerum.com/api/v1/transactions/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "type": "payment",
- "method": "payment_card",
- "date": "2019-08-24",
- "amount": "string",
- "notes": "string",
- "currency": "DKK",
- "amount_in_default_currency": "string",
- "bank_account": 0,
- "bank_account_line": 0,
- "bank_account_amount": "string",
- "bank_account_currency": "DKK",
- "external_transaction_id": "string",
- "import_source": "manual",
- "created_date": "2019-08-24T14:15:22Z",
- "reverse_of": "166ec9b4-871b-4ade-94d3-5f95b4671052",
- "model": "string",
- "schema": "string"
}
email required | string <email> (Email) non-empty |
{- "email": "user@example.com"
}
{
}
account | string Filter using account code (External ID) |
subscription_uuid | string Filter using Subscription UUID |
since | string Deprecated, one should use date_from. |
date__lte | string Filter using date from the Invoice Format: YYYY-MM-DD |
date__gte | string Filter using date from the Invoice Format: YYYY-MM-DD |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/invoicelines/?account=SOME_STRING_VALUE&subscription_uuid=SOME_STRING_VALUE&since=SOME_STRING_VALUE&date__lte=SOME_STRING_VALUE&date__gte=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
]
}
id required | integer A unique integer value identifying this Invoice Line. |
curl --request GET \ --url https://app.fenerum.com/api/v1/invoicelines/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "account": "string",
- "account_code": "string",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "description": "string",
- "vat_type": "physical",
- "collect_vat": true,
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "subtotal": "string",
- "vat": "string",
- "total": "string",
- "currency": "string",
- "imported_line": true,
- "refund_of": 0,
- "subscription": "da7489c5-d730-47b7-9958-07300ef9d3d8",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "sort_weight": -200,
- "draft_invoice_line_pk": "e2ca90b8-7081-4327-afde-603d8dd159bd",
- "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "revenue_group_id": 0,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/partners/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
], - "contract_id": 0,
- "contract": {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "model": "string",
- "schema": "string",
- "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
]
}
contract_id required | integer (Contract id) |
object (KickbackContract) | |
name required | string (Name) [ 1 .. 128 ] characters |
string or null <email> (Email) <= 254 characters | |
start_date required | string <date> (Start date) |
end_date | string or null <date> (End date) |
{- "contract_id": 0,
- "contract": {
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
{- "id": 0,
- "account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
], - "contract_id": 0,
- "contract": {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "model": "string",
- "schema": "string",
- "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
id required | integer A unique integer value identifying this partner. |
curl --request GET \ --url https://app.fenerum.com/api/v1/partners/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
], - "contract_id": 0,
- "contract": {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "model": "string",
- "schema": "string",
- "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
id required | integer A unique integer value identifying this partner. |
contract_id required | integer (Contract id) |
object (KickbackContract) | |
name required | string (Name) [ 1 .. 128 ] characters |
string or null <email> (Email) <= 254 characters | |
start_date required | string <date> (Start date) |
end_date | string or null <date> (End date) |
{- "contract_id": 0,
- "contract": {
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
{- "id": 0,
- "account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
], - "contract_id": 0,
- "contract": {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "model": "string",
- "schema": "string",
- "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
id required | integer A unique integer value identifying this partner. |
contract_id required | integer (Contract id) |
object (KickbackContract) | |
name required | string (Name) [ 1 .. 128 ] characters |
string or null <email> (Email) <= 254 characters | |
start_date required | string <date> (Start date) |
end_date | string or null <date> (End date) |
{- "contract_id": 0,
- "contract": {
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
{- "id": 0,
- "account_set": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}
], - "contract_id": 0,
- "contract": {
- "id": 0,
- "terms": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
], - "rules": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
], - "model": "string",
- "schema": "string",
- "name": "string",
- "include_upgrades": true,
- "indefinite": true,
- "duration_amount": -2147483648,
- "duration_unit": "month",
- "percentage_rule_type": "billing.flatpercentagerule"
}, - "model": "string",
- "schema": "string",
- "name": "string",
- "email": "user@example.com",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24"
}
id required | integer A unique integer value identifying this partner. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/partners/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
id required | integer A unique integer value identifying this partner. |
start_date | string Default: "Today's date" Which date should be taken as base for calculcation |
end_date | string Default: "Today's date" Which date should be taken as base for calculcation |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/partners/%7Bid%7D/kickback/?start_date=Today'\''s%20date&end_date=Today'\''s%20date' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "kickbacks": [
- {
- "amount": 0,
- "currency": "DKK"
}
], - "invoice_lines": [
- {
- "id": 0,
- "invoice": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "invoice_api_url": "string",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "collection_method": "payment_card",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "model": "string",
- "schema": "string"
}, - "description": "string",
- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "price": "string",
- "quantity": "string",
- "currency": "string",
- "refund_of": 0,
- "subscription": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "account": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "display_name": "string",
- "company_name": "string",
- "code": "string",
- "type": "company",
- "model": "string",
- "schema": "string"
}, - "terms": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}, - "plan": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical",
- "model": "string",
- "schema": "string"
}, - "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "original_start_date": "2019-08-24T14:15:22Z",
- "quantity": 2147483647,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "effective_payment_terms": "string",
- "pre_renewal_days_offset": 32767,
- "po_number": "string",
- "invoice_supplement": "string",
- "override_price": "string",
- "reference_person": "string",
- "account_reference_person": "string",
- "case_number": "string",
- "status": "active",
- "current_mrr": "string",
- "committed_mrr": "string",
- "final_price": "string",
- "churn_reason": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "is_active": true,
- "model": "string",
- "schema": "string"
}, - "custom_churn_reason": "string",
- "custom_fields": { },
- "model": "string",
- "schema": "string"
}, - "model": "string",
- "schema": "string"
}
]
}
curl --request GET \ --url https://app.fenerum.com/api/v1/products/%7Bproduct_uuid%7D/pricings/ \ --header 'Authorization: REPLACE_KEY_VALUE'
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
]
product_uuid required | string |
price required | string <decimal> (Price) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
is_active | boolean (Is active) |
{- "price": "string",
- "currency": "DKK",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
product_uuid required | string |
uuid required | string <uuid> A UUID string identifying this product pricing. |
curl --request GET \ --url https://app.fenerum.com/api/v1/products/%7Bproduct_uuid%7D/pricings/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
product_uuid required | string |
uuid required | string <uuid> A UUID string identifying this product pricing. |
price required | string <decimal> (Price) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
is_active | boolean (Is active) |
{- "price": "string",
- "currency": "DKK",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
product_uuid required | string |
uuid required | string <uuid> A UUID string identifying this product pricing. |
price required | string <decimal> (Price) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
is_active | boolean (Is active) |
{- "price": "string",
- "currency": "DKK",
- "is_active": true
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "price": "string",
- "currency": "DKK",
- "is_active": true
}
product_uuid required | string |
uuid required | string <uuid> A UUID string identifying this product pricing. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/products/%7Bproduct_uuid%7D/pricings/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/revenuegroup/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164",
- "model": "string",
- "schema": "string"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320",
- "model": "string",
- "schema": "string"
}
]
}
name required | string (Name) [ 1 .. 100 ] characters |
required | Array of objects (RevenueGroupCountry) [ items ] |
default_revenue_account_eu | string or null <uuid> (Revenue account for EU clients) |
default_revenue_account_eu_vat_exempt | string or null <uuid> (Revenue account for EU VAT-exempt clients) In most cases, you could use the same account that you use for domestic sales |
default_revenue_account | string or null <uuid> (Revenue account for clients from the rest of the world) |
{- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320"
}
{- "id": 0,
- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164",
- "model": "string",
- "schema": "string"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320",
- "model": "string",
- "schema": "string"
}
id required | integer A unique integer value identifying this Revenue Group. |
curl --request GET \ --url https://app.fenerum.com/api/v1/revenuegroup/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164",
- "model": "string",
- "schema": "string"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320",
- "model": "string",
- "schema": "string"
}
id required | integer A unique integer value identifying this Revenue Group. |
name required | string (Name) [ 1 .. 100 ] characters |
required | Array of objects (RevenueGroupCountry) [ items ] |
default_revenue_account_eu | string or null <uuid> (Revenue account for EU clients) |
default_revenue_account_eu_vat_exempt | string or null <uuid> (Revenue account for EU VAT-exempt clients) In most cases, you could use the same account that you use for domestic sales |
default_revenue_account | string or null <uuid> (Revenue account for clients from the rest of the world) |
{- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320"
}
{- "id": 0,
- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164",
- "model": "string",
- "schema": "string"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320",
- "model": "string",
- "schema": "string"
}
id required | integer A unique integer value identifying this Revenue Group. |
name required | string (Name) [ 1 .. 100 ] characters |
required | Array of objects (RevenueGroupCountry) [ items ] |
default_revenue_account_eu | string or null <uuid> (Revenue account for EU clients) |
default_revenue_account_eu_vat_exempt | string or null <uuid> (Revenue account for EU VAT-exempt clients) In most cases, you could use the same account that you use for domestic sales |
default_revenue_account | string or null <uuid> (Revenue account for clients from the rest of the world) |
{- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320"
}
{- "id": 0,
- "name": "string",
- "revenuegroupcountry_set": [
- {
- "country": "AF",
- "revenue_account": "7dde5e0b-18dd-4df2-9f03-d20d863c3164",
- "model": "string",
- "schema": "string"
}
], - "default_revenue_account_eu": "f9583bcc-541a-4159-b188-3eceb6c658e8",
- "default_revenue_account_eu_vat_exempt": "f8577732-8caf-4d88-ad11-4f43a9ec05bd",
- "default_revenue_account": "e423f4ec-f607-4f5a-9676-bb4746c9b320",
- "model": "string",
- "schema": "string"
}
id required | integer A unique integer value identifying this Revenue Group. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/revenuegroup/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/kickback/rules/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
]
}
percentage | string <decimal> (Percentage) |
succession_position | integer (Invoice order) [ -2147483648 .. 2147483647 ] |
mrr_value | integer (Minimal MRR Value) [ -2147483648 .. 2147483647 ] |
{- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
{- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
id required | integer A unique integer value identifying this kickback percentage rule. |
curl --request GET \ --url https://app.fenerum.com/api/v1/kickback/rules/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
id required | integer A unique integer value identifying this kickback percentage rule. |
percentage | string <decimal> (Percentage) |
succession_position | integer (Invoice order) [ -2147483648 .. 2147483647 ] |
mrr_value | integer (Minimal MRR Value) [ -2147483648 .. 2147483647 ] |
{- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
{- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
id required | integer A unique integer value identifying this kickback percentage rule. |
percentage | string <decimal> (Percentage) |
succession_position | integer (Invoice order) [ -2147483648 .. 2147483647 ] |
mrr_value | integer (Minimal MRR Value) [ -2147483648 .. 2147483647 ] |
{- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
{- "id": 0,
- "description": "string",
- "model": "string",
- "schema": "string",
- "type": "billing.flatpercentagerule",
- "percentage": "string",
- "succession_position": -2147483648,
- "mrr_value": -2147483648
}
currency | string |
approved | string |
status | string |
pending_match | string |
verified | string |
document_date__lte | string Format: YYYY-MM-DD |
document_date__gte | string Format: YYYY-MM-DD |
created_date__lte | string Format: YYYY-MM-DD |
created_date__org_tz_lte | string Format: YYYY-MM-DD |
created_date__gte | string Format: YYYY-MM-DD |
created_date__org_tz_gte | string Format: YYYY-MM-DD |
pending_approval | string |
pending_payment | string |
payment_scheduled | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/supplier-invoices/?currency=SOME_STRING_VALUE&approved=SOME_STRING_VALUE&status=SOME_STRING_VALUE&pending_match=SOME_STRING_VALUE&verified=SOME_STRING_VALUE&document_date__lte=SOME_STRING_VALUE&document_date__gte=SOME_STRING_VALUE&created_date__lte=SOME_STRING_VALUE&created_date__org_tz_lte=SOME_STRING_VALUE&created_date__gte=SOME_STRING_VALUE&created_date__org_tz_gte=SOME_STRING_VALUE&pending_approval=SOME_STRING_VALUE&pending_payment=SOME_STRING_VALUE&payment_scheduled=SOME_STRING_VALUE&ordering=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": 0,
- "status": "unmatched",
- "document_date": "2019-08-24",
- "amount": "string",
- "currency": "DKK",
- "supplier": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "legal_vat_number": "string",
- "legal_country": "AF",
- "default_cost_account": "d95e1ce1-1a2a-41f0-ad5c-e45062191abd",
- "default_payment_identifier": "IBAN",
- "default_payment_account": "string",
- "model": "string",
- "schema": "string"
}, - "supplier_receipt_number": "string",
- "cost_account": "string",
- "note": "string",
- "file_url": "string",
- "verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
- "verified_by_for_display": "string",
- "verified_on": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_by_for_display": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "matched_expenses_amount": "string",
- "matched_expenses_remaining_amount": "string",
- "expense_set": [
- {
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_display": "string",
- "invoice_amount": "string",
- "invoice_currency": "DKK",
- "bank_account_line_date": "string",
- "expense_type_display": "string",
- "receipt_url": "string",
- "model": "string",
- "schema": "string"
}
], - "costs": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "amount": "string",
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_for_display": "string"
}
], - "senders_email": "user@example.com",
- "original_filename": "string",
- "model": "string",
- "schema": "string",
- "document_type_label": "string",
- "due_date": "2019-08-24",
- "payment_identifier": "IBAN",
- "payment_account": "string",
- "payment_scheduled": true,
- "approved": true,
- "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",
- "approved_on": "2019-08-24T14:15:22Z",
- "approved_by_for_display": "string"
}
]
}
curl --request GET \ --url https://app.fenerum.com/api/v1/supplier-invoices/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": 0,
- "status": "unmatched",
- "document_date": "2019-08-24",
- "amount": "string",
- "currency": "DKK",
- "supplier": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "legal_vat_number": "string",
- "legal_country": "AF",
- "default_cost_account": "d95e1ce1-1a2a-41f0-ad5c-e45062191abd",
- "default_payment_identifier": "IBAN",
- "default_payment_account": "string",
- "model": "string",
- "schema": "string"
}, - "supplier_receipt_number": "string",
- "cost_account": "string",
- "note": "string",
- "file_url": "string",
- "verified_by": "8c493be0-efe2-4a3e-bdbd-7af0eab50aa2",
- "verified_by_for_display": "string",
- "verified_on": "2019-08-24T14:15:22Z",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_by_for_display": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "matched_expenses_amount": "string",
- "matched_expenses_remaining_amount": "string",
- "expense_set": [
- {
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_display": "string",
- "invoice_amount": "string",
- "invoice_currency": "DKK",
- "bank_account_line_date": "string",
- "expense_type_display": "string",
- "receipt_url": "string",
- "model": "string",
- "schema": "string"
}
], - "costs": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "amount": "string",
- "cost_account": "1e6d13a4-88d1-4e89-9559-0ac7b449f1cb",
- "cost_account_for_display": "string"
}
], - "senders_email": "user@example.com",
- "original_filename": "string",
- "model": "string",
- "schema": "string",
- "document_type_label": "string",
- "due_date": "2019-08-24",
- "payment_identifier": "IBAN",
- "payment_account": "string",
- "payment_scheduled": true,
- "approved": true,
- "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",
- "approved_on": "2019-08-24T14:15:22Z",
- "approved_by_for_display": "string"
}
plan_identifier required | string |
code | string |
Lookup-Field | string Name of field used as resource identifiers. Possible values: uuid, code |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/plans/%7Bplan_identifier%7D/terms/?code=SOME_STRING_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE' \ --header 'Lookup-Field: SOME_STRING_VALUE'
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
]
plan_identifier required | string |
Lookup-Field | string Name of field used as resource identifiers. Possible values: uuid, code |
code | string or null (Custom ID from external system) <= 128 characters ID from external system. If you don't have one you can just put any unique value here by which you will be able to reference this object on other items. |
interval_type required | string (Interval type) Enum: "day" "month" "year" |
interval_count required | integer (Interval count) [ 1 .. 2147483647 ] |
price required | string <decimal> (Price) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
backwards_charging | boolean (Backwards charging) |
active | boolean (Active) |
revenue_group | string or null (Revenue group) Name of the Revenue Group (only if Revenue Group feature is enabled, also field is required then). |
{- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
identifier required | string |
plan_identifier required | string |
Lookup-Field | string Name of field used as resource identifiers. Possible values: uuid, code |
curl --request GET \ --url https://app.fenerum.com/api/v1/plans/%7Bplan_identifier%7D/terms/%7Bidentifier%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE' \ --header 'Lookup-Field: SOME_STRING_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
identifier required | string |
plan_identifier required | string |
Lookup-Field | string Name of field used as resource identifiers. Possible values: uuid, code |
code | string or null (Custom ID from external system) <= 128 characters ID from external system. If you don't have one you can just put any unique value here by which you will be able to reference this object on other items. |
interval_type required | string (Interval type) Enum: "day" "month" "year" |
interval_count required | integer (Interval count) [ 1 .. 2147483647 ] |
price required | string <decimal> (Price) |
currency required | string (Currency) Enum: "DKK" "EUR" "USD" "GBP" "NZD" "CHF" "PLN" "SEK" "NOK" "ISK" "AUD" "CAD" "CZK" |
active | boolean (Active) |
revenue_group | string or null (Revenue group) Name of the Revenue Group (only if Revenue Group feature is enabled, also field is required then). |
{- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "active": true,
- "revenue_group": "string"
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "revenue_group": "string",
- "model": "string",
- "schema": "string"
}
code required | string |
contract_pk required | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/%7Bcontract_pk%7D/tiers/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
]
}
code required | string |
contract_pk required | string |
minimum_quantity required | integer (Minimum quantity) [ -2147483648 .. 2147483647 ] Apply the discount only when client buys at least that many licenses. |
maximum_quantity | integer (Maximum quantity) [ -2147483648 .. 2147483647 ] Apply the discount at max to that many licenses. 0 means unlimited. |
discount | string <decimal> (Discount) |
discount_type | string (Discount type) Enum: "percent" "flat" |
overall_flat_discount | string <decimal> (Fixed total discount) |
only_apply_to_quantity_above_minimal | boolean (Apply only to quantity within range) This field signifies if the tier applies to all of subscription's quantity (False) up to maximum quantity or only to the quantity between minimum quantity and maximum quantity, both ends included (True) |
{- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true
}
{- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
code required | string |
contract_pk required | string |
id required | integer A unique integer value identifying this Contract Tier. |
curl --request GET \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/%7Bcontract_pk%7D/tiers/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
code required | string |
contract_pk required | string |
id required | integer A unique integer value identifying this Contract Tier. |
minimum_quantity required | integer (Minimum quantity) [ -2147483648 .. 2147483647 ] Apply the discount only when client buys at least that many licenses. |
maximum_quantity | integer (Maximum quantity) [ -2147483648 .. 2147483647 ] Apply the discount at max to that many licenses. 0 means unlimited. |
discount | string <decimal> (Discount) |
discount_type | string (Discount type) Enum: "percent" "flat" |
overall_flat_discount | string <decimal> (Fixed total discount) |
only_apply_to_quantity_above_minimal | boolean (Apply only to quantity within range) This field signifies if the tier applies to all of subscription's quantity (False) up to maximum quantity or only to the quantity between minimum quantity and maximum quantity, both ends included (True) |
{- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true
}
{- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
code required | string |
contract_pk required | string |
id required | integer A unique integer value identifying this Contract Tier. |
minimum_quantity required | integer (Minimum quantity) [ -2147483648 .. 2147483647 ] Apply the discount only when client buys at least that many licenses. |
maximum_quantity | integer (Maximum quantity) [ -2147483648 .. 2147483647 ] Apply the discount at max to that many licenses. 0 means unlimited. |
discount | string <decimal> (Discount) |
discount_type | string (Discount type) Enum: "percent" "flat" |
overall_flat_discount | string <decimal> (Fixed total discount) |
only_apply_to_quantity_above_minimal | boolean (Apply only to quantity within range) This field signifies if the tier applies to all of subscription's quantity (False) up to maximum quantity or only to the quantity between minimum quantity and maximum quantity, both ends included (True) |
{- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true
}
{- "id": 0,
- "minimum_quantity": -2147483648,
- "maximum_quantity": -2147483648,
- "discount": "string",
- "discount_type": "percent",
- "overall_flat_discount": "string",
- "only_apply_to_quantity_above_minimal": true,
- "model": "string",
- "schema": "string"
}
code required | string |
contract_pk required | string |
id required | integer A unique integer value identifying this Contract Tier. |
curl --request DELETE \ --url https://app.fenerum.com/api/v1/accounts/%7Bcode%7D/contracts/%7Bcontract_pk%7D/tiers/%7Bid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
A webhook is a custom callback that can be leveraged to be notified of events in Fenerum. If we dont't receive a 2xx response from your endpoint we will retry the webhook up to 4 times (5 calls in total). The retries are spread randomly; first one comes after 5 minutes and the last one can come up to 55 hours after the initial webhook call. If all of the retried responses were unsuccessful we consider this webhook event failed. If at any time you reach 10 consecutive failed webhook events (in the above meaning) we will automatically disable that webhook. You can read about specific callbacks here.
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
curl --request GET \ --url 'https://app.fenerum.com/api/v1/webhooks/?page=SOME_INTEGER_VALUE&page_size=SOME_INTEGER_VALUE' \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "count": 0,
- "results": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
], - "model": "string",
- "schema": "string"
}
]
}
endpoint required | string <uri> (Endpoint) non-empty |
basic_auth_username | string or null (Basic auth username) <= 128 characters |
basic_auth_password | string or null (Basic auth password) <= 128 characters |
enabled | boolean (Enabled) |
events | Array of strings (Events) Items Enum: "account.updated" "account.created" "plan_terms.updated" "plan_terms.created" "new_invoice" "paid_invoice" "cancel_subscription" "reactivate_subscription" "renew_subscription_soon" "new_activity" "payment.authentication_required" "payment.declined" "card_expires_this_month" "payment_card.activated" "payment_card.deactivated" |
{- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
]
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
], - "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this webhook. |
curl --request GET \ --url https://app.fenerum.com/api/v1/webhooks/%7Buuid%7D/ \ --header 'Authorization: REPLACE_KEY_VALUE'
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
], - "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this webhook. |
endpoint required | string <uri> (Endpoint) non-empty |
basic_auth_username | string or null (Basic auth username) <= 128 characters |
basic_auth_password | string or null (Basic auth password) <= 128 characters |
enabled | boolean (Enabled) |
events | Array of strings (Events) Items Enum: "account.updated" "account.created" "plan_terms.updated" "plan_terms.created" "new_invoice" "paid_invoice" "cancel_subscription" "reactivate_subscription" "renew_subscription_soon" "new_activity" "payment.authentication_required" "payment.declined" "card_expires_this_month" "payment_card.activated" "payment_card.deactivated" |
{- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
]
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
], - "model": "string",
- "schema": "string"
}
uuid required | string <uuid> A UUID string identifying this webhook. |
endpoint required | string <uri> (Endpoint) non-empty |
basic_auth_username | string or null (Basic auth username) <= 128 characters |
basic_auth_password | string or null (Basic auth password) <= 128 characters |
enabled | boolean (Enabled) |
events | Array of strings (Events) Items Enum: "account.updated" "account.created" "plan_terms.updated" "plan_terms.created" "new_invoice" "paid_invoice" "cancel_subscription" "reactivate_subscription" "renew_subscription_soon" "new_activity" "payment.authentication_required" "payment.declined" "card_expires_this_month" "payment_card.activated" "payment_card.deactivated" |
{- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
]
}
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "basic_auth_username": "string",
- "basic_auth_password": "string",
- "enabled": true,
- "events": [
- "account.updated"
], - "model": "string",
- "schema": "string"
}
Here you can read about the payloads that are sent with webhook callbacks. Each request will be sent to the url specified in the endpoint
field.
event | string (Event) non-empty Default: "account.created" |
object (Account) |
{- "event": "account.created",
- "data": {
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
}
event | string (Event) non-empty Default: "account.updated" |
object (Account) |
{- "event": "account.updated",
- "data": {
- "company_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "title": "mr",
- "gender": "male",
- "code": "string",
- "erp_id": "string",
- "partner": 0,
- "ean_invoicing": true,
- "einvoicing_identifier_schema": "GLN",
- "ean_number": "string",
- "invoice_note": "string",
- "language": "en",
- "legal_address": "string",
- "legal_zipcode": "string",
- "legal_city": "string",
- "legal_country": "AF",
- "legal_vat_number": "string",
- "billing_same_as_legal": true,
- "billing_address": "string",
- "billing_zipcode": "string",
- "billing_city": "string",
- "billing_country": "AF",
- "update_from_registers": true,
- "default_payment_terms": -2147483648,
- "default_collection_method": "payment_card",
- "is_getting_reminders": true,
- "reseller": "16bab917-518b-4590-b8d5-48af7a327279",
- "reseller_code": "string",
- "reseller_billing_frequency": "daily",
- "reseller_billing_grouping": "currency",
- "type": "company",
- "custom_fields": { }
}
}
event | string (Event) non-empty Default: "plan_terms.created" |
object (WebhookPlanTerms) |
{- "event": "plan_terms.created",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "plan_uuid": "051b398d-fe45-4274-8e3c-35f1a307183f",
- "plan_name": "string",
- "plan_code": "string",
- "plan_description": "string",
- "plan_collect_vat": true,
- "plan_vat_type": "string",
- "model": "string",
- "schema": "string"
}
}
event | string (Event) non-empty Default: "plan_terms.updated" |
object (WebhookPlanTerms) |
{- "event": "plan_terms.updated",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "code": "string",
- "interval_type": "day",
- "interval_count": 1,
- "price": "string",
- "currency": "DKK",
- "backwards_charging": true,
- "active": true,
- "plan_uuid": "051b398d-fe45-4274-8e3c-35f1a307183f",
- "plan_name": "string",
- "plan_code": "string",
- "plan_description": "string",
- "plan_collect_vat": true,
- "plan_vat_type": "string",
- "model": "string",
- "schema": "string"
}
}
event | string (Event) non-empty Default: "new_invoice" |
object (WebhookInvoice) |
{- "event": "new_invoice",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "display_name": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "model": "string",
- "schema": "string"
}
}
event | string (Event) non-empty Default: "paid_invoice" |
object (WebhookInvoice) |
{- "event": "paid_invoice",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "invoice_number": 0,
- "invoice_api_url": "string",
- "account_uuid": "string",
- "account_code": "string",
- "account": {
- "display_name": "string"
}, - "pay_to_bank_account": 0,
- "date": "2019-08-24",
- "due_date": "2019-08-24",
- "currency": "DKK",
- "status": "open",
- "kickback_status": "commission_pending",
- "collection_method": "payment_card",
- "total": "string",
- "subtotal": "string",
- "vat": "string",
- "model": "string",
- "schema": "string"
}
}
event | string (Event) non-empty Default: "cancel_subscription" |
object (WebhookSubscription) |
{- "event": "cancel_subscription",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "terms_uuid": "ed96b811-7c37-4e2f-8ce5-c3f19f35dfc7",
- "plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "status": "string",
- "model": "string",
- "schema": "string",
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "quantity": -2147483648,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "override_price": "string",
- "pre_renewal_days_offset": 32767,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
}
event | string (Event) non-empty Default: "reactivate_subscription" |
object (WebhookSubscription) |
{- "event": "reactivate_subscription",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "terms_uuid": "ed96b811-7c37-4e2f-8ce5-c3f19f35dfc7",
- "plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "status": "string",
- "model": "string",
- "schema": "string",
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "quantity": -2147483648,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "override_price": "string",
- "pre_renewal_days_offset": 32767,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
}
event | string (Event) non-empty Default: "renew_subscription_soon" |
object (WebhookSubscription) |
{- "event": "renew_subscription_soon",
- "data": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "account_uuid": "847548f7-9cde-4fe5-8751-32ff19825b7e",
- "account_code": "6097a4f5-935a-4a3b-87a0-f379ae15fc06",
- "terms_uuid": "ed96b811-7c37-4e2f-8ce5-c3f19f35dfc7",
- "plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "status": "string",
- "model": "string",
- "schema": "string",
- "custom_fields": { },
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "custom_churn_reason": "string",
- "next_renewal_date": "2019-08-24T14:15:22Z",
- "last_renewal_date": "2019-08-24T14:15:22Z",
- "base_renewal_date": "2019-08-24T14:15:22Z",
- "quantity": -2147483648,
- "collection_method": "payment_card",
- "group_on_invoice": true,
- "payment_terms": -2147483648,
- "override_price": "string",
- "pre_renewal_days_offset": 32767,
- "reference_person": "string",
- "account_reference_person": "string",
- "po_number": "string",
- "case_number": "string",
- "invoice_supplement": "string",
- "created_date": "2019-08-24T14:15:22Z",
- "last_modified_date": "2019-08-24T14:15:22Z",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12",
- "terms": "631338da-a0b5-4ef0-90ce-ca16c76d475c",
- "churn_reason": "b06e9988-1cd3-4228-a984-64110b49a9ec"
}
}
event | string (Event) non-empty Default: "new_activity" |
object (Activity) |
{- "event": "new_activity",
- "data": {
- "account_uuid": "string",
- "account_code": "string",
- "subscription": "string",
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24T14:15:22Z",
- "type": "new",
- "is_manual": true,
- "is_churn": true,
- "old_currency": "DKK",
- "new_currency": "DKK",
- "old_mrr_in_subscription_currency": "string",
- "new_mrr_in_subscription_currency": "string",
- "old_mrr": "string",
- "new_mrr": "string",
- "old_quantity": -2147483648,
- "new_quantity": -2147483648,
- "old_terms": "ad992289-ddca-4bb6-ad6d-d633bfc37629",
- "new_terms": "7f43d5df-307a-4725-a28d-3e5b9b27e92e",
- "old_terms_name": "string",
- "new_terms_name": "string",
- "old_plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "new_plan": {
- "name": "string",
- "code": "string",
- "collect_vat": true,
- "vat_type": "physical"
}, - "old_plan_name": "string",
- "new_plan_name": "string",
- "company_name": "string",
- "ean_invoice": true,
- "deleted": true
}
}
event | string (Event) non-empty Default: "payment.declined" |
object (WebhookCardPayment) |
{- "event": "payment.declined",
- "data": {
- "type": "billing.cardpayment",
- "reason": "string",
- "reason_code": "auth_required",
- "payment_status": "scheduled",
- "amount": "string",
- "amount_in_default_currency": "string",
- "invoice": "f5072b7b-65cb-48aa-bf69-c999195da70c",
- "date": "2019-08-24",
- "currency": "DKK",
- "payment_card_id": "string",
- "data": { },
- "model": "string",
- "schema": "string"
}
}
event | string (Event) non-empty Default: "card_expires_this_month" |
object (PaymentCard) |
{- "event": "card_expires_this_month",
- "data": {
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12"
}
}
event | string (Event) non-empty Default: "payment_card.activated" |
object (PaymentCard) |
{- "event": "payment_card.activated",
- "data": {
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12"
}
}
event | string (Event) non-empty Default: "payment_card.deactivated" |
object (PaymentCard) |
{- "event": "payment_card.deactivated",
- "data": {
- "brand": "string",
- "card_number": "string",
- "month": -2147483648,
- "year": -2147483648,
- "name": "string",
- "payment_gateway": "stripe",
- "payment_gateway_id": "string",
- "account": "f5b54a51-a98c-44cf-bb68-a676332e7d12"
}
}