It's a pleasure to have you here, Krati.
To help retrieve the definition ID for custom fields created in API, let me route you to the best support available. We have a forum called Intuit Developer where you can get an answer from one of the experts handling integration like API, developments, and other related concerns.
I'd suggest posting your situation on their forum, as they are the best gurus who can help you with your concerns. I'd be glad to guide you on how:
- Proceed to this link: https://help.developer.intuit.com/s/
- Choose QuickBooks Online.
- Select Ask a Question.
You'll want to check these articles to help set up custom fields for your sales forms and purchase orders in QuickBooks Online: Add custom fields to sales forms and purchase orders.
Please know that you're always welcome to post if you have any other concerns with retrieving definition IDs for custom fields. I wish you and your business continued success.