Create a lump-sum program

post

/fscmRestApi/resources/11.13.18.05/channelCustomerLumpSumPrograms

Request

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
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Channel Customer Lump-Sum Program Descriptive Flexfields
Type: array
Title: Channel Customer Lump-Sum Program Descriptive Flexfields
The Channel Customer Lump-Sum Program Descriptive Flexfields resource manages additional details for a program.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource is used to view, create, and update notes.
Show Source
Nested Schema : Product Distributions
Type: array
Title: Product Distributions
The Product Distributions resource manages eligible products for a lump-sum program and their amount distribution.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
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 : channelCustomerLumpSumPrograms-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The Attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Channel Customer Lump-Sum Program Descriptive Flexfields
Type: array
Title: Channel Customer Lump-Sum Program Descriptive Flexfields
The Channel Customer Lump-Sum Program Descriptive Flexfields resource manages additional details for a program.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource is used to view, create, and update notes.
Show Source
Nested Schema : Product Distributions
Type: array
Title: Product Distributions
The Product Distributions resource manages eligible products for a lump-sum program and their amount distribution.
Show Source
Nested Schema : channelCustomerLumpSumPrograms-attachments-item-response
Type: object
Show Source
Nested Schema : channelCustomerLumpSumPrograms-DFF-item-response
Type: object
Show Source
Nested Schema : channelCustomerLumpSumPrograms-notes-item-response
Type: object
Show Source
Nested Schema : channelCustomerLumpSumPrograms-productDistributions-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create one channel customer lump sum program.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms"

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.

{
"ProgramTypeId": 300100574245527,
"BusinessUnitId": 204,
"ProgramName": "Pontiac Lumpsum Sales-20JUNe",
"CurrencyCode": "EUR",
"Status": "Active",
"OwnerId": 185,
"LumpsumAmount": 110,
"Description": "Lumpusm Program for Pontiac Customer",
"CustomerTypeCode": "ORA_BILL_TO_CUSTOMER_ACCOUNT",
"Customer": "Pontiac",
"DistributionType": "Amount",
//"DistributionType": "Percent",
"productDistributions": [
{
"Item": "AS72111",
"Amount": 20
// "Percent": 20
},
{
"Item": "AS54888",
"Amount": 30
//"Percent": 20
},
{
"Item": "AS54999",
"Amount": 40
//"Percent": 20
},
{
"Item": "AS1",
"Amount": 10
//"Percent": 20
},
{
"Item": "AS2",
"Amount": 10
//"Percent": 20
}
],
"notes": [
{
"NoteTypeCode": "GENERAL",
"VisibilityCode": "INTERNAL",
"NoteTxt": "Q2xhaW0gTm90ZXMgVGVzdCBhZGRlZCBmcm9tIFJFU1QgQVBJ"
}
],
"attachments": [
{
"DatatypeCode": "TEXT",
"CategoryName": "MISC",
"UploadedText": "This is a sample text attachment",
"Title": "REST Attachment Text Test",
"Description": "Text Attachment"
}
]
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
"ProgramId": 300100603752638,
"ProgramType": "Lumpsum Program Earnings",
"ProgramTypeId": 300100574245527,
"ProgramTemplate": "Customer Lump Sum",
"ProgramTemplateCode": "CUSTOMER_LUMP_SUM",
"BusinessUnit": "Vision Operations",
"BusinessUnitId": 204,
"ProgramName": "Pontiac Lumpsum Sales-20JUNe",
"PromotionCode": "LUMP148009",
"Owner": "TAX_ACCT_OPERATIONS",
"OwnerId": 185,
"Status": "Active",
"StatusId": 100100144204820,
"SystemStatus": "Active",
"SystemStatusId": 100100144204820,
"SystemStatusCode": "ACTIVE",
"StartDate": "2023-07-25",
"Currency": "Euro",
"CurrencyCode": "EUR",
"Description": "Lumpusm Program for Pontiac Customer",
"CustomerType": "Customer",
"CustomerTypeCode": "ORA_BILL_TO_CUSTOMER_ACCOUNT",
"Customer": "Pontiac",
"BillToAccountNumber": "1009",
"BillToAccountId": 2440,
"BillToSite": "GDAY",
"BillToSiteId": 2966,
"BillToSiteAddress": "26 Centerville Road,CLEVELAND, OH 44034",
"LumpsumAmount": 110.00,
"DistributionType": "Amount",
"DistributionTypeCode": "ORA_AMOUNT",
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.239+00:00",
"attachments": [
{
"AttachedDocumentId": 300100603752646,
"LastUpdateDate": "2023-07-25T04:03:33.894+00:00",
"LastUpdatedBy": "channel_user",
"DatatypeCode": "TEXT",
"FileName": "This is a sample text attachme...",
"DmFolderPath": null,
"DmDocumentId": "UCMFA00636411",
"DmVersionNumber": "636358",
"Url": null,
"CategoryName": "MISC",
"UserName": "Miscellaneous",
"Uri": null,
"FileUrl": "/content/conn/FusionAppsContentRepository/uuid/dDocID:636358?download&XFND_SCHEME_ID=1&XFND_CERT_FP=2EE0BF8ACB4CBC57590B7FC9E0B9AA9E2F2697F9&XFND_RANDOM=4279491546145721193&XFND_EXPIRES=1690258413978&XFND_SIGNATURE=G0fI8I-3iKsJ1CY9WZvPydV1iF2hhpFJdM0mv0sQBTQzsHeKRtGgGhFZGJXXsHrI0ql66hOqR3fU0m1x2u9cTdVyPJK-iVPBWCRbqmXlfSyYw1jDfQ0my-nFDSFPjzNG-thiPtBkuqFdPhKolamRTQOZM2M3fU-e2t3Otc0lWKX2JkrE4mP6hqCHBth7S7KbXzB6HMMYCV5r0PLceY0mIkYZWwcSW2eUZmgNc2v7UxtXrb9cEjIZePSU1P6g~ik9EHQ-0pE3g5nde9anVVd8mWaOjSH08e~Ha4FSDbubTLCT5Gi9mqYm7wFXNLQUeyunGKlAm7CSAmN23vHXed1k7w__&Id=636358",
"UploadedText": null,
"UploadedFileContentType": "text/plain",
"UploadedFileLength": 35,
"UploadedFileName": "REST Attachment Text Test-f840dc0f-70ca-4ccf-af92-c57c0de872d6.txt",
"ContentRepositoryFileShared": "false",
"Title": "REST Attachment Text Test",
"Description": "Text Attachment",
"ErrorStatusCode": null,
"ErrorStatusMessage": null,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:33.126+00:00",
"ExpirationDate": null,
"LastUpdatedByUserName": "Evans Sonneshein",
"CreatedByUserName": "Evans Sonneshein",
"AsyncTrackerId": null,
"DownloadInfo": "{\"XFND_EXPIRES\":\"1690258413982\",\"XFND_SCHEME_ID\":\"1\",\"XFND_CERT_FP\":\"2EE0BF8ACB4CBC57590B7FC9E0B9AA9E2F2697F9\",\"XFND_SIGNATURE\":\"PYkQgHS59uZj~joo3Or-9l~~Hd25QQQ0BPEHdbVGJUtlluGsS8V7l51y-a4x4neYui0u~4xNlogJNMDA2sP7syBt0aN-AitX05UdFCE-zte7uV8H6g4Fdt697gIBT72v1cxHfxVL2gKUrP5EoAYFUDNj4HEaetowg9rGdrLbFESe57-0OE0adxeYsdjPEp8rStpkPia28FtWG~ZOTkPj7AykEYavxFcuimLQnUxrNhuysryERiqyHA-vawoJQxONOQKO7BhPha488P9xrAWzPpWSo9h3X3WN1MttZUeJqZjr2mj1iPjc-PElupNpOy2dNTN-mis79nVVYI7YoKIGrw__\",\"XFND_RANDOM\":\"1867664479186078449\"}",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/attachments/00020000000EACED00057708000110F09DE230C60000000EACED00057708000110F09DE230C5",
"name": "attachments",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/attachments/00020000000EACED00057708000110F09DE230C60000000EACED00057708000110F09DE230C5",
"name": "attachments",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/attachments/00020000000EACED00057708000110F09DE230C60000000EACED00057708000110F09DE230C5/enclosure/FileContents",
"name": "FileContents",
"kind": "other"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/attachments/00020000000EACED00057708000110F09DE230C60000000EACED00057708000110F09DE230C5/enclosure/FileWebImage",
"name": "FileWebImage",
"kind": "other"
}
]
}
],
"notes": [
{
"NoteId": 300100603752644,
"SourceObjectCode": "CJM_SELL_SIDE_PROGRAMS",
"SourceObjectId": "300100603752638",
"PartyName": "Evans Sonneshein",
"NoteTypeCode": "GENERAL",
"VisibilityCode": "INTERNAL",
"CreatorPartyId": 300100574243564,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.700+00:00",
"LastUpdateDate": "2023-07-25T04:03:33.263+00:00",
"PartyId": 300100574243564,
"CorpCurrencyCode": "USD",
"CurcyConvRateType": "Corporate",
"CurrencyCode": "USD",
"ContactRelationshipId": null,
"ParentNoteId": null,
"LastUpdatedBy": "channel_user",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"EmailAddress": "sendmail-test-discard@oracle.com",
"FormattedAddress": null,
"FormattedPhoneNumber": null,
"UpdateFlag": "true",
"DeleteFlag": "true",
"NoteNumber": "CDRM_98323",
"NoteTitle": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/notes/300100603752644",
"name": "notes",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/notes/300100603752644",
"name": "notes",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
},
{
"rel": "enclosure",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/notes/300100603752644/enclosure/NoteTxt",
"name": "NoteTxt",
"kind": "other"
}
]
}
],
"productDistributions": [
{
"ProductDistributionId": 300100603752639,
"ProgramId": 300100603752638,
"LineNumber": 1,
"LineType": "Item",
"LineTypeCode": "ORA_ITEM",
"ItemId": 628,
"Item": "AS72111",
"ItemDescription": "Envoy Deluxe Laptop",
"Percent": null,
"Amount": 20,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.509+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.257+00:00",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752639",
"name": "productDistributions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752639",
"name": "productDistributions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
}
]
},
{
"ProductDistributionId": 300100603752640,
"ProgramId": 300100603752638,
"LineNumber": 2,
"LineType": "Item",
"LineTypeCode": "ORA_ITEM",
"ItemId": 149,
"Item": "AS54888",
"ItemDescription": "Standard Desktop",
"Percent": null,
"Amount": 30,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.655+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.259+00:00",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752640",
"name": "productDistributions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752640",
"name": "productDistributions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
}
]
},
{
"ProductDistributionId": 300100603752641,
"ProgramId": 300100603752638,
"LineNumber": 3,
"LineType": "Item",
"LineTypeCode": "ORA_ITEM",
"ItemId": 2155,
"Item": "AS54999",
"ItemDescription": "Sentinel Standard Desktop - Rugged",
"Percent": null,
"Amount": 40,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.668+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.260+00:00",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752641",
"name": "productDistributions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752641",
"name": "productDistributions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
}
]
},
{
"ProductDistributionId": 300100603752642,
"ProgramId": 300100603752638,
"LineNumber": 4,
"LineType": "Item",
"LineTypeCode": "ORA_ITEM",
"ItemId": 999997500684155,
"Item": "AS1",
"ItemDescription": "Support - Sleepycat Public for Berkeley Database License",
"Percent": null,
"Amount": 10,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.678+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.261+00:00",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752642",
"name": "productDistributions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752642",
"name": "productDistributions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
}
]
},
{
"ProductDistributionId": 300100603752643,
"ProgramId": 300100603752638,
"LineNumber": 5,
"LineType": "Item",
"LineTypeCode": "ORA_ITEM",
"ItemId": 999997500683349,
"Item": "AS2",
"ItemDescription": "Siebel Applications Bundle - AS2",
"Percent": null,
"Amount": 10,
"CreatedBy": "channel_user",
"CreationDate": "2023-07-25T04:03:32.684+00:00",
"LastUpdatedBy": "channel_user",
"LastUpdateDate": "2023-07-25T04:03:33.262+00:00",
"LastUpdateLogin": "006881E0F7D6974BE0637A6215ACA99E",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752643",
"name": "productDistributions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions/300100603752643",
"name": "productDistributions",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
}
]
}
],
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638",
"name": "channelCustomerLumpSumPrograms",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/DFF",
"name": "DFF",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/attachments",
"name": "attachments",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/notes",
"name": "notes",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/channelCustomerLumpSumPrograms/300100603752638/child/productDistributions",
"name": "productDistributions",
"kind": "collection"
}
]
}
Back to Top