I have a client that asked me to write code for them. Specifically (from the contract):
The Client is hiring the Developer to do the following: Point a form to send a user entered text field to custom API [ed: random API request to third-party server]. The URL and port need to be configurable. Display the result on the same page using JS code.
The client has paid me 50% upfront, but the script still doesn't work due to a technical problem that, frankly, is a bit above my level of expertise. Moreover, the problem stemmed from the API being private until I wrote the first script.
The only solution I see is to build a larger system than what I had originally budgeted, and because of it, the job will no longer be profitable.
What should I do? Should I ask for more money? If so, how?