Skip to Main Content
Riverty Docs
riverty logo Docs

Update Invoice

The creation of a order is the first step in the accounting process of Accounting as a Service.

More information can be found in our Link

Path

POST /businesses/{businessCode}/customers/{customerNumber}/orders/{orderReference}/invoices/{invoiceReference}

Request Parameters

businessCode
required
string
The business in the context of which this request is to be executed, e.g. 1000
customerNumber
required
string
The customer in the context of which this request is to be executed, e.g. TFI2021072801
orderReference
required
string
The order in the context of which this request is to be executed, e.g. TFI2021072801_03
invoiceReference
required
string
The invoice in the context of which this request is to be executed, e.g. IDE12345678901
X-Request-ID
string
The unique ID of this particular request/transaction. Subsequent requests with the same request ID might get ignored.

Request Body

application/json

goodwillReference
string
Max length: 30
maxLength(30)
Reference to use for goodwill which is automatically created to nullify the original invoice.
object
object

Responses

Update invoice example

Request Example

    
        {
 "order": {
  "items": [
   {
    "vatType": "NORMAL",
    "quantity": 2.5,
    "productId": "BEF12346512A/1",
    "vatAmount": 19.02,
    "vatPercent": 19,
    "description": "Lizenz zum Buchen",
    "positionType": "SHIPPING_COSTS_EXPRESS",
    "subscription": {
     "endDate": "2019-03-15",
     "startDate": "2018-12-05"
    },
    "grossUnitPrice": 119.12,
    "orderItemReference": 3,
    "reportingPositionData": {
     "genericField1": "string",
     "genericField2": "string",
     "genericField3": "string",
     "genericField4": "string",
     "genericField5": "string",
     "giftCardVoucherId": "298uwfj88"
    }
   }
  ],
  "contract": {
   "endDate": "2019-03-15",
   "startDate": "2018-12-05",
   "contractID": "A545axe58",
   "basicCharge": 12,
   "description": "10 month contract",
   "minimumTerm": 3,
   "customerContractEndDate": "2016-01-09",
   "customerContractStartDate": "2015-12-10"
  },
  "currency": "EUR",
  "orderDate": "2015-12-10",
  "orderType": "PHYSICAL_GOODS",
  "orderChannel": "ECOM",
  "billToAddress": {
   "email": "max.mustermann@outlook.com",
   "phone": "+491345789555",
   "title": "DR",
   "careOf": "Jane c/o John",
   "street": "Beispielstr.",
   "language": "de",
   "lastName": "Mustermann",
   "birthDate": "1983-09-15",
   "firstName": "Max",
   "postalCode": "48213",
   "salutation": "MRS",
   "countryCode": "DE",
   "nationality": "DE",
   "postalPlace": "Muenster",
   "streetNumber": "13A",
   "customerGroup": "Gold Clients",
   "taxIdentificationNumber": "DE999999999"
  },
  "reportingData": {
   "genericField1": "string",
   "genericField2": "string",
   "genericField3": "string",
   "genericField4": "string",
   "genericField5": "string"
  },
  "shipToAddress": {
   "state": "AL",
   "title": "DR",
   "careOf": "Jane c/o John",
   "street": "Beispielstr.",
   "language": "de",
   "lastName": "Mustermann",
   "firstName": "Max",
   "postalCode": "48213",
   "salutation": "MRS",
   "countryCode": "DE",
   "postalPlace": "Muenster",
   "streetNumber": "13A"
  },
  "orderReference": "ODE12345678901",
  "paymentReference": {
   "paymentDetails": {
    "bic": "GENODEM1MSC",
    "iban": "DE51100100501234567890",
    "accountOwner": "Max Mustermann",
    "authorizedAmount": 152.39,
    "mandateReference": "321654984",
    "authorizationDate": "2018-11-05T16:15:03Z",
    "merchantAccountId": "ECOM_PAYPAL",
    "arvatoPaymentToken": "438674718468",
    "settlementReference": "ODE12340849323",
    "mandateReferenceText": "OrderNo. 1234 Customer 3422"
   },
   "paymentMethodName": "ArvatoDirectDebitSepa"
  },
  "supplyingCountry": "DE",
  "processAfterDunning": "HAND_OVER_FOR_DEBT_COLLECTION",
  "vatDeclarationCountry": "DE"
 },
 "invoice": {
  "items": [
   {
    "orderItemReference": 3
   }
  ],
  "carrier": "DHL",
  "dueDate": "2018-11-05",
  "invoiceDate": "2018-11-04",
  "dispatchDate": "2018-11-06",
  "trackingCode": "123456asfd788754sdffs987",
  "invoiceReference": "IDE12345678901",
  "shipmentReference": "S01234567"
 },
 "goodwillReference": "GDE12345678901"
}
    

Response Example

    
        {
 "internalRequestId": "23c9579b-baaf-468f-a529-f876226e183c"
}