{
  "opencollection": "1.0.0",
  "info": {
    "name": "Accounting subpackage_opportunities API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "subpackage_opportunities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/crm/v1/opportunities",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return opportunities with this account."
              },
              {
                "name": "created_after",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created after this datetime."
              },
              {
                "name": "created_before",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created before this datetime."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pagination cursor value."
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces."
              },
              {
                "name": "include_deleted_data",
                "value": "",
                "type": "query",
                "description": "Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/)."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_remote_fields",
                "value": "",
                "type": "query",
                "description": "Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "modified_after",
                "value": "",
                "type": "query",
                "description": "If provided, only objects synced by Merge after this date time will be returned."
              },
              {
                "name": "modified_before",
                "value": "",
                "type": "query",
                "description": "If provided, only objects synced by Merge before this date time will be returned."
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return opportunities with this owner."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page. The maximum limit is 100."
              },
              {
                "name": "remote_created_after",
                "value": "",
                "type": "query",
                "description": "If provided, will only return opportunities created in the third party platform after this datetime."
              },
              {
                "name": "remote_fields",
                "value": "",
                "type": "query",
                "description": "Deprecated. Use show_enum_origins."
              },
              {
                "name": "remote_id",
                "value": "",
                "type": "query",
                "description": "The API provider's ID for the given object."
              },
              {
                "name": "show_enum_origins",
                "value": "",
                "type": "query",
                "description": "A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)"
              },
              {
                "name": "stage_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return opportunities with this stage."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST')\n\n"
              }
            ]
          },
          "docs": "Returns a list of `Opportunity` objects.{/* BEGIN_CRM_OPPORTUNITY_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZYW/iOBD9K8gfUSDXsnS3SKcTC9xCJUKPZnvXXVXR4AzB4MSp7UDLav/7KSFQ2Oux5eTSnNRPEGv87Lw3fjNJvhEKGgMhH0iDUBkSi4TCR04aZBDHQuokYvqBWARi5kCIqyhvfkosopIsAv3fGXJfdSWOSYPYIcoAK0nExgx9m8rQZpHGQIJmIlL2ZlZlnE0jFuEsmqHfpFQkkd6Ds4qrwCrwh0tlc6Y0sUgMSumJFEkwGeJdgmofZLobjiFGGnjFBw321vSKXM1/aizdt48cNfpt0NBGjTS9wXypidaxatj2BHlczZat+ji3MbJBakY"
        },
        {
          "info": {
            "name": "Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.merge.dev/api/crm/v1/opportunities",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "is_debug_mode",
                "value": "",
                "type": "query",
                "description": "Whether to include debug fields (such as log file links) in the response."
              },
              {
                "name": "run_async",
                "value": "",
                "type": "query",
                "description": "Whether or not third-party updates should be run asynchronously."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an `Opportunity` object with the given values.{/* BEGIN_CRM_OPPORTUNITY_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"POST\" data=\"H4sIAAAAAAAAA91Y72/iOBD9V5A/opBcy9LdIp1OLHALlRJ6bbZ3vVUVDfYQDHac2g4UVvu/nxJSFu7666q0vdtPSZyZZ/u9N+MoXwkFi7HSK9ImVEviEKkYCtImozRV2mYJtyviEEh5ABI3UdHikDjEZEUEsl85CmYGGiekTTyJOsZGlvAJR+ZRLT2eWIw1WK4S422zGpMijThE8GSOrEOpyhL7AM4mrgGbwL89Gk9wY4lDUjDGTrXK4ukZXmdoHoLMVyNQYmJBNBhY8HbSG3qTf9dYvm6GAi2yHljooUWab7CcamptatqeN0WRusW"
        },
        {
          "info": {
            "name": "Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/crm/v1/opportunities/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_remote_fields",
                "value": "",
                "type": "query",
                "description": "Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "remote_fields",
                "value": "",
                "type": "query",
                "description": "Deprecated. Use show_enum_origins."
              },
              {
                "name": "show_enum_origins",
                "value": "",
                "type": "query",
                "description": "A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)"
              }
            ]
          },
          "docs": "Returns an `Opportunity` object with the given `id`.{/* BEGIN_CRM_OPPORTUNITY_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZYW/iOBD9K8gfUSDXsnS3SKcTC9xCJUKPZnvXXVXR4AzB4MSp7UDLav/7KSFQ2Oux5eTSnNRPEGv87Lw3fjNJvhEKGgMhH0iDUBkSi4TCR04aZBDHQuokYvqBWARi5kCIqyhvfkosopIsAv3fGXJfdSWOSYPYIcoAK0nExgx9m8rQZpHGQIJmIlL2ZlZlnE0jFuEsmqHfpFQkkd6Ds4qrwCrwh0tlc6Y0sUgMSumJFEkwGeJdgmofZLobjiFGGnjFBw321vSKXM1/aizdt48cNfpt0NBGjTS9wXypidaxatj2BHlczZa"
        },
        {
          "info": {
            "name": "Partial Update",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.merge.dev/api/crm/v1/opportunities/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "is_debug_mode",
                "value": "",
                "type": "query",
                "description": "Whether to include debug fields (such as log file links) in the response."
              },
              {
                "name": "run_async",
                "value": "",
                "type": "query",
                "description": "Whether or not third-party updates should be run asynchronously."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an `Opportunity` object with the given `id`.{/* BEGIN_CRM_OPPORTUNITY_EDIT_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"PATCH\" data=\"H4sIAAAAAAAAA+VWYW/aMBD9K5M/opCMUjY10jRRYAWkhI7Sal1VRYdzBIMTG9uBNlX/+xTCGGwt6zaqqtqnyM7du7v3zmffEQoGI6FuiUuoiolFYhEiJy7pSSmUSRNmbolFQDIfYiysgvkBsYhOlxYYfmLIQ91WOCIucWJUEZbThI0Yhg5VscMSg5ECw0SinbVXebR0IxbhLJliWKdUpInZgVPYlaEw/GmpHc60IRaRoLUZK5FG4z7OUtS7IPNsOMaYGODlEAw4G+5lVfg/tJfnHSJHg2ETDDTRIM0LXIUaGyO16zhj5NJehrVDnDuYOK"
        },
        {
          "info": {
            "name": "Meta Patch Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/crm/v1/opportunities/meta/patch/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns metadata for `Opportunity` PATCHs.{/* BEGIN_CRM_OPPORTUNITY_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZYW/iOBD9K8gfUSDXsnS3SKcTC9xCJUKPZnvXXVXR4AzB4MSp7UDLav/7KSFQ2Oux5eTSnNRPEGv87Lw3fjNJvhEKGgMhH0iDUBkSi4TCR04aZBDHQuokYvqBWARi5kCIqyhvfkosopIsAv3fGXJfdSWOSYPYIcoAK0nExgx9m8rQZpHGQIJmIlL2ZlZlnE0jFuEsmqHfpFQkkd6Ds4qrwCrwh0tlc6Y0sUgMSumJFEkwGeJdgmofZLobjiFGGnjFBw321vSKXM1/aizdt48cNfpt0NBGjTS9wXypidaxatj2BHlczZat+ji3MbJBa"
        },
        {
          "info": {
            "name": "Meta Post Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/crm/v1/opportunities/meta/post",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ]
          },
          "docs": "Returns metadata for `Opportunity` POSTs.{/* BEGIN_CRM_OPPORTUNITY_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZYW/iOBD9K8gfUSDXsnS3SKcTC9xCJUKPZnvXXVXR4AzB4MSp7UDLav/7KSFQ2Oux5eTSnNRPEGv87Lw3fjNJvhEKGgMhH0iDUBkSi4TCR04aZBDHQuokYvqBWARi5kCIqyhvfkosopIsAv3fGXJfdSWOSYPYIcoAK0nExgx9m8rQZpHGQIJmIlL2ZlZlnE0jFuEsmqHfpFQkkd6Ds4qrwCrwh0tlc6Y0sUgMSumJFEkwGeJdgmofZLobjiFGGnjFBw321vSKXM1/aizdt48cNfpt0NBGjTS9wXypidaxatj2BHlczZat+ji3MbJBak"
        },
        {
          "info": {
            "name": "Remote Field Classes List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/crm/v1/opportunities/remote-field-classes",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pagination cursor value."
              },
              {
                "name": "include_deleted_data",
                "value": "",
                "type": "query",
                "description": "Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/)."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_remote_fields",
                "value": "",
                "type": "query",
                "description": "Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "is_common_model_field",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote field classes with this is_common_model_field value"
              },
              {
                "name": "is_custom",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote fields classes with this is_custom value"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page. The maximum limit is 100."
              }
            ]
          },
          "docs": "Returns a list of `RemoteFieldClass` objects.{/* BEGIN_CRM_OPPORTUNITY_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZYW/iOBD9K8gfUSDXsnS3SKcTC9xCJUKPZnvXXVXR4AzB4MSp7UDLav/7KSFQ2Oux5eTSnNRPEGv87Lw3fjNJvhEKGgMhH0iDUBkSi4TCR04aZBDHQuokYvqBWARi5kCIqyhvfkosopIsAv3fGXJfdSWOSYPYIcoAK0nExgx9m8rQZpHGQIJmIlL2ZlZlnE0jFuEsmqHfpFQkkd6Ds4qrwCrwh0tlc6Y0sUgMSumJFEkwGeJdgmofZLobjiFGGnjFBw321vSKXM1/aizdt48cNfpt0NBGjTS9wXypidaxatj2BHlczZat+ji3Mb"
        }
      ]
    }
  ],
  "bundled": true
}