This is the API documentation for Xipmo.cloud With this API you can use all functions on Xipmo.cloud. ########################################################################### # # # -> The API may only be used with consent to the terms of service ! <- # # # ########################################################################### Main access URL: https://api.xipmo.cloud The structure is as follows: - main module - module - sub module - action INPUT * variable 1 (* = required) - variable 2 OUTPUT - result 1 - result 2 ERROR - error 1 - error 2 The API includes the following api fields, except in successful top-level list responses, HTML responses, redirects and file downloads: API - time: current timestamp in unix time STATUS - ok (true): request completed without an error ERROR (GLOBAL) - main database server unavailable: the master database is currently not available - sub database server unavailable: the sub database is currently not available - no valid input data: please fill out all required fields - endpoint not found: endpoint does not exist - internal server error: unknown server error - invalid session: no valid or expired session - no permission: you have no permission - too many api requests in 1 minute: you have reached the maximum api access count in 1 minute - too many api requests in 15 minutes: you have reached the maximum api access count in 15 minutes - no warehouse selected: you must select a warehouse first Global accepted variables are: - session_id: session ID - session_hash: hash for the session Modules and actions marked with * require a valid session, including all child actions. Here is the full documentation: - usermanager - captcha - create INPUT * HTTP method: POST * purpose: login or register - X-Captcha-Client-IP (HTTP header): original client IP when forwarded by the website; accepted only with a valid X-Website-Api-Key header; use the same client IP for the following registration or login OUTPUT - captcha_id: 64-character hexadecimal challenge ID - image: PNG image as a data:image/png;base64,... URL - expires_at: Unix timestamp at which the challenge expires, 180 seconds after creation; each challenge permits one verification attempt - retry_after: remaining pause in integer seconds with HTTP 429; the Retry-After header contains the same value ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid captcha purpose: HTTP 400; purpose must be login or register - invalid captcha client: HTTP 400; client IP is missing or invalid - too many captcha requests: HTTP 429; maximum 10 challenges per minute and 30 per 15 minutes for one client, shared by login and registration - register INPUT * HTTP method: POST * X-Website-Api-Key (HTTP header): valid API key of the XIPMO main website * email: e-mail address of the user * password: password for user account, min 6 characters, special characters allowed * tos: true for accepting terms of service * captcha_id: unused challenge ID created with purpose register * captcha_answer: six characters from A-Z, a-z and 0-9 shown in the image; case-sensitive - X-Captcha-Client-IP (HTTP header): same original client IP as used for the challenge when forwarded by the website OUTPUT - success (true): please verify your e-mail, a link has been send ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid captcha: HTTP 400; missing, incorrect, expired, consumed or mismatched challenge; request a new image before retrying - no permission: API key header is missing or invalid - email in use: e-mail address already registered - no valid email: e-mail address is not in valid format - tos not accepted: terms of service not accepted - password too short: the input password is too short - email - verify INPUT * user_id: user id * verification_key: verification key which is send by e-mail OUTPUT - redirection to success site ERROR - redirection to error site - password - forgot INPUT * X-Website-Api-Key (HTTP header): valid API key of the XIPMO main website * email: e-mail address of the user OUTPUT - success (true): if the e-mail address is registered, verified and no reset was requested in the last 24 hours, a password reset link has been sent ERROR - no permission: API key header is missing or invalid - no valid email: e-mail address is not in valid format - reset INPUT * token: password reset token from e-mail link; required for GET and POST - password: new password, min 6 characters, special characters allowed; required for POST - password_confirm: repeat new password; required for POST OUTPUT - HTML form for GET requests, reset link is valid for 60 minutes - HTML success page after password change; all active sessions expire, active TOTP remains enabled and an unconfirmed TOTP setup is discarded ERROR - HTML error page for invalid or expired reset links - session - create INPUT * HTTP method: POST * email: e-mail address of the user * password: password for the user * tos: true for accepting terms of service * captcha_id: unused challenge ID created with purpose login; omitted when using captcha_token * captcha_answer: six characters from A-Z, a-z and 0-9 shown in the image; case-sensitive; omitted when using captcha_token - name: name for this session; names containing "xipmo" require a valid X-Website-Api-Key header - expire: integer Unix timestamp for the session to expire, from the current time through 365 days ahead; default: 14 days - totp_code: required when TOTP is enabled; six-digit string with leading zeroes preserved, SHA1 and 30-second steps with one step of clock drift in either direction; each step can be used only once, including the enable confirmation code - captcha_token: one-use continuation from totp_required, accepted only with a nonempty totp_code and unchanged original login fields; replaces captcha_id and captcha_answer - X-Captcha-Client-IP (HTTP header): same original client IP as used for the challenge when forwarded by the website; accepted only with a valid X-Website-Api-Key header OUTPUT - id: id for the session, only after all required factors have been verified - hash: hash for the session, only after all required factors have been verified - totp_required (true): password and CAPTCHA are correct but TOTP is still required; repeat the original login fields with totp_code and captcha_token; no session or id/hash is created and previous failures are not cleared - captcha_token: one-use continuation returned with totp_required - captcha_expires_at: Unix timestamp at which captcha_token expires; retains the original challenge expiry - retry_after: remaining pause in integer seconds, returned only with HTTP 429; the HTTP Retry-After header contains the same value ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid captcha: HTTP 400; missing, incorrect, expired, consumed or mismatched challenge or continuation; request a new image after a failed login or TOTP attempt - invalid data: invalid e-mail, password, expire value or TOTP code, including an already used code - too many login attempts: HTTP 429; password and TOTP failures share three failures followed by a 900-second pause; a website API key bypasses neither TOTP nor this pause - tos not accepted: terms of service not accepted - email not verified: please verify your e-mail address - reserved session name: session names containing "xipmo" require a valid X-Website-Api-Key header - list * INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id for the session - name: name for the session - warehouse_id: selected warehouse id of the session - time_created: creation date of the session - time_expire: expire date of the session ERROR - delete * INPUT * id: id for the session OUTPUT - success (true): session deleted ERROR - already expired: session already expired - id not found: session id does not exist or does not belong to you - totp - show * INPUT OUTPUT - enabled: true when TOTP is active - pending: true when an unconfirmed setup is still valid ERROR - setup * INPUT * HTTP method: POST * password: current account password OUTPUT - secret: Base32 setup key for manual entry into an authenticator app; replaces a previous unconfirmed setup and becomes active only after enable - otpauth_uri: provisioning URI for local QR-code rendering - expires_at: Unix timestamp at which this unconfirmed setup expires, 600 seconds after setup - issuer: Xipmo.cloud - algorithm: SHA1 - digits: 6 - period: 30 seconds ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid data: invalid password - too many login attempts: HTTP 429 with retry_after and Retry-After; shares the login limit of three failures and a 900-second pause - totp already enabled: disable the current factor before starting a new setup - enable * INPUT * HTTP method: POST * password: current account password * totp_code: six-digit string from the authenticator app, preserving leading zeroes OUTPUT - success (true): TOTP enabled; the confirmation code is consumed and other sessions expire while the current session remains valid - enabled (true) ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid data: invalid password or TOTP code - too many login attempts: HTTP 429 with retry_after and Retry-After; shares the login limit of three failures and a 900-second pause - totp already enabled: TOTP is already active - totp setup required: request a setup first - totp setup expired: request a new setup - disable * INPUT * HTTP method: POST * password: current account password * totp_code: unused six-digit string from the current authenticator app OUTPUT - success (true): TOTP disabled; other sessions expire while the current session remains valid - enabled (false) ERROR - method not allowed: HTTP 405 with Allow: POST; request method is not POST - invalid data: invalid password or TOTP code, including an already used code - too many login attempts: HTTP 429 with retry_after and Retry-After; shares the login limit of three failures and a 900-second pause - totp not enabled: TOTP is not active - profile * - show INPUT OUTPUT - forename: your forename - surname: your surname - user_id: your user_id - email: your e-mail address - image: profile image url - admin: true or false ERROR - save INPUT - forename: your forename - surname: your surname OUTPUT - success (true): profile updated ERROR - save_image INPUT - image: JPEG, PNG, GIF or WebP as Base64, a data URL or multipart file; max 10 MiB and 16 million pixels; omitted, null or empty removes the current image when no file is uploaded OUTPUT - success (true): image saved or removed ERROR - no image: invalid image, failed upload or size/pixel limit exceeded; returned in api.error - warehouses * - create INPUT * name: name of the warehouse OUTPUT - success (true): warehouse created ERROR - too many warehouses: you have reached the maximum count of warehouses - no server available: currently no server is available, please try again later - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id of the warehouse - name: name for the warehouse - active: true or false - owner: true or false ERROR - select INPUT * id: warehouse ID OUTPUT - success (true): warehouse changed ERROR - delete INPUT * id: warehouse ID OUTPUT - success (true): warehouse deleted ERROR - id not found: warehouse id not found - packages - list INPUT - session_id and session_hash: optional together; incomplete, invalid or expired sessions are rejected - Without session parameters, an empty JSON body ([] or {}) returns the public list. OUTPUT OBJECT (top-level JSON object keyed by package ID; [] when empty) - id: id of the package - name: name of the package - vat_price: gross package price including VAT - net_price: package price excluding VAT - vat_rate: configured VAT rate - vat_amount: VAT included in vat_price - default: true for the free cancellation/default package - current: true for the authenticated user's current package; always false for guests - pending: true for the authenticated user's pending package; always false for guests - count_images: amount of article images in one warehouse - count_articles: amount of articles in one warehouse - count_warehouses: amount of warehouses - count_users: amount of foreign users in one warehouse - count_properties: amount of properties in one warehouse - count_storages: amount of storage places in one warehouse - count_api_1min: amount of api requests in 1 minute per session - count_api_15min: amount of api requests in 15 minutes per session ERROR - invalid session: session parameters were provided but do not identify a valid session - characteristics * - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id of the characteristic - name: name for the option - type: type of the option - decimal places: number for the decimal places - overview: true or false to output in article overview - sort: number to sort ERROR - create INPUT * name: name for the characteristic * type: type for this option - valid values are: number, text, textarea, date, time, datetime - decimal places: number for the decimal places only for type number OUTPUT - success (true): characteristic created ERROR - too many characteristics: you have too many characteristics - unknown type: unknown type - name exists: the given name already exists for this database - edit INPUT * id: id of the characteristic - name: name of the characteristic - decimal places: number for the decimal places - overview: true or false to output in article overview - sort: number to sort OUTPUT - success (true): characteristic saved ERROR - name exists: the given name already exists for this database - id not found: cannot find the id - delete INPUT * id: id of the characteristic OUTPUT - success (true): characteristic deleted ERROR - id not found: cannot find the id - articles * - create INPUT - article number: article number or empty for auto increment * name: name for article OUTPUT - id: id of the article ERROR - article number exists: the chosen article number already exists - too many articles: you have the maximum amount of articles - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id of the article - article number: the article number for the article - name: name of the article - count: total amount of articles within the warehouse - image: main image url, otherwise first available image url, otherwise null ARRAY characteristics - id: id of the characteristic - name: name for the option - type: type of the option - sort: number to sort - value: value of the characteristic ERROR - details INPUT * id: id of the article OUTPUT - article number: article number of the item - name: name of the article - decimal places: allowed decimal places for bookings ARRAY characteristics - id: id of the characteristic - name: name for the option - type: type of the option - value: value of the characteristic ARRAY storages - storage id: id of the storage place - storage number: your storage number - name: name of the storage place - count: count of articles ARRAY images - id: id of image - image: image url - main: true or false ERROR - id not found: cannot find the id - edit INPUT * id: id of the article - name: new name for the article - decimal places: allowed decimal places for bookings, empty/null resets to default - main image: id of the main article image, empty/null removes the current main image ARRAY characteristic * id: id of the characteristic * value: new value of the characteristic; null clears the value OUTPUT - success (true): article edited ERROR - id not found: cannot find the id - image id not found: image cannot be found - characteristic not found: characteristic cannot be found - decimal places too low for existing stock: an existing storage quantity requires more decimal places - delete INPUT * id: id of the article OUTPUT - success (true): article deleted ERROR - id not found: cannot find the id - storage - add INPUT * article id: id of the article * storage id: id of the storage place * count: positive quantity to add, using . as decimal separator; no more fractional digits than the article's decimal places (default 0) OUTPUT - success (true): count added ERROR - article id not found: id not found - storage id not found: id not found - del INPUT * article id: id of the article * storage id: id of the storage place * count: positive quantity to remove, using . as decimal separator; no more fractional digits than the article's decimal places (default 0) OUTPUT - success (true): count deleted ERROR - article id not found: id not found - storage id not found: id not found - count not available: count exceeds the available quantity - images - add INPUT * article id: id of the article * image: JPEG, PNG, GIF or WebP as Base64, a data URL or multipart file; max 10 MiB and 16 million pixels OUTPUT - success (true): image saved ERROR - article id not found: article does not exist in the selected warehouse - too many images: you have the maximum amount of article images for this warehouse - invalid size: size exceeds 10 MiB - no image: invalid image, failed upload or pixel limit exceeded - del INPUT * image id: id of the image OUTPUT - success (true): image removed ERROR - id not found: image id not found - storages * - create INPUT * name: storage name - storage number: your storage number OUTPUT - success (true): storage place created ERROR - too many storages: you have too many storage places - name exists: the given name already exists - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id of the storage place - name: name of the storage place - storage number: your storage number ERROR - delete INPUT * id: id of the storage place OUTPUT - success (true): storage place removed ERROR - id not found: id not found - articles - list INPUT * storage id: id of the storage place OUTPUT ARRAY (top-level JSON array; [] when empty) - id: id of the article - article number: the article number for the article - name: name of the article - count: count of articles within the selected storage place ERROR - storage id not found: id not found - permissions * - add INPUT * email: e-mail address of an existing user OUTPUT - success (true): user added ERROR - user not found: no user with this e-mail address exists - already member: the user is already member of this warehouse - cannot add yourself: you cannot add yourself - owner cannot be added: the owner cannot be added - too many users: you have reached the maximum amount of foreign users for this warehouse - list INPUT OUTPUT ARRAY (top-level JSON array, including the owner with id null) - id: permission id - user id: id of the user - email: e-mail address of the user - forename: forename of the user - surname: surname of the user - owner: true or false - permission invite: true or false - permission read permissions: true or false - permission write permissions: true or false - permission read articles: true or false - permission write articles: true or false - permission book articles: true or false - permission read properties: true or false - permission write properties: true or false - permission read storages: true or false - permission write storages: true or false ERROR - save INPUT * user id: id of the user - permission invite: true or false - permission read permissions: true or false - permission write permissions: true or false - permission read articles: true or false - permission write articles: true or false - permission book articles: true or false - permission read properties: true or false - permission write properties: true or false - permission read storages: true or false - permission write storages: true or false OUTPUT - success (true): permissions updated ERROR - user not found: cannot find the user - user not member: the user is not member of this warehouse - remove INPUT * user id: id of the user OUTPUT - success (true): member removed ERROR - user not found: cannot find the user - user not member: the user is not member of this warehouse - me - show INPUT OUTPUT - owner: true or false - permission invite: true or false - permission read permissions: true or false - permission write permissions: true or false - permission read articles: true or false - permission write articles: true or false - permission book articles: true or false - permission read properties: true or false - permission write properties: true or false - permission read storages: true or false - permission write storages: true or false ERROR - leave INPUT OUTPUT - success (true): warehouse left ERROR - user not member: you are not member of this warehouse - administration * - users - list INPUT - search: optional literal substring in forename, surname or email; SQL wildcard characters are treated literally - limit: maximum users to return, integer from 1 to 200, default 50 - offset: non-negative integer for pagination, default 0 OUTPUT ARRAY users - id: user id - forename: user forename - surname: user surname - email: user email address - admin: true or false - email_verified: true if the email address has been verified, otherwise false - current_package: assigned package, otherwise the enabled free default package; null if neither exists - name: package name - vat_price: gross package price including VAT - subscription_valid: true if the effectively assigned current package costs more than zero; false for a free or missing package a pending paid package does not count; invoice and payment status are not prerequisites; package enabled and offer dates affect package selection, not validity of an already assigned package - total: total matching users before pagination - limit: applied page size - offset: applied offset ERROR - invalid session: the session is missing, invalid or expired - no permission: the authenticated user is not an administrator - no valid input data: search, limit or offset is invalid or outside its allowed range - details INPUT * id: positive integer user id OUTPUT - user: user details - id: user id - forename: user forename - surname: user surname - email: user email address - admin: true or false - email_verified: true if the email address has been verified, otherwise false - time_verified: email verification datetime or null - current_package: assigned package, otherwise the enabled free default package; null if neither exists - id: package id - name: package name - vat_price: gross package price including VAT - net_price: package price excluding VAT - vat_rate: configured VAT rate - vat_amount: VAT included in vat_price - default: true or false - subscription_valid: true if the effectively assigned current package costs more than zero; false for a free or missing package a pending paid package does not count; invoice and payment status are not prerequisites; package enabled and offer dates affect package selection, not validity of an already assigned package - payment_status: none, pending, ready or failed; none if no subscription exists - next_billing_date: next billing date as YYYY-MM-DD or null - last_login: latest sessions.time_created for this user, including expired sessions; null if no session exists - sessions_total: total stored sessions, including expired sessions - sessions_active: sessions whose time_expire is later than the current time; this does not mean that the user is currently online - warehouses_count: number of warehouses owned by this user ARRAY sessions - id: session id - name: session name or null - warehouse_id: selected warehouse id or null - time_created: session creation datetime - time_expire: session expiration datetime - active: true if time_expire is later than the current time, otherwise false - pending_package: package planned for the next billing date, with the same fields as user.current_package, or null - last_invoice: latest invoice summary or null - id: invoice id - invoice_number: invoice number - status: open, paid, failed, partially_refunded, refund_pending or refunded - net_amount: invoice net amount - vat_rate: VAT rate stored with the invoice - vat_amount: VAT included in the invoice gross amount - gross_amount: invoice gross amount - billing_date: invoice date - package_name: billed package name - service_period_start: first day of the billed service period - service_period_end: last day of the billed service period - time_paid: payment datetime or null - time_failed: final payment failure datetime or null - time_refunded: refund datetime or null - subscription: public payment state or null - payment_status: none, pending, ready or failed - payment_method: sepa_direct_debit, creditcard or null - payment_details_masked: masked payment details or null - next_billing_date: next billing date as YYYY-MM-DD or null - failed_at: last final payment failure or detected refund datetime, otherwise null ERROR - invalid session: the session is missing, invalid or expired - no permission: the authenticated user is not an administrator - no valid input data: id is missing or is not a positive integer - id not found: the requested user does not exist - servers - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: server id - name: server name - host: server host - user: server user - database: server database - port: server port - storage max: configured database storage limit in MB (integer) - storage free: remaining database storage in MB (whole number in response) - enabled: true or false - add INPUT * name: server name * host: server host * user: server user * database: server database * port: server port * password: server password OUTPUT - success (true): successfully created ERROR - save INPUT * id: server id - name: server name - enabled: true or false - storage max: database storage limit in MB (non-negative integer) OUTPUT - success (true): successfully saved ERROR - id not found: server id not found - packages - list INPUT OUTPUT ARRAY (top-level JSON array; [] when empty) - id: package id - name: package name - vat_price: gross package price including VAT - net_price: package price excluding VAT - vat_rate: configured VAT rate - vat_amount: VAT included in vat_price - count_warehouses: amount of warehouses - count_users: amount of foreign users in one warehouse - count_storages: amount of storage places in one warehouse - count_articles: amount of articles in one warehouse - count_images: amount of article images in one warehouse - count_properties: amount of properties in one warehouse - count_api_1min: amount of api requests in 1 minute per session - count_api_15min: amount of api requests in 15 minutes per session - default: true or false - enabled: true or false - time_from: start datetime or null - time_to: end datetime or null ERROR - add INPUT * name: package name * price: gross package price including VAT * count_warehouses: amount of warehouses * count_users: amount of foreign users in one warehouse * count_storages: amount of storage places in one warehouse * count_articles: amount of articles in one warehouse * count_images: amount of article images in one warehouse * count_properties: amount of properties in one warehouse * count_api_1min: amount of api requests in 1 minute per session * count_api_15min: amount of api requests in 15 minutes per session OUTPUT - success (true): successfully created ERROR - save INPUT * id: package id - name: package name - default: true or false - enabled: true or false - time_from: start datetime or null - time_to: end datetime or null OUTPUT - success (true): successfully saved ERROR - id not found: package id not found - default package must be enabled: default package cannot be disabled - default package must be free: default package price must be 0 - at least one enabled default package required: the last enabled default package cannot be removed - subscriptions - show * INPUT OUTPUT - subscription: public payment state or null - payment_status: none, pending, ready or failed - payment_method: sepa_direct_debit, creditcard or null - payment_details_masked: masked payment details or null - next_billing_date: next billing date as YYYY-MM-DD or null - failed_at: last final payment failure or detected refund datetime, otherwise null - billing: saved billing data or null - forename: billing contact forename - surname: billing contact surname - company: billing company or null - street: billing street - postcode: billing postcode - city: billing city - country: billing country, currently always DE - email: billing email or null - current_package: currently assigned package, otherwise the enabled free default package; null if neither exists - id: package id - name: package name - vat_price: gross package price including VAT - net_price: package price excluding VAT - vat_rate: configured VAT rate - vat_amount: VAT included in vat_price - default: true or false - count_warehouses: amount of warehouses - count_users: amount of foreign users in one warehouse - count_storages: amount of storage places in one warehouse - count_articles: amount of articles in one warehouse - count_images: amount of article images in one warehouse - count_properties: amount of properties in one warehouse - count_api_1min: amount of api requests in 1 minute per session - count_api_15min: amount of api requests in 15 minutes per session - pending_package: package planned for the next billing date, with the same fields as current_package, or null - last_invoice: latest invoice summary or null - id: invoice id - invoice_number: invoice number - status: open, paid, failed, partially_refunded, refund_pending or refunded - net_amount: calculated invoice net amount - vat_rate: VAT rate stored with the invoice - vat_amount: VAT included in the invoice gross amount - gross_amount: invoice gross amount - billing_date: invoice date as YYYY-MM-DD or null - package_name: billed package name ERROR - save * INPUT * X-Website-Api-Key (HTTP header): valid API key of the XIPMO main website; does not replace the required session * billing_forename: billing contact forename * billing_surname: billing contact surname * billing_street: billing street * billing_postcode: billing postcode * billing_city: billing city * billing_country: billing country code, currently only DE is supported * payment_method: sepa_direct_debit or creditcard - billing_company: billing company - billing_email: billing email - iban: bank IBAN; required for sepa_direct_debit, ignored for creditcard - account_holder: separate bank account holder; required for sepa_direct_debit, ignored for creditcard OUTPUT - success (true): billing and payment data saved - checkout_url: Mollie checkout url for credit card setup or null - subscription: public payment state ERROR - no permission: API key header is missing or invalid - unknown payment method: unsupported payment method - unsupported billing country: billing_country is not DE - no valid iban: invalid SEPA iban - no account holder: account_holder is missing for SEPA - other Mollie/payment setup errors may be returned directly - change_package * INPUT * X-Website-Api-Key (HTTP header): valid API key of the XIPMO main website; does not replace the required session * package_id: target package id OUTPUT - success (true): package change accepted - current_package: current package, with the same fields as subscriptions/show.current_package - pending_package: scheduled lower-priced package, with the same fields as current_package, or null - effective_at: YYYY-MM-DD when a lower-priced package is scheduled; null for immediate changes or when selecting the current package higher-priced and equal-price changes apply immediately lower-priced changes, including a change from a paid package to the free default package, apply at the next billing date selecting the current package clears an existing pending change ERROR - no permission: API key header is missing or invalid - package not found: package does not exist or is not active - subscription setup required: payment_status must be ready before selecting a paid package - invoices * - list INPUT - limit: max invoices to return, default 50, max 1000 OUTPUT ARRAY invoices - id: invoice id - invoice_number: globally sequential invoice number in format R-XPO-000000 - package_id: billed package id - package_name: billed package name - service_period_start: first day of service period - service_period_end: last day of service period - billing_date: invoice date - status: open, paid, failed, partially_refunded, refund_pending or refunded - net_amount: net amount calculated from the billed gross package price - vat_rate: VAT rate used for this invoice - vat_amount: VAT included in the billed gross package price - gross_amount: billed package gross price - mollie_payment_status: latest Mollie payment status or null ERROR - download METHOD POST INPUT * id: invoice id OUTPUT - successful response is the ZUGFeRD 2.5.2 / Factur-X 1.09.2 EN16931 PDF as an attachment - Content-Type: application/pdf ERROR - invalid invoice id: id is missing or invalid - invoice not found: invoice does not belong to the authenticated user or does not exist - invoice not downloadable: invoice is not paid, its cron-generated document is not ready or it has no complete ZUGFeRD invoice snapshot - method not allowed: request method is not POST - webhook INPUT - id: Mollie payment id OUTPUT - success (true): webhook processed - handled: true or false - kind: subscription_setup or subscription_invoice or null ERROR