Webhooks

From Marathon Documentation
Revision as of 14:29, 2 March 2022 by TR (talk | contribs) (Created page with "'''Forberedelser'''")

Jump to: navigation, search
Webhooks
Published 2022-02-06
Module Media
Version 546W2106
Revision 56
Case number CORE-3043

Webhooks for ændringer i medieordrer

Webhhook fra Marathon semdes hver gang, en ordre bliver ændret. I https-anråbet overføres en xml-fil fra Marathon med indhold til det modtagende system. Eksempel på xml-indhold:

 <?xml version="1.0" encoding="iso-8859-15"?>
 <marathon_webhook>
   <password>ABC123</password>
   <type>order</type>
   <company_id>KASE</company_id>
   <plan_id>119874</plan_id>
   <order_id>283319</order_id>
   <action>create</action>
 </marathon_webhook>

Tilladte værdier for "action":

  create = Ny ordre
  update = Ændring på eksisterende ordre
  delete = Sletting af ordre

Forberedelser

Enter the URL and the password that will be included in the xmlfile in Base registerd/General/System parameters tab Other Select Webhooks Order in base registers/General/Company specific parameters tab Other