billomat[API]: Angebote – Kommentare und Historie

Alle Kommentare eines Angebotes auflisten

GET /api/offer-comments?offer_id={offer_id}

Kommentare können immer nur für ein bestimmtes Angebot zurückgegeben werden.

Deshalb ist offer_id ein Pflichtparameter.

Response: 200 OK
<?xml version="1.0" encoding="UTF-8"?> <offer-comments type="array"> <offer-comment> ... <offer-comment> <offer-comment> ... <offer-comment> </offer-comments>

Einzelnen Kommentar aufrufen

GET /api/offer-comments/{id}
Response: 200 OK
<?xml version="1.0" encoding="UTF-8"?> <offer-comment> <id type="integer">1</id> <created type="datetime">2007-12-13T12:12:00+01:00</created> <offer_id type="integer">1</offer_id> <user_id type="integer">1</user_id> <comment>Angebot erstellt.</comment> </offer-comment>

Kommentar erstellen

POST /api/offer-comments

Erstellt eines neuen Angebotskommentar.

XML-Element

Beschreibung

Typ

Default-Wert

Pflichtfeld

offer_id

ID des Angebotes

INT

ja

comment

Kommentar

ALNUM

ja

Request Body
<offer-comment> <offer_id>1</offer_id> <comment>Kunde braucht noch etwas Bedenkzeit</comment> </offer-comment>
Response: 201 Created
<?xml version="1.0" encoding="UTF-8"?> <offer-comment> <id type="integer">1</id> <created type="datetime">2007-12-13T12:12:00+01:00</created> <offer_id type="integer">1</invoice_id> <user_id type="integer">1</user_id> <comment>Kunde braucht noch etwas Bedenkzeit</comment> </offer-comment>

Kommentar löschen

DELETE /api/offer-comments/{id}
Response: 200 OK
Du bist hier: Startseite » API » Angebote » Kommentare und Historie