Create Contract Action

Create a contract from a specific quote record.

This action is available in API version 60.0 and later.

Special Access Rules 

The Create Contract action is available in Developer, Enterprise, and Unlimited Editions of Revenue Management.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/createContract

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
contractPriceOptionstringOptional. Determines how the contract price is set for quote line items based on the selected value. Valid values are CONTRACT_HEADER_ONLY—Creates a contract with only the header information, without using net prices or discounts, NET_UNIT_PRICE_ONLY—Creates a contract specifically for quote line items with a net unit price, saving all net unit prices of the quote as contract prices, or DISCOUNT_ONLY—Creates contract prices specifically for quote line items with discounts, saving all discounts of the quote as contract prices. The default value is CONTRACT_HEADER_ONLY.
sourceIdstringRequired. ID of the quote or order that you want to create a contract from.

Outputs 

OutputTypeDescription
contractIdstringID of the contract created for the specified order or quote.

Example 

POST

This sample request is for the Create Contract action.

1{
2  "inputs": [
3    {
4      "sourceId": "0Q0RO0000003LyU",
5      "contractPriceOption": "NET_UNIT_PRICE_ONLY"
6    }
7  ]
8}

This sample response is for the Create Contract action.

1[
2  {
3    "actionName": "createContract",
4    "errors": null,
5    "isSuccess": true,
6    "outputValues": {
7      "contractId": "800XXX123456789"
8    }
9  }
10]

See Also