How to send data to an external service using scripts and role

Hi there,
here’s what I need to do: when closing ticket will activate my script by passing all order details (Items, table, price etc.)

This is what I did:

Action
This is a generic action calling custom functions (to avoid an action for each function)
image

Role
On ticket closing
eat.create_ticket(‘{ORDER DETAILS}’)

Script
image

With mockdata I verified the service is reacheable and working fine.

Problem
I can’t find the correct variable to send all order’s details.

In addiction to that, I can’t fine documentation anymore.

Please help!