Create one special price agreement

post

/fscmRestApi/resources/11.13.18.05/channelSpecialPriceAgreements

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 Special Price Agreements Descriptive Flexfields
Type: array
Title: Channel Special Price Agreements Descriptive Flexfields
The Descriptive Flexfields for Channel Special Price Agreements resource manages additional details.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource captures comments, information, or instructions for a special price agreement.
Show Source
Nested Schema : Products
Type: array
Title: Products
Manages products of a special price agreement.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : channelSpecialPriceAgreements-DFF-item-post-request
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 : channelSpecialPriceAgreements-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 Special Price Agreements Descriptive Flexfields
Type: array
Title: Channel Special Price Agreements Descriptive Flexfields
The Descriptive Flexfields for Channel Special Price Agreements resource manages additional details.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The Notes resource captures comments, information, or instructions for a special price agreement.
Show Source
Nested Schema : Products
Type: array
Title: Products
Manages products of a special price agreement.
Show Source
Nested Schema : channelSpecialPriceAgreements-attachments-item-response
Type: object
Show Source
Nested Schema : channelSpecialPriceAgreements-DFF-item-response
Type: object
Show Source
Nested Schema : channelSpecialPriceAgreements-notes-item-response
Type: object
Show Source
Nested Schema : channelSpecialPriceAgreements-products-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create special price agreements.

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/channelSpecialPriceAgreements"

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 creates.

{
  "SpecialPriceAgreementName": "Seven Corporation Bid Request",
  "BusinessUnit": "Vision Operations",
  "ProgramType": "CR_SPA_AUTO",
  "RequestType": "Bid Request",
  "Status": "Draft",
  "DateContextType": "Actual Ship Date",
  "StartDate": "2025-07-01",
  "EndDate": "2025-11-20",
  "CurrencyCode": "USD",
  "Description": "Special Price Agreement description",
  "Justification": "Justification",
  "Outcome": "Won",
  "Distributor": "Seven Corporation",
  "DistributorBillToAccountId": 300100581001701,
  "DistributorBillToAccountNumber": "226331",
  // "DistributorContact": "Mark Jackson",
  // "DistributorContactId": 1401,
  "DistributorContactNumber": "CDRM_311274",
  "EndCustomerId": 1718236,
  "EndCustomer": "SMALL INC",
  "EndCustomerRegistryId": "1521032",
  "EndCustomerContact": "Patric@small.com",
  "EndCustomerContactEmail": null,
  "EndCustomerContactPhoneCountryCode": null,
  "EndCustomerContactPhoneNumber": null,
  "EndCustomerContactPhoneExtension": null,
  "Competitor": null,
  "CompetitorId": 1008,
  "CompetitorRegistryId": null,
  "CompetitorContact": null,
  "CompetitorContactEmail": "evans@nine.com",
  "CompetitorContactPhoneCountryCode": null,
  "CompetitorContactPhoneNumber": null,
  "CompetitorContactPhoneExtension": null,
  "products": [
    {
      "Item": "AS72111",
      "UnitOfMeasure": "Each",
      "RebateType": "Percent",
      "RebateAmount": 10.5,
      "OriginalUnitSellingPrice": 125,
      "Quantity": 12
    },
    {
      "Item": "AS54999",
      "UnitOfMeasure": "Each",
      "RebateType": "Amount",
      "RebateAmount": 12.54,
      "OriginalUnitSellingPrice": 150,
      "Quantity": 15
    }
  ]
}

Example Response Body

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

{
  "SpecialPriceAgreementId": 300100667476911,
  "SpecialPriceAgreementNumber": "SPA68012",
  "SpecialPriceAgreementName": "Seven Corporation Bid Request",
  "BusinessUnitId": 204,
  "BusinessUnit": "Vision Operations",
  "ProgramTypeId": 300100638425358,
  "ProgramType": "CR_SPA_AUTO",
  "ProgramTemplateCode": "SPECIAL_PRICE_AGREEMENT",
  "ProgramTemplate": "Special Price Agreement",
  "RequestTypeCode": "ORA_BID_REQUEST",
  "RequestType": "Bid Request",
  "ShipFromDistributorInventoryFlag": true,
  "StatusId": 100106596209338,
  "Status": "Draft",
  "SystemStatusCode": "ORA_DRAFT",
  "SystemStatus": "Draft",
  "OwnerId": 300100592838596,
  "Owner": "Evans Sonneshien1",
  "OwnerPersonNumber": "955160008195285",
  "DateContextTypeCode": "ORA_ACTUAL_SHIP_DATE",
  "DateContextType": "Actual Ship Date",
  "StartDate": "2025-07-01",
  "EndDate": "2025-11-20",
  "Currency": "US Dollar",
  "CurrencyCode": "USD",
  "FunctionalCurrency": "US Dollar",
  "FunctionalCurrencyCode": "USD",
  "EstimatedAmount": 345.6,
  "AccountedEstimatedAmount": null,
  "Description": "Special Price Agreement description",
  "Justification": "Justification",
  "OutcomeCode": "ORA_WON",
  "Outcome": "Won",
  "Distributor": "Seven Corporation",
  "DistributorBillToAccountId": 300100581001701,
  "DistributorBillToAccountNumber": "226331",
  "DistributorBillToAccountAddress": "234 10th Avenue,ELMONT, NY 11003",
  "DistributorContact": null,
  "DistributorContactId": null,
  "DistributorContactNumber": "CDRM_311274",
  "DistributorContactEmail": null,
  "DistributorContactPhoneNumber": null,
  "DistributorContactPhoneNumberExtension": null,
  "EndCustomerId": 1718236,
  "EndCustomerRegistryId": "1521032",
  "EndCustomer": "SMALL INC",
  "EndCustomerAddress": "610 N MATSON ST,48402 \r\r,KERSHAW, SC 290671014",
  "EndCustomerContact": "Patric@small.com",
  "EndCustomerContactEmail": null,
  "EndCustomerContactPhoneCountryCode": null,
  "EndCustomerContactPhoneNumber": null,
  "EndCustomerContactPhoneExtension": null,
  "Competitor": null,
  "CompetitorId": null,
  "CompetitorRegistryId": null,
  "CompetitorAddress": null,
  "CompetitorContact": null,
  "CompetitorContactEmail": null,
  "CompetitorContactPhoneCountryCode": null,
  "CompetitorContactPhoneNumber": null,
  "CompetitorContactPhoneExtension": null,
  "CreatedBy": "channel_user",
  "CreationDate": "2025-09-09T06:22:36+00:00",
  "LastUpdateDate": "2025-09-09T06:22:38.722+00:00",
  "LastUpdatedBy": "channel_user",
  "SubmittedBy": null,
  "SubmittedDate": null,
  "ApprovedDate": null,
  "RejectedDate": null,
  "products": [
    {
      "ProductId": 300100667476913,
      "SpecialPriceAgreementId": 300100667476911,
      "LineNumber": 1,
      "ItemId": "628",
      "UnitOfMeasureCode": "Ea",
      "OriginalUnitSellingPrice": 125,
      "RebateTypeCode": "ORA_PERCENT",
      "RebateAmount": 10.5,
      "Quantity": 12,
      "EstimatedAmount": 157.50,
      "CompetitorItem": null,
      "CompetitorItemPrice": null,
      "CreatedBy": "channel_user",
      "CreationDate": "2025-09-09T06:22:37.476+00:00",
      "LastUpdatedBy": "channel_user",
      "LastUpdateDate": "2025-09-09T06:22:38.759+00:00",
      "Item": "AS72111",
      "ItemDescription": "Envoy Deluxe Laptop",
      "UnitOfMeasure": "Each",
      "RebateType": "Percent",
      "links": [
        {
          "rel": "self",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/products/300100667476913",
          "name": "products",
          "kind": "item",
          "properties": {
            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
          }
        },
        {
          "rel": "canonical",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/products/300100667476913",
          "name": "products",
          "kind": "item"
        },
        {
          "rel": "parent",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911",
          "name": "channelSpecialPriceAgreements",
          "kind": "item"
        }
      ]
    },
    {
      "ProductId": 300100667476914,
      "SpecialPriceAgreementId": 300100667476911,
      "LineNumber": 2,
      "ItemId": "2155",
      "UnitOfMeasureCode": "Ea",
      "OriginalUnitSellingPrice": 150,
      "RebateTypeCode": "ORA_AMOUNT",
      "RebateAmount": 12.54,
      "Quantity": 15,
      "EstimatedAmount": 188.10,
      "CompetitorItem": null,
      "CompetitorItemPrice": null,
      "CreatedBy": "channel_user",
      "CreationDate": "2025-09-09T06:22:38.540+00:00",
      "LastUpdatedBy": "channel_user",
      "LastUpdateDate": "2025-09-09T06:22:38.769+00:00",
      "Item": "AS54999",
      "ItemDescription": "Sentinel Standard Desktop - Rugged",
      "UnitOfMeasure": "Each",
      "RebateType": "Amount",
      "links": [
        {
          "rel": "self",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/products/300100667476914",
          "name": "products",
          "kind": "item",
          "properties": {
            "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
          }
        },
        {
          "rel": "canonical",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/products/300100667476914",
          "name": "products",
          "kind": "item"
        },
        {
          "rel": "parent",
          "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911",
          "name": "channelSpecialPriceAgreements",
          "kind": "item"
        }
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911",
      "name": "channelSpecialPriceAgreements",
      "kind": "item",
      "properties": {
        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    },
    {
      "rel": "canonical",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911",
      "name": "channelSpecialPriceAgreements",
      "kind": "item"
    },
    {
      "rel": "child",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/DFF",
      "name": "DFF",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/attachments",
      "name": "attachments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/notes",
      "name": "notes",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/child/products",
      "name": "products",
      "kind": "collection"
    },
    {
      "rel": "action",
      "href": "https://servername/fscmRestApi/resources/version/channelSpecialPriceAgreements/300100667476911/action/submit",
      "name": "submit",
      "kind": "other"
    }
  ]
}
Back to Top