Run my Accounts API: Beispiel D4.1 - Skonto
An diesem Beispiel zeigen wir Ihnen, wie Sie einen Skonto-Abzug ü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 version="1.0" encoding="UTF-8" standalone="yes"?>
<payment>
<datepaid>2011-11-23T10:39:17.945+01:00</datepaid>
<amount_paid>635.05</amount_paid>
<source/>
<memo>Zahlung</memo>
<payment_accno>1030</payment_accno>
</payment>
or
{
"datepaid": "2011-11-23T10:39:17.945+01:00",
"amount_paid": "635.05",
"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 version="1.0" encoding="UTF-8" standalone="yes"?>
<payment>
<datepaid>2011-11-23T10:39:17.945+01:00</datepaid>
<amount_paid>12.95</amount_paid>
<source/>
<memo>Skonto</memo>
<payment_accno>3800</payment_accno>
</payment>
or
{
"datepaid": "2011-11-23T10:39:17.945+01:00",
"amount_paid": "12.95",
"memo": "Skonto",
"payment_accno": "3800"
}
Antwort 2:
200 Containing the newly posted payment