Skip to main content

Update InvoiceSettings of a Customer

PUT/customers/{customerId}/invoice-settings/
v2
PUT
invoice-update-invoice-settings

Request

  • customerIdstring
    required
    Example:"edefeee4-e8e9-4e2d-ab95-9a2eb6104cfb"

Responses

application/json
  • additionalEmailRecipientsarray of string (email)
    • Array[
    • *string (email)
    • ]
  • debitPaymentStopUntilstring (date-time)
  • idstring
    required
  • invoicePeriodinteger
  • lastBankingInformationobject
    • accountHolderstring
      required
    • bicstring
    • ibanstring
      required
  • paymentSettingsone of 2 alternatives
  • printedInvoicesboolean
  • recipientobject
    • addressobject
      required
      • streetstring
        required
      • houseNumberstring
        required
      • citystring
        required
      • zipstring
        required
      • countryCodestring
        required

        ISO 3166-1 alpha-2 country code

      • addressPrefixstring
    • companystring
    • emailAddressstring (email)
    • firstNamestring
    • lastNamestring
    • phoneNumbersarray of string
      • Array[
      • *string
      • ]
  • salutationstring (one of: mr, ms, other)
    required
  • titlestring
  • useFormalTermboolean
  • recipientSameAsOwnerboolean
  • statusarray of object
    • Array[
    • *object
      • messagestring
        required
      • severitystring (one of: success, info, warning, error)
        required
      • typestring (one of: returnDebitNote, returnDebitNoteWaitingForPayment, debtWrittenOff, bankrupt)
        required
    • ]
  • targetDayinteger
  • Usage examples

    $ curl \
    --fail \
    --location \
    -X PUT \
    -d '{"additionalEmailRecipients":["hallo@test.de"],"invoicePeriod":1,"paymentSettings":{"accountHolder":"Ada Lovelace","bic":"DEUTDEDB123","iban":"DE12345678901234567890","method":"debit"},"printedInvoices":true,"recipient":{"address":{"street":"Königsberger Straße","houseNumber":"4-6","city":"Espelkamp","zip":"32339","countryCode":"DE","addressPrefix":"c/o Ada Lovelace"},"company":"Mittwald CM Service GmbH & Co. KG","emailAddress":"email@mittwald.example","firstName":"Ada","lastName":"Lovelace","phoneNumbers":["+49 123 4567890"],"salutation":"mr","title":"Dr.","useFormalTerm":true},"recipientSameAsOwner":true,"targetDay":15}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/customers/string/invoice-settings