Get all subscriptions

get

/crmRestApi/resources/11.13.18.05/subscriptions

Request

Query Parameters
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format: ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables:

    • PrimaryKey: Finds a subscription with the specified subscription ID.
      Finder Variables:
      • SubscriptionId; integer; The unique primary identifier of the subscription.
    • SubscriptionsPUID: Finds a subscription with the specified subscription PUID.
      Finder Variables:
      • SubscriptionNumber; string; The unique public identifier of the subscription.
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

    Format: ?q=expression1;expression2

    You can use these queryable attributes to filter this collection resource using the q query parameter:
    • AccountingRuleId; integer; The unique identifier of the accounting rule.
    • ApprovedDate; string; The date on which the subscription was approved.
    • AssigneeId; integer; The unique identifier of the assignee.
    • BillToAccountId; integer; The unique identifier of the bill to account.
    • BillToAccountNumber; string; The alternate identifier of the bill-to account.
    • BillToContactId; integer; The bill-to contact of the subscription.
    • BillToPartyId; integer; The bill-to customer ID of the subscription.
    • BillToPartyNumber; string; The bill-to customer number of the subscription.
    • BillToSiteUseId; integer; The unique identifier of the bill-to site use.
    • BusinessUnitId; integer; The unique identifier of the business unit.
    • BusinessUnitName; string; The name of the business unit.
    • CalculatedCreditAmount; number; The calculated credit amount of the subscription.
    • CancelDescription; string; The cancel reason description of the subscription.
    • CloseDescription; string; The close reason description of the subscription.
    • CreatedBy; string; The user who created the subscription.
    • CreationDate; string; The date when the subscription was created.
    • Currency; string; The subscription currency.
    • CustomerTrxTypeSequenceId; integer; The unique identifier of the customer transaction type sequence.
    • DefinitionOrganizationId; integer; The unique identifier of the master organization.
    • DefinitionOrganizationName; string; The master organization name.
    • EndDate; string; The date when the subscription ends.
    • FreezePriceFlag; boolean; Indicates whether the price is being frozen.
    • InvoicingRuleId; integer; The unique identifier of the invoice rule.
    • LastUpdateDate; string; The date when the subscription was last updated.
    • LastUpdatedBy; string; The user who last updated the subscription.
    • LegalEntityId; integer; Th unique identifier of the legal entity.
    • LockedFlagReadOnly; string; Indicates whether the subscription is locked because of the process being executed.
    • OverrideCreditAmount; number; The override credit amount of the subscription.
    • PaymentTermsId; integer; The unique identifier of the payment terms.
    • PricingStrategyId; integer; The unique identifier of the pricing strategy.
    • PrimaryPartyId; integer; The unique identifier of the primary party.
    • PrimaryPartyNumber; string; The primary party number of the subscription.
    • QuoteToContactId; integer; The unique identifier of the quote to contact.
    • RenewPerpetuallyFlag; boolean; Indicates whether the subscription should be renewed forever.
    • RenewalDurationPeriod; string; The code of the subscription level renewal duration period override that will be used while renewing through automatic or manual renewal.
    • RenewedDate; string; The date on which the subscription was renewed.
    • SalesOrderId; integer; The ID of the sales order associated with the subscription.
    • SalesOrderNumber; string; The number of the sales order associated with the subscription.
    • ShipToAccountId; integer; The ship-to account ID of the subscription.
    • ShipToContactId; integer; The ship-to contract ID of the subscription.
    • ShipToPartyNumber; string; The ship-to party number of the subscription.
    • ShipToPartySiteId; integer; The unique identifier of the ship to party.
    • SkipConsolidationFlag; boolean; Skip Consolidation Flag
    • StartDate; string; The date when the subscription starts.
    • Status; string; The status of the subscription.
    • SubscriptionId; integer; The unique identifier of the subscription.
    • SubscriptionNumber; string; The alternate identifier of the subscription.
    • SubscriptionProfileId; integer; The unique identifier of the subscription profile.
    • SubscriptionProfileName; string; The name of the subscription profile name.
    • SystemAction; string; The subscription action that is performed by the user.
    • SystemActionDate; string; The date and time at which the subscription process is submitted.
    • SystemActionObject; string; The subscription object on which the action is performed.
    • SystemActionObjectKey; string; The identifier of the subscription object on which the action is performed.
    • SystemActionRequestId; integer; The identifier of the subscription process that is being executed.
    • SystemActionStatus; string; The status of the subscription process that is submitted.
    • TcvWithTotalUsageCharge; number; Tcv With Total Usage Charge
    • TotalContractValue; number; The total contract value.
    • TotalUsageCharge; number; Total Usage Charge
    • WarehouseId; integer; The warehouse ID associated with the subscription.
    • WarrantyYN; string; Indicates whether this subscription is a warranty or not.
  • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
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.

There's no request body for this operation.

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
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested 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 example shows how to get all subscriptions by submitting a GET request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X GET https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/subscriptions

Example of Response Body

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

{
    "items": [
        {
            "SubscriptionId": 300100177231447,
            "SubscriptionNumber": "CDRM_2",
            "BusinessUnitId": 204,
            "BusinessUnitName": "Vision Operations",
            "LegalEntityId": 204,
            "LegalEntityName": "Vision Operations",
            "SubscriptionProfileId": 300100172161473,
            "SubscriptionProfileName": "zOSS_SP_ServiceStartActual_Advance_Month",
            "PrimaryPartyId": 1006,
            "PrimaryPartyName": "Computer Service and Rentals",
            "PricedOnDate": "2019-06-03T00: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-06-03",
            "Duration": 1,
            "Period": "0zE",
            "EndDate": "2020-06-02",
            "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,
            "SubscriptionInvoiceText": "[$Item Name]: [$Charge Name] [$Bill from Date]-[$Bill to Date]",
            "CoverageInvoiceText": null,
            "BillToAccountId": 1006,
            "BillToAccountNumber": "1006",
            "BillToAccountDescription": "Computer Service and Rentals",
            "BillToSiteUseId": 1025,
            "BillToAddress": "301 Summit Hill Drive,CHATTANOOGA, TN 37401",
            "ShipToParty": null,
            "ShipToPartyName": null,
            "ShipToPartySiteId": null,
            "ShipToSite": null,
            "PaymentMethod": null,
            "PaymentMethodName": null,
            "PONumber": null,
            "WireNumber": null,
            "PaymentTermsId": 1064,
            "PaymentTermsName": "Immediate",
            "TaxClassificationCode": null,
            "TaxClassificationMeaning": null,
            "ExemptCertificateNumber": null,
            "ExemptReason": null,
            "ExemptReasonMeaning": null,
            "TaxExemptionHandling": "S",
            "TaxExemptionHandlingName": "Standard",
            "DocumentFiscalClassification": null,
            "CustomerAcceptance": null,
            "InternalApproval": "NOTREQUIRED",
            "LayoutTemplate": null,
            "CommunicationChannel": null,
            "PrimarySalesPerson": null,
            "NegotiationLanguage": null,
            "QuoteToContactId": null,
            "EnableRenewalRemindersFlag": null,
            "RenewalProcess": null,
            "DaysBeforeExpiry": null,
            "QuoteToCcEmail": null,
            "RenewalPricingMethodUsed": null,
            "RenewalProcessUsed": null,
            "PriceAdjustmentPercentUsed": null,
            "DaysBeforeExpiryUsed": null,
            "AssigneeId": null,
            "AssigneeType": null,
            "TotalContractValue": 0,
            "EstimatedTax": 0,
            "CreditedAmount": 0,
            "ClosedAmount": 0,
            "CanceledAmount": 0,
            "InvoicedAmount": 0,
            "SourceSystem": null,
            "SourceKey": null,
            "SourceNumber": null,
            "RenewalTemplateId": null,
            "NotificationTemplateId": null,
            "RenewalSubscriptionProfileId": null,
            "DefaultLanguage": null,
            "GenerateBillingSchedule": null,
            "TransactionType": "ORA_SUBSCRIPTION",
            "PricingSystem": "ORA_FUSION",
            "PricingError": null,
            "CorpCurrencyCode": "USD",
            "CurcyConvRateType": "Corporate",
            "RenewalCustomerAcceptance": null,
            "RenewalInternalApproval": null,
            "RenewalPriceAdjustmentBasis": null,
            "RenewalPriceAdjustmentPercent": null,
            "RenewalPriceAdjustmentType": null,
            "AttachmentEntityName": "OSS_DOC_SUBSCRIPTION_AGREEMENT",
            "AttachmentEntityName1": "OSS_DOC_SUPPORTING_DOCUMENTS",
            "CreatedBy": "CONMGR",
            "CreationDate": "2019-06-03T16:38:37+00:00",
            "LastUpdatedBy": "CONMGR",
            "LastUpdateDate": "2019-06-03T16:38:37.560+00:00",
            "LastUpdateLogin": "8A568A6CC2BCBE27E05323EAF40A845E",
	...
	"count": 5,
    "hasMore": false,
    "limit": 25,
    "offset": 0,
    "links": [
        		 ...    
					 ]
}

Note:

You can query a parameter by passing the field name and value in the API endpoint URL. Here is an example: <your host url>/crmRestApi/resources/11.13.18.05/subscriptions/?q=BillToPartyId=3000001896825193. For more information see Manage Collections topic.
Back to Top