API Use Case Bank- / PC-Spesen

An diesem Beispiel zeigen wir Ihnen, wie Sie Bankspesen ü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>644.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": "644.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>4.0</amount_paid>
  <source/>
  <memo>Bankspesen</memo>
  <payment_accno>6940</payment_accno>
</payment>

JSON:

{
  "datepaid": "2011-11-23T10:39:17.945+01:00",
  "amount_paid": "4.0",
  "memo": "Bankspesen",
  "payment_accno": "6940"
}

Antwort 2

200 Containing the newly posted payment

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