Announcement

Collapse
No announcement yet.

Trying to send order_id / tracking number after order has been marked "shipped"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to send order_id / tracking number after order has been marked "shipped"

    Hello,
    After an admin marks an order as shipped I'm trying to have it send a POST to an external API with the order_id / tracking number. Is the "Module_Order_Content" function the correct one to be using for this? I tried updating it to log text to the console but I'm not seeing anything after updating an order. Are there any examples out there using these functions or are there any tips for testing/debugging?

    Thanks,
    Caine

    #2
    cbarber You can use an Order Workflow that will trigger when an order is marked as shipped then have an action that will post the JSON data to Webhook URL that you have setup to process the data. Here are some screenshots of the setup:

    trigger.JPGcondition.JPGaction.JPG

    https://docs.miva.com/developer/deve...der-workflows/
    Attached Files
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X