Post to external API from Klipfolio

We are implementing a klip where user can insert an order ID and they can update the information in an external application.

We want to call to this endpoint: 
POST https://{accountName}.{environment}.com.br/api/oms/pvt/orders/{orderId}/invoice/123/tracking

Where {orderId} should be the number that user inserted in field, that is possible?

1 comment

  • Avatar
    Parker Selman Official comment

    Hi Gustavo, 

    Thanks for the post! 

    You should be able to use a dynamic data source to accomplish this. Specifically, if you insert the variable corresponding to the user-inputted field into your query in the format {props.variable}, your data source will query specifically for the order ID called in the user input control. 

    This call would therefore look like this:

    POST https://{accountName}.{environment}.com.br/api/oms/pvt/orders/{props.variable}/invoice/123/tracking

    I hope this helps! You can find more information on this in the document linked above. If you have any questions, feel free to follow up by creating a support ticket at support@klipfolio.com 

Please sign in to leave a comment.