Actions478
- Account Actions
- Account Details For Period Inquiry Actions
- Account Group Actions
- Account Summary Inquiry Actions
- Activity Actions
- Amazon Store Actions
- Appointment Actions
- Attribute Definition Actions
- Big Commerce Stores Actions
- Bill Actions
- Budget Actions
- Business Account Actions
- Carrier Actions
- Case Actions
- Cash Sale Actions
- Cash Transaction Actions
- Change Order Actions
- Change Order Class Actions
- Check Actions
- Companies Structure Actions
- Company Financial Period Actions
- Contact Actions
- Contract Usage Actions
- Cost Code Actions
- Currency Actions
- Customer Actions
- Customer Class Actions
- Customer Location Actions
- Customer Payment Method Actions
- Customer Price Class Actions
- Deduction Benefit Code Actions
- Discount Actions
- Discount Code Actions
- Earning Type Code Actions
- Email Actions
- Email Processing Actions
- Employee Actions
- Employee Payroll Class Actions
- Employee Payroll Settings Actions
- Event Actions
- Expense Claim Actions
- Expense Receipt Actions
- External Commitment Actions
- Financial Period Actions
- Financial Year Actions
- F O B Point Actions
- Inventory Adjustment Actions
- Inventory Allocation Inquiry Actions
- Inventory Issue Actions
- Inventory Quantity Available Actions
- Inventory Receipt Actions
- Inventory Summary Inquiry Actions
- Invoice Actions
- Item Class Actions
- Item Sales Category Actions
- Item Warehouse Actions
- Journal Transaction Actions
- Kit Assembly Actions
- Kit Specification Actions
- Labor Cost Rate Actions
- Lead Actions
- Ledger Actions
- Lot Serial Class Actions
- Non Stock Item Actions
- Opportunity Actions
- Pay Group Actions
- Payment Actions
- Payment Method Actions
- Pay Period Actions
- Payroll Batch Actions
- Payroll Union Local Actions
- Payroll W C C Code Actions
- Physical Inventory Count Actions
- Physical Inventory Review Actions
- Pro Forma Invoice Actions
- Project Actions
- Project Budget Actions
- Project Task Actions
- Project Template Actions
- Project Template Task Actions
- Project Transaction Actions
- P T O Bank Actions
- Purchase Order Actions
- Purchase Receipt Actions
- Sales Invoice Actions
- Sales Order Actions
- Salesperson Actions
- Sales Prices Inquiry Actions
- Sales Price Worksheet Actions
- Service Order Actions
- Shipment Actions
- Shipping Box Actions
- Shipping Term Actions
- Shipping Zones Actions
- Ship Via Actions
- Shopify Store Actions
- Stock Item Actions
- Storage Details By Location Inquiry Actions
- Storage Details Inquiry Actions
- Subaccount Actions
- Subcontract Actions
- Task Actions
- Tax Actions
- Tax Category Actions
- Tax Reporting Settings Actions
- Tax Zone Actions
- Template Items Actions
- Time Entry Actions
- Transfer Order Actions
- Union Local Actions
- Units Of Measure Actions
- Vendor Actions
- Vendor Class Actions
- Vendor Prices Inquiry Actions
- Vendor Price Worksheet Actions
- Warehouse Actions
- Work Calendar Actions
- Work Class Compensation Code Actions
- Work Location Actions
Opportunity → Insert/Update
AI-generatedSummary
Insert or update an Opportunity record in Acumatica by specifying detailed fields including activities, address, attributes, contact information, discounts, products, relations, tax details, note ID, and additional fields for comprehensive data representation.
Inputs
- Activities — Collection of activities related to the opportunity, each with properties like Billable, Overtime, Category, Cost Code, Created/Modified DateTime, Owner, Project, Status, Summary, Time Spent, Type, and Workgroup ID.
- Address — The physical address associated with the opportunity, including lines 1 and 2, city, country, postal code, state, and a validated flag.
- Attributes — List of custom attributes for the opportunity, each with attribute ID, description, active status, required flag, value, and optional reference note ID.
- Contact Information — Detailed contact info such as attention, company name, emails, faxes, multiple phone numbers with types, name fields, position, title, and website.
- Discounts — Multiple discount entries each specifying discountable amount and quantity, discount amount and percent, discount code, free item and quantity, line number, manual discount flag, skip discount flag, sequence ID, and type.
- Products — List of products related to the opportunity, each including amount, discounts, discount codes and sequences, pricing, inventory ID, quantity, subitem, tax category, description, unit price, UOM, warehouse, and flags to skip line discounts or indicate free items.
- Relations — Collection of relations tied to the opportunity with fields like account, contact ID, display name, roles, emails, primary flag, document links, types, and related metadata.
- Tax Details — Multiple tax detail entries each containing flags for VAT inclusion, line number, pending VAT, reverse VAT, statistical VAT, taxable amount, tax amount, tax ID, tax rate, and tax type.
- Note ID — Note identifier associated with the opportunity record.
- Additional Fields — Additional optional fields such as amount, branch, business account, class ID, converted lead info, currency, details, estimation date, location, manual amount flag, opportunity ID, override flag, owner info, parent account, project, reason, source, source campaign, stage, status, subject, tax zone, totals, workgroup info, and last modified date time.
Output shape
a single updated or inserted Opportunity record object as returned by the Acumatica API
Returns the complete Opportunity object after the insert or update operation. The user should provide at least the identifying details for an update or the necessary data for an insert. Optional fields are ignored if left empty. The operation cleans empty or default values before sending to prevent API errors.
Examples
Example 1: Create a new Opportunity with some required fields and related contact information.
Set key Opportunity fields like Subject, Status, and Amount, and provide Contact Information including Company Name and Email.
Example 2: Update an existing Opportunity by specifying its Opportunity ID and modifying products and discounts.
Provide OpportunityID in Additional Fields, set updated Products list with quantities and pricing, and specify Discounts as needed.
