This tutorial should help you create the first Opportunity. Before moving forward, make sure your Authentication works and you understand the Key Concepts of the Pipeliner API and make sure you know how to use API parameters
The Opportunity represents existing potential business for a company. Go to the web Application and Opportunities can be located on the Opportunities screen. Opportunity is always part of the Pipeline and pipeline step.
The Pipeline is the list of steps (eg. First Contact, Proposal, Closed/Won), that represents the life cycle of the opportunity. Set up your first Pipeline
Tutorial Assignment
Create Opportunity in the Pipeline within the First Step of the Pipeline. This Opportunity will be Linked with an Account(Company) and multiple Contact that belongs to this Account.
0. Required fields
1. Prepare Data
Owner_id
Load an id of the user with the default sales unit.This user will become the owner of the newly created Opportunity.
We don´t necessarily need to load the default unit id. If only owner_id is specified in the final request, Pipeliner will automatically create the opportunity with the default User´s sales unit. (See step 2. of this tutorial)
Step_id
Pull Opportunity Pipelines and their steps. Store the ID of the First Step
We are going to search for Contacts that are linked to the Account. We are going to use Account_id from the previous Step and list all contact_id that exists on the Account
Multiple currencies (custom currencies) - When your business works with multiple currencies
base_value (required/optional) - this value is always calculated according to the Base Currency
You can use one of the foreign values, base_value. It depends on what fits you better.
When you define base value, then Foreign Currency is calculated automatically based on Exchange rates
When you define Foreign Currency, then the base value is calculated automatically based on Exchange rates
Value.currency_id
In this tutorial, we don´t use a multi-currency setup, so we are going to search for the base currency (system currency). To retrieve base currency let´s use the following request. Base currency is flagged as is_base:true
Expected Closing date. When the opportunity should be closed
step_id
ID of the Pipeline step where the Opportunity should be created
value
The business value of Opportunity, eg. dollar amount.
base_value - The Real Business Value in dollars
currency_id - The ID of currency saved in Pipeliner
value_foreign - The value for currency_id (Use only with multicurrency setup)
Error on field account_relations. Exactly one 'is_primary' item must be set.
Use is_primary flag for Account/Contact relation object.
-When creating account relations at least one Account needs to be primary
-When creating contact relations at least one Contact needs to be primary