Run a script to update through API some suscription data

Job ID: 31666792

Budget: $10 – $30 USD

I have a 3rd party payment gateway where I manage suscriptions.
There are some suscriptions that were not created with data in correct parameters. (I attach image)

Here is API documentation.
https://api-docs.kushkipagos.com/api/card-subscriptions/updatesubscription

Basically I need to run a script that loop over each suscription, and if amout of suscription is on field "subtotalIVA", update that suscription to set that value to 0, and move the previous value to the field "subtotalIVA0".
Related categories: PHP JavaScript Software Architecture MySQL API