v1

latestOpenAPI 3.0.02026-07-1315476656.4 KB
CreditNote

Creates a new creditNote from a voucher

Not supported with sevdesk-Update 2.0

Use this endpoint to create a new creditNote from a voucher.

post/CreditNote/Factory/createFromVoucher

Request body

Example request

{
  "voucher": {
    "id": 1234,
    "objectName": "Voucher"
  }
}

Response

Created

Example response

{
  "objects": {
    "creditNote": {
      "id": "1",
      "objectName": "CreditNote",
      "create": "2023-04-18T15:45:38+02:00",
      "update": "2023-04-18T15:45:38+02:00",
      "creditNoteNumber": "GU-1000",
      "contact": {
        "id": "1",
        "objectName": "Contact"
      },
      "creditNoteDate": "2023-04-18T15:45:38+02:00",
      "status": "100",
      "header": "My GU-1000",
      "addressCountry": {
        "id": "1",
        "objectName": "StaticCountry"
      },
      "createUser": {
        "id": "1",
        "objectName": "SevUser"
      },
      "sevClient": {
        "id": "1",
        "objectName": "SevClient"
      },
      "deliveryDate": "2023-04-18T15:45:38+02:00",
      "contactPerson": {
        "id": "1",
        "objectName": "SevUser"
      },
      "taxRate": "0",
      "taxSet": {
        "id": "1",
        "objectName": "TaxSet"
      },
      "taxText": "Umsatzsteuer 19%",
      "taxType": "default",
      "sendDate": "2023-04-18T15:45:38+02:00",
      "currency": "EUR",
      "sumNet": "0",
      "sumTax": "0",
      "sumGross": "0",
      "sumDiscounts": "0",
      "sumNetForeignCurrency": "0",
      "sumTaxForeignCurrency": "0",
      "sumGrossForeignCurrency": "0",
      "sumDiscountsForeignCurrency": "0"
    },
    "creditNotePos": [
      {
        "id": "1",
        "objectName": "CreditNotePos",
        "create": "2023-04-18T15:45:38+02:00",
        "update": "2023-04-18T15:45:38+02:00",
        "creditNote": {
          "id": "1",
          "objectName": "creditNote"
        },
        "part": {
          "id": "1",
          "objectName": "Part"
        },
        "quantity": "1",
        "price": "100",
        "priceNet": "100",
        "priceTax": "19",
        "priceGross": "119",
        "name": "Dragonglass",
        "unity": {
          "id": "1",
          "objectName": "Unity"
        },
        "sevClient": {
          "id": "1",
          "objectName": "SevClient"
        },
        "positionNumber": "1",
        "discount": "0",
        "taxRate": "19",
        "sumDiscount": "0"
      }
    ],
    "discount": [
      {
        "id": 1234,
        "objectName": "Discounts",
        "create": "2023-03-15T13:46:33+01:00",
        "update": "2023-03-15T13:46:33+01:00",
        "sevClient": "1234",
        "discount": "1",
        "text": "Info about the discount",
        "percentage": "1",
        "value": "5",
        "isNet": "0"
      }
    ]
  }
}