Hello @ansar
What’s the exact error you are receiving?
There was a general PHP example posted some time ago using the XML endpoint that may help: