Using the API, I get a response from the $result variable of the following form:
echo $result; {"result":"success","order_id":100888,"order_number":10} How correctly from the line above pull out this part of the "order_id":100888 and add it to the variable. At first glance, this can be done using foreach.
The result should be: delivery_order_id = '100888'