Create a sales lead product

post

/crmRestApi/resources/11.13.18.05/leads/{leadsUniqID}/child/MklProdAssoc1

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Sales Leads resource and used to uniquely identify an instance of Sales Leads. The client should not generate the hash key value. Instead, the client should query on the Sales Leads collection resource in order to navigate to a specific instance of Sales Leads to get the hash key.
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Amount
    The amount associated with the sales lead product.
  • Title: Average Time to Close
    The average time to close for this sales lead product.
  • Title: Conflict Identifier
    Default Value: 0
    The value guarantees the uniqueness of the row when duplicates are created in different databases such as mobile databases, or the server.
  • Title: Currency
    Maximum Length: 15
    The currency code associated with the lead product line amount. A list of accepted values is defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. You can review and update the value for this attribute using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Title: Item Description
    Maximum Length: 240
    The product description where the product is associated with the lead.
  • Title: Estimated Unit Price
    The estimated unit price for this lead product.
  • Title: Inventory Number
    The unique inventory item identifier associated with the lead product.
  • Title: Lead ID
    The unique identifier of the sales lead for this sales lead product.
  • Title: Lead Number
    Maximum Length: 30
    The alternate unique identifier of the lead.
  • Title: Lead Product ID
    The unique identifier of the current sales lead product.
  • Title: Lead Product Number
    Maximum Length: 30
    The alternate key of the lead product.
  • Title: Organization
    The unique inventory organization identifier associated with this lead product.
  • Title: Primary
    Maximum Length: 1
    Indicates whether this product is a primary product for this lead.
  • Title: Product Group ID
    The unique identifier of the product group.
  • Title: Product Group Name
    Maximum Length: 250
    The name of the product group associated with the sales lead product resource.
  • Title: Product Group Reference Number
    Maximum Length: 50
    The alternate key for referenced product group.
  • Title: Product Type
    The type of the product, such as item or product group.
  • Title: Quantity
    The product quantity identified for this product on the lead.
  • Title: UOM
    Maximum Length: 3
    The unit of measure associated with this sales lead product line.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : leads-MklProdAssoc1-item-response
Type: object
Show Source
  • Title: Amount
    The amount associated with the sales lead product.
  • Title: Average Time to Close
    The average time to close for this sales lead product.
  • Title: Conflict Identifier
    Default Value: 0
    The value guarantees the uniqueness of the row when duplicates are created in different databases such as mobile databases, or the server.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created this sales lead product.
  • Title: Creation Date
    Read Only: true
    The date and time when this sales lead product is created.
  • Title: Currency
    Maximum Length: 15
    The currency code associated with the lead product line amount. A list of accepted values is defined in the lookup ZCA_COMMON_CORPORATE_CURRENCY. You can review and update the value for this attribute using the Setup and Maintenance work area, Manage Trading Community Common Lookups task.
  • Title: Item Description
    Maximum Length: 240
    The product description where the product is associated with the lead.
  • Title: Estimated Unit Price
    The estimated unit price for this lead product.
  • Title: Inventory Number
    The unique inventory item identifier associated with the lead product.
  • Title: Inventory Item Number
    Read Only: true
    Maximum Length: 300
    The alternate key for referenced inventory item.
  • Title: Last Updated Date
    Read Only: true
    The date and time of the last update of the sales lead product.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the sales lead product.
  • Title: Last Updated Login
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the record.
  • Title: Lead ID
    The unique identifier of the sales lead for this sales lead product.
  • Title: Lead Number
    Maximum Length: 30
    The alternate unique identifier of the lead.
  • Title: Lead Product ID
    The unique identifier of the current sales lead product.
  • Title: Lead Product Number
    Maximum Length: 30
    The alternate key of the lead product.
  • Links
  • Title: Long Description
    Read Only: true
    Maximum Length: 4000
    A detailed description of the sales lead product.
  • Title: Organization
    The unique inventory organization identifier associated with this lead product.
  • Title: Primary
    Maximum Length: 1
    Indicates whether this product is a primary product for this lead.
  • Title: Product Group Description
    Read Only: true
    Maximum Length: 1000
    A brief description of the product group.
  • Title: Product Group ID
    The unique identifier of the product group.
  • Title: Product Group Name
    Maximum Length: 250
    The name of the product group associated with the sales lead product resource.
  • Title: Product Group Reference Number
    Maximum Length: 50
    The alternate key for referenced product group.
  • Title: Product Type
    The type of the product, such as item or product group.
  • Title: Quantity
    The product quantity identified for this product on the lead.
  • Title: UOM
    Maximum Length: 3
    The unit of measure associated with this sales lead product line.
Back to Top

Examples

cURL Command

The following example shows how to create a sales lead product by submitting a POST request on the REST resource using cURL.

curl -u <username:password> \ -X POST -d @example_request_payload.json -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/leads/{lead_id}/child/MklProdAssoc1/

Example of Request Body

The following shows an example of the request body in JSON format.

{
"InventoryItemId":999997500683977,
"OrganizationId":204
}
{
"ProductGroupId" : 99999782607106566
}

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "LeadProductId" : 300100092582211,
  "LeadId" : 300100092582093,
  "OrganizationId" : 204,
  "CurrencyCode" : "USD",
  "EstimatedUnitPrice" : null,
  "InventoryItemId" : 999997500683977,
  "PrimaryFlag" : null,
  "ProductGroupId" : null,
  "Quantity" : null,
  "UOMCode" : null,
  "Description" : " OPN - World Applications - Certified Partner",
  "CreatedBy" : "MHoope",
  "CreationDate" : "2016-11-07T04:53:47-08:00",
  "LastUpdatedBy" : "MHoope",
  "LastUpdateDate" : "2016-11-07T04:53:47-08:00",
  "AverageTimeToClose" : null,
  "ProductGroupName" : null,
  "ProductGroupDescription" : null,
  "LongDescription" : "License/Applications/ERP Applications/PeopleSoft ERP Applications/JD Edwards World ERP/OPN - World License/ OPN - World Applications - Certified Partner",
  "Amount" : null,
  "links" : [ {
............... 
}]
}
Back to Top