Contact Moments (Contactmomenten)¶
Current version: 0.1.0
Read¶
- GET /api2/contactmomenten¶
Request a list of contact moments
Example request
GET /api2/contactmomenten HTTP/1.1 Host: demo.recras.nl Accept: application/json
Example response
HTTP/1.1 200 OK Content-Type: application/json [ { "id": 41, "contactpersoon_id": 36, // (contact_person_id) "soort_contact": "mail", // (contact_type) "contact_id": 42, "personeel_id": 1, // (staff_id) "onderwerp": "Opdrachtbevestiging Actieve drie daagse", // (subject: "Order Confirmation Active three days") "to_klant": true, // (to_customer) "sticky": false, "bericht": "Beste Dries,<br /> <br /> Hierbij doe ik je de opdrachtbevestiging voor het uitje van vrijdag 29 november 2013 toekomen.<br /> <br /> De volgende bijlagen heb ik bij deze mail meegezonden:<br /> <ul><li>Algemene Voorwaarden.pdf</li><li>Aanvullende Voorwaarden Kanoverhuur.pdf</li><li>opdrachtbevestiging_7_42-1_2014-05-23.pdf</li></ul><br /> <br /> De routebeschrijving is te vinden op onze website onder contact. Mocht je nog vragen hebben, dan verneem ik dat graag. Anders tot vrijdag 29 november 2013!", // (message: "Dear Dries,<br /> <br /> Hereby I send you the order confirmation for the outing of Friday, November 29, 2013.<br /> <br /> I have included the following attachments with this email:<br /> <ul><li>General Terms and Conditions.pdf</li><li>Additional Terms and Conditions Canoe Rental.pdf</li><li>order_confirmation_7_42-1_2014-05-23.pdf</li></ul><br /> <br /> The directions can be found on our website under contact. If you have any questions, please let me know. Otherwise, until Friday, November 29, 2013!") "ondertekening": "Met vriendelijke groeten,<br /> <br /> Piet de Vries (Directeur)", // (signature: "Sincerely,<br /> <br /> Piet de Vries (Director)") "editable_until": "2014-05-23T05:16:45+02:00", "created_at": "2014-05-23T05:16:45+02:00" }, { "id": 40, "contactpersoon_id": 36, // (contact_person_id) "soort_contact": "mail", // (contact_type) "contact_id": 42, "personeel_id": 1, // (staff_id) "onderwerp": "Optie uitje: Actieve drie daagse", // (subject: "Option outing: Active three days") "to_klant": true, // (to_customer) "sticky": false, "bericht": "Beste Dries,<br /> <br /> ... <br /> <br /> Ik hoop je hiermee voldoende te hebben geïnformeerd. Mocht je een optie op dit arrangement willen of het willen vastleggen, dan vernemen wij dat graag.", // (message: "Dear Dries,<br /> <br /> ... <br /> <br /> I hope to have informed you sufficiently. If you would like an option on this package or want to book it, please let us know.") "ondertekening": "Met vriendelijke groeten,<br /> <br /> Piet de Vries (Directeur)", // (signature: "Sincerely,<br /> <br /> Piet de Vries (Director)") "editable_until": "2014-05-23T05:16:12+02:00", "created_at": "2014-05-23T05:16:12+02:00" } ]
- Status Codes:
200 OK – OK
- GET /api2/contactmomenten/(int: id)¶
A specific contact moment
- Status Codes:
200 OK – OK
404 Not Found – No location with this
id
More Specific Selections (Specifiekere selecties)¶
In the Recras API, some more specific selections are also accessible via other endpoints.
Contact moments for a contact (Contactmomenten bij een contact)¶
- GET /api2/contacten/(int: contact_id)/contactmomenten¶
A list of contact moments belonging to Customer (Klant) with
id
contact_id
. Equivalent to ContactmomentenList_ </contactmomenten?contact_id=(int:contact_id)>
- GET /api2/contacten/(int: contact_id)/contactmomenten/(int: id)¶
A specific contact moment. Equivalent to ContactmomentenShow_ </contactmomenten/(int:id)>
Contact moments for a customer (Contactmomenten bij een klant)¶
- GET /api2/klanten/(int: klant_id)/contactmomenten¶
A list of contact moments belonging to Customer (Klant) with
id
klant_id
. Equivalent to ContactmomentenList_ </contactmomenten?contact_id=(int:klant_id)> (klant means customer)
- GET /api2/klanten/(int: klant_id)/contactmomenten/(int: id)¶
A specific contact moment. Equivalent to ContactmomentenShow_ </contactmomenten/(int:id)>