Trip Builder PHP based API using curl request