Create deal with custom product field

i want to create a deal with product with custom field of product using api. is there any way in api or any other method. can we create our own api in pipedrive?

No, we don’t offer the option to create your own api, but I’m not quite sure what flow you’re going with. You wouldn’t be able to add a Deal and Product on the same request.