API Use Case Rabatt/Preisnachlass

An diesem Beispiel zeigen wir Ihnen, wie Sie einen Rabatt / Preisnachlass über das Run my Accounts API einbuchen können:

Aufruf 1

POST https://service.runmyaccounts.com/api/latest/clients/{mandant}/invoices/R-001/payments

XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment>
  <datepaid>2011-11-23T10:39:17.945+01:00</datepaid>
  <amount_paid>448.0</amount_paid>
  <source/>
  <memo>Zahlung</memo>
  <payment_accno>1030</payment_accno>
</payment>

JSON:

{
  "datepaid": "2011-11-23T10:39:17.945+01:00",
  "amount_paid": "448.0",
  "memo": "Zahlung",
  "payment_accno": "1030"
}

Antwort 1

200 Containing the newly posted payment

Aufruf 2

POST https://service.runmyaccounts.com/api/latest/clients/{mandant}/invoices/R-001/payments

XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment>
  <datepaid>2011-11-23T10:39:17.945+01:00</datepaid>
  <amount_paid>200.0</amount_paid>
  <source/>
  <memo>Preisnachlass</memo>
  <payment_accno>3801</payment_accno>
</payment>

JSON:

{
  "datepaid": "2011-11-23T10:39:17.945+01:00",
  "amount_paid": "200.0",
  "memo": "Preisnachlass",
  "payment_accno": "3801"
}

Antwort 2

200 Containing the newly posted payment

War dieser Artikel hilfreich?
Dislike 0
Ansichten: 99
Scroll to Top