Create a covered level

post

/crmRestApi/resources/11.13.18.05/subscriptionProducts/{SubscriptionProductPuid}/child/coveredLevels

Request

Path Parameters
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 : Bill Lines
Type: array
Title: Bill Lines
The bill lines resource is used to view, create, update, and delete the subscription bill line details, such as charge period, date bill from, date billed to, amount, recurring flag, invoice text, usage quantity, and usage flags.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the subscription charge details, such as charge name, charge definition, price type, price periodicity, and tiered flag.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships details, such as relationship type, source subscription product PUID, and target subscription product PUID.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : Bill Adjustments
Type: array
Title: Bill Adjustments
The bill adjustments resource is used to view, create, update, and delete the subscription bill adjustment details, such as adjustment name, adjustment value, adjustment type, reason, and effectivity.
Show Source
Nested Schema : subscriptionProducts-coveredLevels-billLines-billAdjustments-item-post-request
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-item-post-request
Type: object
Show Source
Nested Schema : Adjustments
Type: array
Title: Adjustments
The adjustments resource is used to view, create, update, and delete the subscription charge adjustment details, such as adjustment name, adjustment type, adjustment value, adjustment reason, and effectivity.
Show Source
Nested Schema : Charge Milestone Events
Type: array
Title: Charge Milestone Events
The charge milestone events resource is used to view, create, update, and delete the milestone events associated with a charge of a subscription.
Show Source
Nested Schema : Charge Tiers
Type: array
Title: Charge Tiers
The charge tiers resource is used to view, create, update, and delete the subscription charge tier details, such as tier from, tier to, and list price.
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-adjustments-item-post-request
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-chargeMilestoneEvents-item-post-request
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-chargeTiers-item-post-request
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 : subscriptionProducts-coveredLevels-item-response
Type: object
Show Source
Nested Schema : Bill Lines
Type: array
Title: Bill Lines
The bill lines resource is used to view, create, update, and delete the subscription bill line details, such as charge period, date bill from, date billed to, amount, recurring flag, invoice text, usage quantity, and usage flags.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the subscription charge details, such as charge name, charge definition, price type, price periodicity, and tiered flag.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships details, such as relationship type, source subscription product PUID, and target subscription product PUID.
Show Source
Nested Schema : subscriptionProducts-coveredLevels-billLines-item-response
Type: object
Show Source
Nested Schema : Bill Adjustments
Type: array
Title: Bill Adjustments
The bill adjustments resource is used to view, create, update, and delete the subscription bill adjustment details, such as adjustment name, adjustment value, adjustment type, reason, and effectivity.
Show Source
Nested Schema : subscriptionProducts-coveredLevels-billLines-billAdjustments-item-response
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-item-response
Type: object
Show Source
Nested Schema : Adjustments
Type: array
Title: Adjustments
The adjustments resource is used to view, create, update, and delete the subscription charge adjustment details, such as adjustment name, adjustment type, adjustment value, adjustment reason, and effectivity.
Show Source
Nested Schema : Charge Milestone Events
Type: array
Title: Charge Milestone Events
The charge milestone events resource is used to view, create, update, and delete the milestone events associated with a charge of a subscription.
Show Source
Nested Schema : Charge Tiers
Type: array
Title: Charge Tiers
The charge tiers resource is used to view, create, update, and delete the subscription charge tier details, such as tier from, tier to, and list price.
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-adjustments-item-response
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-chargeMilestoneEvents-item-response
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-charges-chargeTiers-item-response
Type: object
Show Source
Nested Schema : subscriptionProducts-coveredLevels-relationships-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a covered level by submitting a POST request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/subscriptionProducts/CDRM_4016-PRDT-2013/child/coveredLevels

Example of Request Body

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

{
    "CoveredLevelPuid": "GP-5678-PRDT-7-PASS-1",
    "LineNumber": "1",
    "InventoryItemId": 300100118490672,
    "AssetId": 300100118585763,
    "AssetName": "zOKC_Auto_Asset1",
    "ProductName": "ZOKC_Item_001",
    "Description": "Item",
    "Type": "ORA_ASSET",
    "Quantity": 1,
    "ItemUnitOfMeasure": "Ea",
    "TotalContractValue": 12361.29,
    "EndDate": "2020-05-29",
    "StartDate": "2020-01-01",
    "PriceAsOf": "2020-01-01",
    "PriceUnitOfMeasure": "0zE"
}

Example of Response Body

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

{
  "CoveredLevelId": 300100192686410,
  "CoveredLevelPuid": "GP-5678-PRDT-7-PASS-1",
  "SubscriptionProductId": 300100181994505,
  "SubscriptionId": 300100181994494,
  "LineNumber": "1",
  "InventoryItemId": 300100118490672,
  "AssetId": 300100118585763,
  "AssetName": "zOKC_Auto_Asset1",
  "AssetSerialNumber": null,
  "ProductName": "ZOKC_Item_001",
  "Description": "Item",
  "Type": "ORA_ASSET",
  "TypeName": "Asset",
  "Quantity": 1,
  "ItemUnitOfMeasure": "Ea",
  "TotalContractValue": 12361.29,
  "GenerateBillingSchedule": null,
  "EndDate": "2020-05-29",
  "StartDate": "2020-01-01",
  "Duration": 150,
  "Period": "DY",
  "Status": "ORA_DRAFT",
  "StatusName": "Draft",
  "PriceAsOf": "2020-01-01",
  "PriceUnitOfMeasure": "0zE",
  "PriceUnitOfMeasureName": "YEAR",
  "PriceListId": null,
  "PricingError": null,
  "TaxAmount": null,
  "InvoiceText": "[$Product Name]: [$Charge Name] [$Bill from Date]-[$Bill to Date]",
  "CancelReason": null,
  "CanceledDate": null,
  "CanceledAmount": null,
  "ClosedDate": null,
  "CloseReason": null,
  "ClosedAmount": null,
  "ReturnCreditMethod": null,
  "SuppressedCreditAmount": null,
  "InvoicedAmount": null,
  "CreditedAmount": null,
  "RenewedDate": null,
  "RenewalType": null,
  "TaxError": null,
  "CreatedBy": "SALES_ADMIN",
  "CreationDate": "2019-08-20T06:55:15+00:00",
  "LastUpdatedBy": "SALES_ADMIN",
  "LastUpdateDate": "2019-08-20T06:55:15.130+00:00",
  "LastUpdateLogin": "9062D47DF31EDAF6E0533EFDF40A2696",
  "CurrencyCode": null,
  "CorpCurrencyCode": null,
  "CurcyConvRateType": null,
  "PutOnHoldFlag": null,
  "RemoveHoldFlag": null,
  "links": 
	...
}
Back to Top