Update a subscription

patch

/crmRestApi/resources/11.13.18.05/subscriptions/{SubscriptionNumber}

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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Contract Attachments
Type: array
Title: Contract Attachments
The contract attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Credit Cards
Type: array
Title: Credit Cards
The credit cards resource is used to view, create, and update the credit card information associated with a subscription.
Show Source
Nested Schema : Descriptive Flexfields
Type: array
Title: Descriptive Flexfields
The descriptive flexfields resource is used to view, create, update, and delete a descriptive flexfield.
Show Source
Nested Schema : Parties
Type: array
Title: Parties
The parties resource to view, create, update, and delete the subscription parties.
Show Source
Nested Schema : Products
Type: array
Title: Products
The products resource is used to view, create, update, and delete the product details for a subscription, such as start and end dates, item, unit price, amount, bill-to details, ship-to details, billing frequency, invoice rule, and payment method.
Show Source
Nested Schema : Sales Credits
Type: array
Title: Sales Credits
The sales credits resource is used to view, create, update, and delete the sales credits defined for subscription or subscription products.
Show Source
Nested Schema : Supporting Document Attachments
Type: array
Title: Supporting Document Attachments
The supporting document attachments resource is used to view, create, and update supporting document attachments.
Show Source
Nested Schema : Validate Subscriptions
Type: array
Title: Validate Subscriptions
The validate subscriptions resource to view, create, update, and delete the validation errors for a subscription.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : subscriptions-creditCards-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-flexFields-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-parties-item-patch-request
Type: object
Show Source
Nested Schema : Contacts
Type: array
Title: Contacts
The contacts resource to view, create, update, and delete the contacts in a subscription party.
Show Source
Nested Schema : subscriptions-parties-contacts-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-item-patch-request
Type: object
Show Source
Nested Schema : Associated Assets
Type: array
Title: Associated Assets
The associated assets resource is used to view, create, update, and delete the assets linked to a subscription product of subscription type.
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.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the charges for a subscription.
Show Source
Nested Schema : Covered Levels
Type: array
Title: Covered Levels
The covered levels resource is used to view, create, update, and delete the subscription covered levels.
Show Source
Nested Schema : Credit Cards
Type: array
Title: Credit Cards
The credit cards resource is used to view, create, and update the credit card information associated with a subscription.
Show Source
Nested Schema : Descriptive Flexfields
Type: array
Title: Descriptive Flexfields
The descriptive flexfields resource is used to view, create, update, and delete a descriptive flexfield.
Show Source
Nested Schema : Subscription Entitlement Plan Commitments
Type: array
Title: Subscription Entitlement Plan Commitments
The subscription entitlement plan commitments resource is used to create a negotiated entitlement plan based on commitments. These records can be created only for those balance codes which have the commitments flag enabled.
Show Source
Nested Schema : Subscription Entitlement Plan Details
Type: array
Title: Subscription Entitlement Plan Details
The subscription entitlement plan details resource is used to view, create, update, and delete an entitlement plan detail.
Show Source
Nested Schema : Subscription Entitlement Plan Estimates
Type: array
Title: Subscription Entitlement Plan Estimates
The subscription entitlement plan estimates resource is used to create a negotiated entitlement plan based on estimates. These records can be created only for those balance codes which have the estimates flag enabled.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships.
Show Source
Nested Schema : Sales Credits
Type: array
Title: Sales Credits
The sales credits resource is used to view, create, update, and delete the sales credits defined for subscription or subscription products.
Show Source
Nested Schema : Service Resources
Type: array
Title: Service Resources
The service resources resource is used to view, create, update, and delete the service identifier for a subscription product.
Show Source
Nested Schema : subscriptions-products-associatedAsset-item-patch-request
Type: object
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.
Show Source
Nested Schema : subscriptions-products-billLines-billAdjustments-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-charges-item-patch-request
Type: object
Show Source
Nested Schema : Adjustments
Type: array
Title: Adjustments
The adjustments resource is used to view, create, update, and delete any adjustments to the subscription charge.
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 for a subscription.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : subscriptions-products-charges-chargeMilestoneEvents-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-charges-chargeTiers-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-item-patch-request
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.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the charges for a subscription.
Show Source
Nested Schema : Child Covered Levels
Type: array
Title: Child Covered Levels
The child covered levels resource is used to view, create, update, and delete the subscription child covered levels.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships.
Show Source
Nested Schema : subscriptions-products-coveredLevels-billLines-item-patch-request
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.
Show Source
Nested Schema : subscriptions-products-coveredLevels-billLines-billAdjustments-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-item-patch-request
Type: object
Show Source
Nested Schema : Adjustments
Type: array
Title: Adjustments
The adjustments resource is used to view, create, update, and delete any adjustments to the subscription charge.
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 for a subscription.
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-adjustments-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-chargeMilestoneEvents-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-chargeTiers-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-relationships-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-creditCards-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-flexFields-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanCommitments-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanDetails-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanEstimates-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-products-relationships-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : subscriptions-salesCredits-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-supportingDocumentAttachments-item-patch-request
Type: object
Show Source
Nested Schema : subscriptions-validateSubscription-item-patch-request
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 : subscriptions-item-response
Type: object
Show Source
Nested Schema : Contract Attachments
Type: array
Title: Contract Attachments
The contract attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Credit Cards
Type: array
Title: Credit Cards
The credit cards resource is used to view, create, and update the credit card information associated with a subscription.
Show Source
Nested Schema : Descriptive Flexfields
Type: array
Title: Descriptive Flexfields
The descriptive flexfields resource is used to view, create, update, and delete a descriptive flexfield.
Show Source
Nested Schema : Parties
Type: array
Title: Parties
The parties resource to view, create, update, and delete the subscription parties.
Show Source
Nested Schema : Products
Type: array
Title: Products
The products resource is used to view, create, update, and delete the product details for a subscription, such as start and end dates, item, unit price, amount, bill-to details, ship-to details, billing frequency, invoice rule, and payment method.
Show Source
Nested Schema : Sales Credits
Type: array
Title: Sales Credits
The sales credits resource is used to view, create, update, and delete the sales credits defined for subscription or subscription products.
Show Source
Nested Schema : Supporting Document Attachments
Type: array
Title: Supporting Document Attachments
The supporting document attachments resource is used to view, create, and update supporting document attachments.
Show Source
Nested Schema : Validate Subscriptions
Type: array
Title: Validate Subscriptions
The validate subscriptions resource to view, create, update, and delete the validation errors for a subscription.
Show Source
Nested Schema : subscriptions-contractAttachment-item-response
Type: object
Show Source
Nested Schema : subscriptions-creditCards-item-response
Type: object
Show Source
Nested Schema : subscriptions-flexFields-item-response
Type: object
Show Source
Nested Schema : subscriptions-parties-item-response
Type: object
Show Source
Nested Schema : Contacts
Type: array
Title: Contacts
The contacts resource to view, create, update, and delete the contacts in a subscription party.
Show Source
Nested Schema : subscriptions-parties-contacts-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-item-response
Type: object
Show Source
Nested Schema : Associated Assets
Type: array
Title: Associated Assets
The associated assets resource is used to view, create, update, and delete the assets linked to a subscription product of subscription type.
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.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the charges for a subscription.
Show Source
Nested Schema : Covered Levels
Type: array
Title: Covered Levels
The covered levels resource is used to view, create, update, and delete the subscription covered levels.
Show Source
Nested Schema : Credit Cards
Type: array
Title: Credit Cards
The credit cards resource is used to view, create, and update the credit card information associated with a subscription.
Show Source
Nested Schema : Descriptive Flexfields
Type: array
Title: Descriptive Flexfields
The descriptive flexfields resource is used to view, create, update, and delete a descriptive flexfield.
Show Source
Nested Schema : Subscription Entitlement Plan Commitments
Type: array
Title: Subscription Entitlement Plan Commitments
The subscription entitlement plan commitments resource is used to create a negotiated entitlement plan based on commitments. These records can be created only for those balance codes which have the commitments flag enabled.
Show Source
Nested Schema : Subscription Entitlement Plan Details
Type: array
Title: Subscription Entitlement Plan Details
The subscription entitlement plan details resource is used to view, create, update, and delete an entitlement plan detail.
Show Source
Nested Schema : Subscription Entitlement Plan Estimates
Type: array
Title: Subscription Entitlement Plan Estimates
The subscription entitlement plan estimates resource is used to create a negotiated entitlement plan based on estimates. These records can be created only for those balance codes which have the estimates flag enabled.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships.
Show Source
Nested Schema : Sales Credits
Type: array
Title: Sales Credits
The sales credits resource is used to view, create, update, and delete the sales credits defined for subscription or subscription products.
Show Source
Nested Schema : Service Resources
Type: array
Title: Service Resources
The service resources resource is used to view, create, update, and delete the service identifier for a subscription product.
Show Source
Nested Schema : subscriptions-products-associatedAsset-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-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.
Show Source
Nested Schema : subscriptions-products-billLines-billAdjustments-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-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 any adjustments to the subscription charge.
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 for a subscription.
Show Source
Nested Schema : subscriptions-products-charges-adjustments-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-charges-chargeMilestoneEvents-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-charges-chargeTiers-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-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.
Show Source
Nested Schema : Charges
Type: array
Title: Charges
The charges resource is used to view, create, update, and delete the charges for a subscription.
Show Source
Nested Schema : Child Covered Levels
Type: array
Title: Child Covered Levels
The child covered levels resource is used to view, create, update, and delete the subscription child covered levels.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The relationships resource is used to view, create, update, and delete the subscription product relationships.
Show Source
Nested Schema : subscriptions-products-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.
Show Source
Nested Schema : subscriptions-products-coveredLevels-billLines-billAdjustments-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-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 any adjustments to the subscription charge.
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 for a subscription.
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-adjustments-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-chargeMilestoneEvents-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-charges-chargeTiers-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-childCoveredLevels-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-coveredLevels-relationships-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-creditCards-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-flexFields-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanCommitments-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanDetails-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-negotiatedEntitlementPlanEstimates-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-relationships-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-salesCredits-item-response
Type: object
Show Source
Nested Schema : subscriptions-products-serviceResources-item-response
Type: object
Show Source
Nested Schema : subscriptions-salesCredits-item-response
Type: object
Show Source
Nested Schema : subscriptions-supportingDocumentAttachments-item-response
Type: object
Show Source
Nested Schema : subscriptions-validateSubscription-item-response
Type: object
Show Source
Back to Top

Examples

The following examples shows how to update a subscription by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/subscriptions/GP5678 

Request Body

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

{     
       "EndDate": "2019-12-25" 
    }

Response Body

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

{     
"SubscriptionId": 300100177254423,     
"SubscriptionNumber": "GP-5678",     
"BusinessUnitId": 204,     
"BusinessUnitName": "Vision Operations",     
"LegalEntityId": 204,     
"LegalEntityName": "Vision Operations", 
"SubscriptionProfileId": 300100172161473,     
"SubscriptionProfileName":"zOSS_SP_ServiceStartActual_Advance_Month",     
"PrimaryPartyId": 1001,     
"PrimaryPartyName": "A T & T SOLUTIONS INC",     
"PricedOnDate": "2019-06-04T00:00:00+00:00",     
"PricingStrategyId": null,     
"PricingStrategyExplanation": null,     
"PricingSegment": null,     
"PricingSegmentExplanation": null,     
"SegmentExplanationMessage": null,    
"Currency": "USD",     
"CurrencyName": "US Dollar",     
"CurrencyConversionRate": null,     
"CurrencyConversionRateType": null,     
"CurrencyConversionRateDate": null,     
"StartDate": "2019-01-01",     
"Duration": 359,     
"Period": "DY",     
"EndDate": "2019-12-25",     
"DefinitionOrganizationId": 204,     
"PartialPeriodType": "ORA_ACTUAL",     
"PartialPeriodStart": "ORA_SERVICE",     
"CloseReason": null,     
"ClosedDate": null,     
"CloseCreditMethod": null,     
"ApprovalNote": null,     
"CancelReason": null,     
"CanceledDate": null,     
"ApprovedDate": null,     
"RenewedDate": null,     
"ShortDescription": null,     
"Description": null,     
"Status": "ORA_DRAFT",     
"UserStatus": null,     
"BillService": "ORA_BILL",     
"BillServiceName": "Bill",     
"InvoicingRuleId": -2,     
"InvoicingRuleName": "Advance Invoice",     
"BillingDateCode": "ORA_PERIOD_START",     
"BillingDateName": "Period start",     
"BillOnDay": null,     
"BillingOffsetDays": null,     
"BillingFrequency": "0zG",     
"BillingFrequencyName": "MONTH",     
"AccountingRuleId": 300100033038413,     
"AccountingRuleName": "3 Months, Deferred",     
"TransactionTypeName": "ORA_OSS_Invoice",     
"BillingSystem": null, 
...
}
Back to Top